+ 1

Why is not work?

b=45 n=int(input()) if b>n: print ("bbb") if b<n: print ("sss")

30th Jul 2019, 11:19 AM
_ BROMBIN_
_ BROMBIN_ - avatar
2 ответов
0
in python realy depends how spaces or tabulators you are exactly write before code line. So decide your basic indent, use eg 4 spaces and then write 1x4 before print, and no spaces before if tag your question exactly like: python, and you get more answers
30th Jul 2019, 12:11 PM
zemiak
+ 2
because the loop is a nexted loop, if the first loop is false the next if will not be executed
30th Jul 2019, 12:06 PM
✳AsterisK✳
✳AsterisK✳ - avatar