+ 4
for i in range(1,10): print(str(i)+'.') print(*range(1,10),sep='.\n',end='.') edit: seems am not understood your question correctly..!! print('1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.') https://www.sololearn.com/Discuss/2906295/?ref=app
18th Jul 2022, 7:43 PM
Jayakrishna 🇼🇳
+ 1
How it didnt work with \n? It work fine when i type this: print("1.\n2.\n3.\n") Also if you have a lot of this you may use loop to print it. It is longer code, but you can easy change count of how much you wanna print.
18th Jul 2022, 7:46 PM
PanicS
PanicS - avatar