11. What is the value of C after these lines of code run? a = 40...
Fantastic news! We've Found the answer you've been seeking!
Question:
11. What is the value of C after these lines of code run?
a = 40
b = 55
c = 150
if a <= 50:
b = 15
if b < 30:
c = 100
else:
c = 200
12. How many times will print be called by this code?
n = 3
while n < 10:
print( n )
n += 1
13. Does range() have to take a parameter?
14. create a for loop that counts down from 15 to 10 and includes both 15 and 10
What is the output after this code runs:
x = 0
y = 0
while x < 5:
for k in range( 1, 4 ):
y = y + k
x = x + 1
print( 'x:', x, 'y:', y)
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: