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]
3 ответов
+ 1
Im stuck on this too :/
0
if you need help, post your attemps first so we can help you to understand the problem.
- 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