Changes between Version 54 and Version 55 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 7:30:31 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v54 v55  
    228228{{{
    229229#!python
    230 while (!x.isdigit())  # The ! means 'not'.  In this case if x is not all digits, run the block of code in the while loop
     230while not x.isdigit():  # Note the "not"...in this case if x is not all digits, run the block of code in the while loop
    231231   x=input("Enter x")
    232 while (!y.isdigit())
     232while not y.isdigit():
    233233   y=input("Enter y")
    234234z = pow(x,y)
    235 if z>100:
     235if z > 100:
    236236  print("That's-a big number!")
    237237}}}