How do you ask a question in Python 3?

–1 vote
asked Jun 22 by Litterbox42 (140 points)
I'm coding a game, and I don't know how to get the program to let my player type in an answer. Can someone help me, please?

2 Answers

0 votes
answered Jun 24 by Peter Minarik (1,950 points)

You can search the Internet for various documentations and tutorials on Python.

One of them is on W3School that describes how to handle user input in Python:

+1 vote
answered 5 days ago by Jayasurya (200 points)

For Example if you want the user to enter his/age you can prompt the user by using this line of code : 

age = int(input("Enter your age : "))

for accepting the name and other details : 

name = input('Enter your name : ')

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.