+ 2
Hi friends how can I solve this, it is showing me intended block on the word print
#your code goes here x=int(input()) y=float(input()) weight=x/y**2 if weight<18: print("small") else: print("high")
5 RĂ©ponses
+ 4
The indentation error can occur when the spaces or tabs are not placed properly.
All you need to indent the print statements using tab or (4)spaces.
If ():
print()
else:
print()
+ 3
Nei-yođ Python uses indentation (white space at the beginning of a line) to delimit blocks of code. Depending on program's logic, indentation can be mandatory. so the statements in the if should be indented.
if weight < 18:
print('' small '')
else :
print('' high. '')
+ 2
See this code
https://code.sololearn.com/cp7g74II1lxX/?ref=app
+ 1
Thank you