write Python statement to do the following tasks (a) create a list that contain the name of 5 student of your class (b) add one more name to the list of 5 students (c)
delete the first name from the list of student​

Answers

Answer 1

Answer:

classroster = ["Bill", "Tyler", "Jake", "Sam", "Joe"]

print("Original Roster: " + str(classroster))

classroster.append("June")

print("Added student: " + str(classroster))

classroster.pop(0)

print("Removed the first student" + str(classroster))

Explanation:

We create a variable named classroster and assign it a list value by using []

We print text with the value of the variable classroster, but we used the str tag to make it a string value

We used classroster.append to add "June" to the end of the list.

We then print the classroster again

We use classroster.pop(0) to remove "Bill" on the list. If we wanted to remove "Tyler" from the list, we would use classroster.pop(1).

If we wanted to remove "Jake" we would use classroster.pop(2)

and so on. goodluck!


Related Questions

Describe white blood cells you see at 10X?

Answers

Answer:

White blood cells are part of the body's immune system. They help the body fight infection and other diseases. Types of white blood cells are granulocytes (neutrophils, eosinophils, and basophils), monocytes, and lymphocytes (T cells and B cells). ... Also called leukocyte and WBC.

Explanation:

What is considered appropriate dress for men and women in the workplace? Select all that apply.

Answers

Answer:

I guess clean, pressured pants or skirt

and

dress shirts and ties

Answer:

the first and last

Explanation:

because you don't want to reveal any things that are inappropriate but you still want to be comfortarible.

How can you tell that someone is listening to what you through your device ?

Answers

Answer:here are some signs to look out for: Background noise. As with mobile devices, background noise whilst on a call is a sign that somebody else could be listening. Listen out for static, buzzing or clicks on the line.

Explanation:

Why did the editors choose to rearrange the intercutting between Luke’s story and the Imperials? What effect did this have on the final film?

Answers

Answer:

Though it has its merit, know that the rule is not mandatory. ... A jump cut is a cut in film editing in which two sequential shots of the ... An intercut is a type of edit where two or more actions in distinct ...

How do computers process data?

Answers

Data processing, Manipulation of data by a computer. It includes the conversion of raw data to machine-readable form, flow of data through the CPU and memory to output devices, and formatting or transformation of output. Any use of computers to perform defined operations on data can be included under data processing.

Hope this helps!
Other Questions
Help me please ???????? PLEASE, PLEASE HELP WITH THIS SOON!A restaurant customer left $1.10 as a tip. The tax was 4% and the tip was 10% of the after tax cost. Which information is not needed to compute the bill after tax and tip? What was the total bill? PLS HELP 20 POINTS AND WILL MARK BRAINLYEST IF U R CORRECT Larue scored 10 points less than 3 times the number of points that Ross scored. Larue scored 11 points. How many points did Ross score? Show your work. plez helpWhich diagram shows an effect of Henry Clay's American System? Marie donated 36% of her comic books to aschool. If she donated 135 comic books, howmany did she own before her donation? Can somone please help me and explain very much appreciated and this is 7th grade math btw What is the measure of the unknown angle? Which of the following statement(s) describes the rate of change of f over the interval 1.5 SXS 3? Select all that apply.A. The rate of change is 1/2B. The rate of change is 2C. The rate of change is constant D. The rate of change is increasing The product of a binomial and a trinomial is x3+3x2-x+2x2+6x-2 Which expression is equivalent to thisproduct after it has been fully simplified? Can you combine 4x and 2x2. Explain why or why not. Fires, factory waste, and automobile exhaust are major cause of _________ in south and Southeast Asia What is the main idea of text option A? I will give brainliest 9. Whichof the following is a proper fraction?A 12/10B. 5/4 C.7/10 D.10 1/9 how does the acquisition of new traits affect the tradition of the inhabi particular country? (honest opinion) Triangle DEF is on a coordinate plane with itsvertices located at D( 3,5), E( 3, - 2), andF(3,0). What is the area of ADEF in squareunits? Match the words that have the same denotations. In an ecosystem, which of the fcHlowing is NOT a trait of living organisms?Contains DNACan reproduceMade of cells with membrane Responds to stimuli Select the answer choice that has the correct missing values. * The sum of 3 times the value of x and 2 is equal to less than 5 times the value of x. Which equation can be used to find the value of x?A. 3x+2=4-5B. 2x+3=4-5xC. 3x+2=5x-4D. None of these Which inequality is true if p=3?A. 3p 15D.8 > 2p