All Courses

Getting error

By Pp5344229gmailcom, 2 years ago
  • Bookmark
0

Getting error

Code:

num = int(input(f"Enter the Marks received: "))
percent = num/100

if percent>0.60: 
    for x in range(5):
    print("salute")
    print("\n")
else:
    for x in range(5):
        print("punishment")
        print("\n")


Output:

  Cell In [7], line 6
    print("salute")
    ^
IndentationError: expected an indented block after 'for' statement on line 5

Error
If
Else
Conditional statements
Python
Indentationerror:
0 Answer
Your Answer

Webinars

More webinars

Related Discussions

Running random forest algorithm with one variable

View More