Answer to Question #262092 in Python for Mikee

Question #262092

1. Broken Record

Instructions:

  1. Input a positive integer.
  2. Using while() loop, repeatedly print out the message "CodeChum is awesome" for the same number of times as that of the inputted integer. Each outputted message must be separated in new lines.
  3. Don't forget to make an increment/decrement variable that will increase its value per iteration so as to not encounter a forever loop and have errors, okay?

Instructions

  1. Make a variable and assign it to an input() function that will accept a positive integer.
  2. Using while() loop, repeatedly print out "CodeChum is awesome" for the same number of times as that of the inputted integer. Each outputted string must be separated in new lines.
  3. Don't forget to make an increment variable that will increase its value per iteration so as to not encounter a forever loop and have errors, okay?

Input

A line containing an integer.

4

Output

Multiple lines containing a string.

CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesome





1
Expert's answer
2021-11-06T18:56:13-0400
number = int(input("Enter a positive integer:   "))
i = 0
while(i<=number):
    print("CodeChum·is·awesome")
    i = i + 1

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