Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How could I print the entire list except for the second and third item?

+1 vote
asked Oct 30, 2021 by Darrion Lewis (130 points)
This what I have so far.

x = 0
carz = ["1970 cadillac eldorado", "2021 ford mustang", "1970 chevy camaro","2021 toyota supra","2021 Corvette Stingray"]
while x in range(3):
    print(carz[x])
    break

1 Answer

0 votes
answered Oct 30, 2021 by 5 G-16 Jain Bharggav Mukul (350 points)

x = 0
carz = ["1970 cadillac eldorado", "2021 toyota supra","2021 Corvette Stingray"]
while x in range(3):
    print(carz[x])
    break

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...