Please help me on this.... i am new to programing


#1

Create a variable called eggs and assign it the value of False. my ans: eggs = False
and it says i'm wrong. please help ASAP


#2

If this is your exercise.. (otherwise you can link the exercise )
Then You have to create two variables, spam and eggs.

spam should have value of True.
eggs should have value of False.

Hint*
Refer to instructions.


#3

thats exactly what i did sir but im having this response: File "python", line 2
"eggs = False
^
IndentationError: unexpected indent


#4

Can you put snap of code or raw code that you wrote till now? :slight_smile:


#5

I think you are not writing keyword "var" before "egg";


#6

Read the error:

Make sure there is nothing before the word eggs on the same line.


#7

thank you for contributing brotherly, there was whitespace before the "var" thats why i was getting that error. but can you help on the "Create a variable called now and store the result of datetime.now() in it". thanks


#8

Ok, so you know how to create a variable call now. The same way you created eggs and spam.

So, how do we store the result of datetime.now() in it?

Well, how do you store the result of anything in a variable/ define a variable? With "=".

Hopefully, that should be enough for you to put together to get the answer. If not just say.


#9

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