Guys, please, is there any way how to replace this bz user input? [10,20,10]
If I change the firts row to zakodovat2 = ['Insert list of numbers'] and write 10,20,10 manually then I always get an error... thanks for any advice!
zakodovat2 = [10,20,10]
If I change the firts row to zakodovat2 = ['Insert list of numbers'] and write 10,20,10 manually then I always get an error... thanks for any advice!
1 |
|
1 2 3 4 5 6 7 8 |
zakodovat2 = [ 10 , 20 , 10 ] delka = len (zakodovat2) kod = '' for i in range ( 0 ,delka): cislo = int (zakodovat2[i]) pismeno = chr (cislo + 96 ) kod = kod + pismeno print (kod) |