I'm stuck!


#1


Instructions

Create a new variable brian and assign it the string "Hello life!".

File "python", line 3
SyntaxError: can't assign to function call


Replace this line with your code. 
variable_(brian)="Hello life!"


#2

To create a variable so easy in python. just write the name and assign it to a value.
for example:

x=5

here x is a name of the variable and 5 is a value

dont need to tell that you are creating a variable like somthing you did

variable_(brian)

the problem in your code is you are using brackets

variable_(brian)

you could do somthing like

variable_brian

but instrunction is somthing else
instruction:

Create a new variable brian and assign it the string "Hello life!".

so brian should be the name of the variable


#3

Thank you very much for your helpful and detailed response to my question


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.