New course! Every coder should learn Generative AI!
Try a free lesson0
Hi, im new in python and i need help, pls how can i make a question with yes/no? For example: Do you go to school? [Yes] [No]
2 Answers
+ 2
choice = input("Do you go to school? [y/n]: ")
# won't work in sololearn though
+ 1
Thanks bro :)