Post

@clcoding 20, 15
The given code a variable ‘num’ is assigned the value 20.
Then the ‘while loop’
The while loop repeats a block of code as long as a specified condition
remain true.
Checks to see if the value is ‘greater’ then 10.
+
English

@clcoding Answer: 20 15 (on separate lines)
Solution: Quick recap,
a `while` loop's body is repeatedly executed until
the condition is condition remains truthy.
Here
num = 20
assigns the value 20 to `num`.
while num > 10:
...
This loop will execute as long as num>10
+
English

@clcoding Check
20>10, yes
Print 20
Then, 20-5=15
Now, 15>10, yes
Print 15
Then, 15-10=10
Now, 10>10, No
End the loop
So, the output will be 20 15
English



































