Application Based Questions
1. Alif wants to print his name 10 times on the output window. Which operator in
python will help him to get the desired output?
Answers
Answered by
2
Answer:
for in and range
Explanation:
the syntax is:
for name in range(10):
print("Alif")
otherwise, a quicker method is print("Alif\n"*10)
\n stands for new line
Plz mark as brainliest if it helped!!
Answered by
0
Explanation:
Python is a very powerful computer language and fins application in many industries and functions
The requirement given in question statement can be addressed as;
int name
for name in range(10)
print("Atif")
Here we simply need a for loop to run for 10 times and printing the name each time it goes through the loop. An alternate approach would to use while loop instead of for loop
Similar questions