Computer Science, asked by abdulrazz1456sheikh, 6 hours ago

What's wrong in this python program
Print("jbc")
Print("def")
n=int(input("enter a no."))
if n==1:
a=int(input("enter a no."))

Answers

Answered by InfinitePlasma
1

Answer:

on line 5, IndentationError: expected an indented block

Explanation:

Answered by rogan21
1

Answer:

Line 5: Indentation Error

Explanation:

In python we have to indent all the child of a block.

" : " represents the block starts and un-indent represents the end of a block,

in your case you started the block ( if n==1 :) and un-indented using a=int(input("enter a no.")) but python does not allow empty block.

hence  line 6 must indented to next level or a keyword "pas s " (remove space in pa ss) may used in block if you plan to complete that block after some times.

Similar questions