Question
plz answers these short Qs in python language Q1-Assume that a list of integers named salary_steps that contains exactly five elements has been defined. Write
plz answers these short Qs in python language
Q1-Assume that a list of integers named salary_steps that contains exactly five elements has been defined.
Write a statement that changes the value of the last element in the list to 160000.
Q2-Given a variable plist, that refers to a list with 34 elements, write an expression that refers to the last element of the list.
Q3-Given that a variable named plist has been defined and refers to a non-empty list, write a statement that associates its first element with 3.
Q4-Assume that salary_steps refers to a non-empty list, write a statement that assigns the value 30000 to the first element of this list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started