- 3

How do i do this question. Fill in the blancks to create a list, reassign the 2 ellment and print the whole list. nums = [33, 42, 56] nums = [ ] =22 print ( )

Can you do this?

20th Jul 2016, 3:41 PM
Ethan
8 Respuestas
+ 3
nums = [33, 42, 56] nums[1] = 22 print(nums)
15th Sep 2020, 7:08 AM
Divya Peddapalyam
Divya Peddapalyam - avatar
0
14th Dec 2020, 3:03 AM
ลัดดาวรรณ ชอบมี
0
nums = [33,42,56] nums[1] = 22 print(nums)
19th May 2021, 7:43 AM
Madhavareddy
Madhavareddy - avatar
0
nums = [33, 42, 56] nums[1] = 22 print(nums)
10th Oct 2021, 9:44 AM
Chaitanya suresh kadam
- 1
Lists are accessed by a 0 based index. Meaning the second item in the list is accessed by list[1] So you would do something like nums[1] = 22 To print the list, just do print(nums)
20th Jul 2016, 4:05 PM
jj Fer
jj Fer - avatar
- 1
nums[1] = 22 print(nums)
20th Jul 2016, 9:41 PM
Prashant Kasbekar
Prashant Kasbekar - avatar
- 2
nums = [33, 42, 56] nums[1] = 22 print(nums)
9th Dec 2019, 6:06 PM
Angelica
- 5
What is the result of this code? nums = [10, 9, 8, 7, 6, 5] nums[0] = nums[1] - 5 if 4 in nums: print(nums[3]) else: print(nums[4])
4th Apr 2017, 2:11 PM
carla