Changes between Version 54 and Version 55 of ControlSystems/SoftwareTeam/IntroToPython
- Timestamp:
- Sep 4, 2017, 7:30:31 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/IntroToPython
v54 v55 228 228 {{{ 229 229 #!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 loop230 while not x.isdigit(): # Note the "not"...in this case if x is not all digits, run the block of code in the while loop 231 231 x=input("Enter x") 232 while (!y.isdigit())232 while not y.isdigit(): 233 233 y=input("Enter y") 234 234 z = pow(x,y) 235 if z >100:235 if z > 100: 236 236 print("That's-a big number!") 237 237 }}}