I think is b.how much time we spend alone
Answer:
A for loop is a block of code where a certain instruction repeats a certain amount of times.
Yes, you can use a variable instead of a number in a for loop.
Explanation:
For example, you're using a for loop and you want to repeat it a certain amount of times, but you want to take user input. You would ask the user for their input and assign it to a variable, then use that variable for the for loop.
Answer:
sum = 0
for i in range(20, 100, 10):
sum = sum + i
Print(sum)
Explanation:
printer is an output device because,
A printer is a device that accepts text and graphic output from a computer and transfers the information to paper, usually to standard size sheets of paper.
So, a printer is an external hardware output device that takes the electronic data stored on a computer or other device and generates a hard copy of it.
therefore, it can be said that a printer is an output device