Nega ifdan so'ng barchasiga else yozish kerak? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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
4 Respostas
+ 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