x = [423,'b',37,'f']
u = x[1:]
y = u
w = x
u = u[0:]
u[1] = 53
x[2] = 47
what is the output of this python code?
Answers
Answered by
1
Answer:
The answer is x(2)=47 python CO de
Answered by
0
The above code will display nothing.
Explanation:
- There is no print statement in the above python code, So the above code will display nothing. The print statement is used to print the output.
- If the user wants to display the output of u variable, then it will display the list of x after removing the first element and the 53 will assign in the place of 37. It is because the "x[0:]" removes the first element of the list.
- If the user wants to print the value of w, then it will print the above list.
- If the user wants to print the value of x then it will print the value of the list after replacing the value 37 with the value 47.
Learn More:
- Python : https://brainly.in/question/14689905
Similar questions