- 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.
12 Answers
+ 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.''')
+ 1
Loop?
+ 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.
+ 1
Recommend you skipping it then come back to it once you know for loops
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.â)
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?
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.