+ 1
Python for beginners section 16.1 (parentheses)
Hi everyone! I am new to Sololearn and python and I am stuck on a certain part, it says: To make the input statement work, it needs to be followed by parentheses. You should recognize this principle from the print statements we covered in module 1. You can then provide a string to input() between the parentheses, producing a prompt message. Any help will be grateful! Thanks
4 Answers
+ 2
Fedale Duncombe ,
please link your code here so that we can see where the issue is.
0
user_age_input = input()
print(user_age_input \n)
'''
in this case you create variable
and wait user input value, but user
does not know what exactly to introduce to him and what the program wants from him
'''
# insert this text to code playground
0
user_input= input('Hi! Please, enter your age')
print('\nYour age is:', user_input)
'''
in this case, a hint is provided for the user what exactly he needs to enter
'''
# insert this text to code playground
0
Hey Yaroslav Vernigora
Thanks for your help managed to sort it out now!
I had to enter:
name = input()
print("Hello, " + name)