125k views
0 votes
The code below is repetitious. What is the output of this program?

num = 3
num = num + 1
num = num + 1
num = num + 1
print(num)
Output:

User Elledienne
by
5.2k points

2 Answers

7 votes

Answer:

6

Step-by-step explanation:

Edge 2021

The code below is repetitious. What is the output of this program? num = 3 num = num-example-1
User Alexey Markov
by
5.6k points
3 votes

Answer:

It should be 6

The code below is repetitious. What is the output of this program? num = 3 num = num-example-1
User Justin Kiang
by
4.7k points