I have to put the input on the same line as the string and can’t figure out how. Here’s the code:
JavaScript
x
9
1
print('Hello! My name is Awesome Computer.')
2
print('What is your name?')
3
name = input()
4
print('It is good to meet you ' + name + '.')
5
print('How are you today?')
6
input()
7
print('Okay.')
8
print('I am doing great!')
9
Advertisement
Answer
The function input() takes in a string to print so you can do this:
JavaScript
1
2
1
name = input("What is your name? ")
2
And it will print the string before taking input without adding a newline