python while loop quit variable -
python while loop quit variable -
i trying figure out how quit variable in while
loop. learning python, new.
should start
variable1 variable2 print("press come in continue, or type "quit" press come in stop") while "quit"!="quit" variable1=input("enter input") variable2=input("enter input")
i missing huge gap of information. (i feel)
sname=input("please come in name: ") inum=int(input("please come in integer: ")) dnum=float(input("please come in decimal number: ")) print("name:",sname) print("value of inum:",inum) print("value of dnum:",dnum) sname=" " inum=" " dnum=" " print("press come in continue, or type "q" press come in stop") while "q"!=quit sname=input("enter input") inum=input("enter input") dnum=input("enter input")
as can see, have no thought doing -_-
quit = '' while quit.lower() != 'quit': print( "press come in continue, or type 'quit' press come in stop" ) quit = input("enter input: ")
python while-loop
Comments
Post a Comment