0
whats wrong with that code?
https://code.sololearn.com/ck0l471qTj21/#py ive allready asked it and i de tried agin and it till doesnt work//// thats the erorr masage"File "..\Playground\", line 13 num1 = float(input("Enter a number: ")) ^ IndentationError: expected an indented block "
4 odpowiedzi
+ 7
The indentation step has to be consistent throughout the block, you can't change it in-between.
+ 4
this is right.
https://code.sololearn.com/csMQoDNBB4Y8/?ref=app
+ 1
Python is very fussy about proper indentation.
Blocks in python is defined by indentation...( similar to braces in c, cpp, java)
I observed that you are not indenting the code for if, else block in several places
Give proper indentation
+ 1
You need to indent your stement after the condition in the elif statement. python is always sesitive with white spaces. .