Dyskusje Q&A
What is caused by leading 0
3 głosów
3 odpowiedziWhy this code runs?:
nums = [4, 5, 6]
msg = "Numbers: {} {}". format(nums[0], nums[1], nums[2])
print(msg)
Numbers:4, 5.
Byt the code:
nums = [4, 5, 6]
msg = "Numbers: {} {} {} {}". format(nums[0], nums[1], nums[2])
print(msg)
leading to error?
IndexError: tuple index our of range
1 Głos
3 odpowiedziCSS
-2 głosów
2 odpowiedziPopularne dzisiaj
Just a little advice
5 Votes
Python functions
1 Votes
beginner
0 Votes
Python Courses Order
0 Votes
How to install any pup
0 Votes
Float or integer
1 Votes
sololearn is too harsh
2 Votes