Ask your own question, for FREE!
Computer Science 20 Online
Astrid1:

What did I do wrong 😭

Astrid1:

Astrid1:

@extrinix

Astrid1:

I'm using bob ross as something to put there because I do indeed need a name to put there.

Astrid1:

I could do any name in the world but, obv not going to.

RurounixKenshin:

@astrid1 wrote:
I could do any name in the world but, obv not going to.
Yeah I can't seem to find what is wrong either

RurounixKenshin:

@rurounixkenshin wrote:
@astrid1 wrote:
I could do any name in the world but, obv not going to.
Yeah I can't seem to find what is wrong either
weird

ThisGirlPretty:

@ultrilliam

Extrinix:

You forgot to put a double quote to finish the \(\sf{\color{cyan}{","}}\) This is what you put: ``` print("I am " + name + ", +str(age) + "years old.") ``` And this is what it should say this instead: ``` print("I am " + name + "," + str(age) + "years old.") ```

Astrid1:

Oh 💀

Extrinix:

Also your "name" variable will not allow the print to work properly as it's not defined (comma spliced at the moment)

Extrinix:

comment* whoops

Astrid1:

Whaa, but thats what our teach told us??

Extrinix:

Your teacher told you to comment out the `name` variable?

Astrid1:

Yes, she showed us in her LL. I have the notes right here with me.

Astrid1:

Unless I misheard and she was showing another non example 😶

Extrinix:

Interesting, if she's not wanting the name to be show it should just be ``` print("I am " + str(age) + "years old.") ``` If you get what I'm saying

Extrinix:

But I think you just misheard her..

Astrid1:

She's wanting the name to show. Remember that assignment I told you abt the other day where we had to create a calculation? This is it, we had to have a "problem" to solve (all problems have ppl yes) and this is one of the ones she showed us?

Extrinix:

Ah, yeah

RurounixKenshin:

sry i just started learning this stuf

Extrinix:

@extrinix wrote:
You forgot to put a double quote to finish the \(\sf{\color{cyan}{","}}\) This is what you put: ``` print("I am " + name + ", +str(age) + "years old.") ``` And this is what it should say this instead: ``` print("I am " + name + "," + str(age) + "years old.") ```
I'm thinking it's as I said here

Astrid1:

Yeah you're right. But I'm lowkey stuck on the space betwen 16 and years? She said that - can provide as a space but I can also just use the word space?

jujucarter:

@extrinix dont gotta be rude

Extrinix:

Where it says `"years old."`, just add a space in front of `years`

Astrid1:

Ahh boi, thanks. 🤦

Extrinix:

Lol, no problem

Astrid1:

Ur like a, triple lifesaver?? 😂✋

Extrinix:

XD not even

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!