¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Code coach More Line, More Better. Python
I'm trying the code coach More line, More better which asks this: Working with strings is an essential programming skill. Task: The given code outputs A B C D (each letter is separated by a space). Modify the code to output each letter on a separate line, resulting in the following output: A B C D Which I anwser this to: print('A \nB \nC \nD') But it tells me it's wrong does anyone know why?
11 Respuestas
+ 5
print('A\nB\nC\nD\n')
+ 1
TheBreakingPanda
There should not be space after A, B, C
+ 1
you code should be like this
print('A\nB\nC\nD')
without spaces between them
0
your answer is correct, don't know what's happened!?
0
print('A\nB\nC\nD\n') This is the correct answere for this particular question
0
print("A\nB\nC\nD") this is the answer, there should be no white space
0
print('A\nB\nC\nD\n') this is the answer
0
print('A\nB\nC\nD\n')
0
print("""A
B
C
D""")
im putting this but its turning out wrong. like my putput is correct but it saying its incorrect. any help?
0
print('A')
print('B')
print('C')
print('D')
- 1
print('A\nB\nC\nD\n')
here is your answer