Computer Science, asked by sowndaryapeddireddy, 3 months ago

write a python program that asks the user for their name and how many times to print it .the program should print out the user's name the specified number of times​

Answers

Answered by SparklingThunder
0

 \huge  \purple{ \underline{ \boxed{ \red{ \mathbb{ANSWER : }}}}}

 \red{ \textsf{n=int(input("Enter a positive number : "))}}

 \red{ \textsf{for i in range(n):}}

 \red{ \textsf{	 \:  \:  \:  \:print("Your name") }}

 \large \green{ \underline{ \underline{ \mathbb{KNOW  \: MORE :}}}}

 \large\orange{ \textsf{for}}

for is the keyword in python which is used to form a loop whose definite length is known , it does not takes the last value .

 \large\orange{ \textsf{print}}

print is the keyword in python programming language . It print anything which is written within it .

 \large\orange{ \textsf{input}}

input takes the input from the user in the form of string .

 \large\orange{ \textsf{int}}

int converts the input into integer form .

Similar questions