Answer to Question #91182 in Python for Promise Omiponle

Question #91182
1. What gets printed?
while a = 10:
print('Howdy')

2. What is printed by the python code?
Print 14/4, 14%4, 14.0/4

3. What is printed by the python code?
print '2' + '3'

4. What is printed by the Python code?
for i in range(4):
print (i)

5. Given a string s, write a short expression for a string that includes s repeated five times.
1
Expert's answer
2019-06-28T02:17:50-0400

1) Syntax error

2) If brackets are added (print(14/4, 14%4, 14.0/4)), the answer is "3.5 2 3.5", else there is an error.

3) If brackets are added (print('2' + '3')), the answer is "23", else there is an error.

4)

"0

1

2

3"

5) New string is s * 5


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS