I’m trying to print a sentence ten times or so (as per what count is given in range()), but I want the first sentence tabbed once, the second sentence tabbed twice, etc…
Here is my code:
count = 0
for i in range(10):
print("\t*countPython is fun")
count += 1
Currently I get the output as below which is not something I want:
*countPython is fun
*countPython is fun
*countPython is fun
*countPython is fun
*countPython is fun
*countPython is fun
*countPython is fun
I understand that this is something to be done in the print() function, but I don’t get it correct. How can I fix this problem?
* countmust be outside the string: