+ 1
HOW TO ADD A DIALOGBOX LIKE SOMETHING, AFTER PRESSING RUN BUTTON IN PYTHON?
PLEASE TELL ME!!!
2 ответов
+ 7
Techman AK , the sample presented by Slick is perfect if you run a code in a regular IDE. if you run it in playground, the prompt defined in input() will NOT be displayed when the execution starts. This is due to the behavior of playground, since all inputs has to be given in advance. the prompt will be displayed after the input is done.
+ 2
color = input("What's your favorite color? : ")
print("You like", color + '?',"Me too!")