272,033 views
0 votes
0 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 Anselmo
by
2.5k points

1 Answer

8 votes
8 votes
transport = 4

Even though the previous line says
transport = cars + lorries

We are changing the value stored in transport to 4
User Gokhan Oner
by
2.8k points