Oct-04-2016, 04:26 PM
(Oct-04-2016, 04:09 PM)metulburr Wrote: Where did you copy the code from? For example if you edit your post and select "source" bbcode option you see a ton of text modifcations.
this
while True:
turns into this
Output:[color=#000080][size=small][font=InputMono][b]while True[b][font][size][color][color=#000000][size=small][font=InputMono]:[font][size][color]
Copied it from pycharm
Moved it to notepad++, lets see:
while True: number = int(input("enter a number between 1 and 10: ")) # Get a number if 0 <= number <= 10: print("number = ", number) # Go back and get another number else: print("out of range") break # Break out of 'while' loop and continue with next command print("Done")
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition