0

List Operations You are given a list of items. Write a program that takes a num number as input, reassigns the element with th

items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] items[2] ='x' print(items) my try Test Case 1 Input 2 Your Output [1, 2, 'x', 4, 5, 6, 7, 8, 9, 10] Expected Output [1, 2, 'x', 4, 5, 6, 7, 8, 9, 10] Test Case 2 Input 4 Your Output [1, 2, 'x', 4, 5, 6, 7, 8, 9, 10] Expected Output [1, 2, 3, 4, 'x', 6, 7, 8, 9, 10]

3rd May 2021, 4:14 AM
Aryan kumar
Aryan kumar - avatar
3 Respostas
+ 1
Im stuck on this too :/
20th May 2021, 4:23 AM
Jocelyn
Jocelyn - avatar
0
if you need help, post your attemps first so we can help you to understand the problem.
3rd May 2021, 4:18 AM
Apollo-Roboto
Apollo-Roboto - avatar
- 1
Aryan kumar You haven't posted the whole challenge, or your attempt, just the challenge results. From those results, I would guess that you have an input which matches a given example, but you require an input which will interact with the rest of your code. As previously suggested by Apollo-Roboto , post your attempt so we may fully understand how to help you
3rd May 2021, 8:51 AM
Rik Wittkopp
Rik Wittkopp - avatar