0

Nega ifdan so'ng barchasiga else yozish kerak?

Notebook jupyter da shu kodi yosam hato deyapdiyu va u bita elseni qabul qilyapdi

22nd Feb 2021, 3:08 PM
Botir Vohidov
Botir Vohidov - avatar
6 Answers
+ 1
Trasnslated: In Anaconda, only bita else is allowed after bita if num = 3 if num == 1: print ("One") else: if num == 2: print ("Two") else: if num == 3: print ("Three") else: print ("Something else") and here else there is after each if that anaconda program says error
22nd Feb 2021, 3:36 PM
Botir Vohidov
Botir Vohidov - avatar
0
Thank you very much for your attention bro
22nd Feb 2021, 3:37 PM
Botir Vohidov
Botir Vohidov - avatar
0
Can you copy this code and paste it into Anaconda then run
22nd Feb 2021, 3:49 PM
Botir Vohidov
Botir Vohidov - avatar
0
Will it work or not?
22nd Feb 2021, 3:49 PM
Botir Vohidov
Botir Vohidov - avatar