The correct way to write the line of code in Python for a character to say, "Hello, my name is Sam" is:
print('Hello, my name is Sam')
Therefore, the appropriate response from the options you provided would be:
print (‘Hello, my name is Sam’)
Responses
function, print (‘Hello, my name is Sam’)
function, print (‘Hello, my name is Sam’)
print (‘Hello, my name is Sam’)
print (‘Hello, my name is Sam’)
(‘Hello, my name is Sam’) print
1 answer
The correct way to write the line of code in Python for a character to say, "Hello, my name is Sam" is:
print('Hello, my name is Sam')
Therefore, the appropriate response from the options you provided would be:
print (‘Hello, my name is Sam’)