- 3

11 code project for python

‘I’m not understanding how to add a dot behind every line, I keep going back threw the lessons but it isn’t registering in my head lol. Any help is appreciated print("1 \n2 \n3 \n4 \n5 \n6 \n7 \n8 \n9 ") +(“.”) print("1 \n2 \n3 \n4 \n5 \n6 \n7 \n8 \n9 + “.” “) | | I need it to out put like this \/ 1. 2. 3. 4. 5. 6. 7. 8. 9.

8th Mar 2022, 12:22 AM
Xavier
12 RĂ©ponses
+ 2
I understand now. This is exactly how it wanted me to code it. Sorry for my ignorance. Thank you so much for the help! print('''1. 2. 3. 4. 5. 6. 7. 8. 9.''')
8th Mar 2022, 12:42 AM
Xavier
+ 1
Loop?
8th Mar 2022, 12:28 AM
Xavier
+ 1
I tried just adding dots behind every number but it says that the code is wrong still even tho it shows that my code and the answer are the same. I swear i have to add a + (.) or something like that but im not sure how to correctly impliment it.
8th Mar 2022, 12:36 AM
Xavier
+ 1
Recommend you skipping it then come back to it once you know for loops
8th Mar 2022, 12:43 AM
Ion Kare
Ion Kare - avatar
0
Print(“1 \n2 \n3 \n4 \n5 \n6 \n7 \n8 \n9 + “.” “) I tried this but it said is was wrong Print(“1. \n2. \n3. \n4. \n5. \n6. \n7. \n8. \n9.”)
8th Mar 2022, 12:38 AM
Xavier
0
Nice work Xavier Sometimes we don't get it on the first (or 4th...) time, but trying things is much better than giving up! The good news is it gets easier from here (no it doesn't ..... đŸ€­). But some practice will help you to learn how they want it, and what tricks you can use to do things easier. Would you mind editing your original question to have [Solved] as the first word?
8th Mar 2022, 4:42 AM
HungryTradie
HungryTradie - avatar
0
👉 Print(“1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.”) Should work. Notice there aren't any spaces. The space is an ASCii character (character number = 32) so your output would not exactly match the expected output.
8th Mar 2022, 4:47 AM
HungryTradie
HungryTradie - avatar