127k views
1 vote
Why the following code is giving error NAME="REHMAAN" PRINT ("hello') PRINT ("HI")

User Fctorial
by
7.0k points

1 Answer

4 votes

Answer:

corrected code:

NAME="REHMAAN"

print ("hello")

print ("HI")

Step-by-step explanation:

  • In python, put every statement on its own line. Even indentation matters.
  • PRINT should be in lowercase, i.e., print
  • The string quotes should be both " or both ', but not a mix like in "hello'
User Fecub
by
6.2k points