Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Complete the code to output "name is age years old", where name and age are the declared variable values.
name = "James" age = "42" print (name + "is" + age + "years" + "old") How to create space in these string??
4 Respostas
+ 3
" years old" could be one whole string
+ 1
Simba Jay Matthews
Thanks š
0
print (name + " is " + age + " years old")
Use spaces to separated in " " and after a + and before