+ 1

code using input and print

print("hello!\n input("Enter a number please")) SyntaxError: invalid syntax so this is showing me syntax error so can you tell me what part I am doing wrong.

9th Sep 2017, 7:06 PM
SAMIRAN DAS
SAMIRAN DAS - avatar
2 Answers
+ 3
print("hello!\n ",input("Enter a number please")) ...just add a closing double quote and comma after \n
9th Sep 2017, 7:10 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 2
print("hello\n"+input("Enter a number please")) But I think what you really wanted is : print("hello") n = input("Enter a number please") (I may be wrong though)
9th Sep 2017, 7:08 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar