222k views
5 votes
These statements are run in Python, after the program has run what would be the value of transport? * cars = 16 lorries = 8 transport = cars + lorries transport = 4 cars = 16 lorries = 8 transport = cars + lorries transport = 4​

These statements are run in Python, after the program has run what would be the value-example-1
User Antonyoni
by
3.0k points

1 Answer

8 votes
transport = 4

Even though the previous line says
transport = cars + lorries

We are changing the value stored in transport to 4
User Ash Cameron
by
3.6k points