Given a variable bridge_players, write a statement that increases its value by 4.
(PLEASE upload a code in python in which we could copy and paste) thank you so much!
Statement in python that will increase the value of variable bridge_players by 4 is -->
bridge_players=bridge_players+4 |
if you want to ask a user for the value of variable bridge_players and then inncrease it, you can do it simply by giving command -->
bridge_players=int(input("Enter value of bridge_players"));
this statement will read the input from user and store the value in bridge_players.
and if you also want to show the value of bridge_players after incrementing it by 4, you can use -->
print(bridge_players)
so, python program will be -->
bridge_players=int(input("Enter value of
bridge_players"));
bridge_players=bridge_players+4
print(bridge_players)
And statement that will increase the value of bridge_places by 4 will be -->
bridge_players=bridge_players+4
Get Answers For Free
Most questions answered within 1 hours.