I cannot run a module

hi, i am new to python, but can you please stop sending syntax errors? i do not know what is wrong. i am trying to run my simple code but it keeps saying 'Syntax Error. perhaps you forgot a comma?" belive me, i added a comma

can you share your code here, and the full error message you’re receiving?

Not until you stop making them :wink: Share your code, or a little excerpt that works on its own and has the same problem.

Follow this advice to make it readable: Python Discourse Quick Start (It works for the error message too.)

name= ‘iwueseter’
lastname= ‘kange’
age= 8
print(my + name + is + name + lastname + i + am + age + years + old)
SyntaxError: invalid syntax

that is my code.

Excellent, thanks. The problem is that you mean some of these words to be taken literally, as text you want typed out. But the way you have used them, they all look like variable names to Python.

You already know about strings, so the simplest way to get what you want is:

print('my name is', name, lastname, 'i am', age, 'years old')

Here you ask Python to print 6 things on a line. Some are literal values (strings) and some are variables. It will put spaces between them, so you don’t have to think about that part. That will do the job.

A nicer way, which you might like to learn is called a format string. Here you ask Python to piece together one string for print to output, from the literal text and the values of your variables.

print(f'My name is {name} {lastname}. I am {age} years old.')

It is like a string, but it starts with an f and you put the variable names in curly brackets to tell it to insert a value. And you take care of the spaces yourself as part of the format string.

A detail: The invalid syntax was a puzzle at first, because I expected something like NameError: name 'my' is not defined but I see what has happened. The word is has a special meaning to Python, and is not being used correctly, so this is the thing it noticed before it tried to work out what my means, which only happens when the program runs. If I change “is” to “was”, you see how that changes:

my + name + was + name + lastname + i + am + age + years + old
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    my + name + was + name + lastname + i + am + age + years + old
NameError: name 'my' is not defined