Computer Science, asked by anderson48, 8 months ago

Q. (7 @ What is the error in
the following Phython program
with one statement

Print ("my name is",
name)
Suggest a solution​

Answers

Answered by liza6035
0

Answer:

the starting of the sentence have to be capital..so it'll be

My.....

Answered by HEROBRIME3
0

Answer:

There are 3 errors in the statement.

The use of uppercase 'p' instead of lowercase. [Syntax error]

The omission of brackets. [Syntax error]

The assignment of the variable 'name'. [Name error]

Solution:

>>> name = xyz

>>> print("My name is", name)

Output:

\tt My\ n ame\ is\ xyzMy name is XYZ

Syntax errors occur due to the violation of rules of the program whilst Name errors occur if no value has been assigned to 'name'.

Explanation:

PLEASE MARK ME THE BRAINLIEST AND FOLLOW ME

Similar questions