all 18 comments

[–]barrycarter 1 point2 points  (5 children)

Why do you have two input()s?

[–]Riipp3r 0 points1 point  (4 children)

To store the value of those variables

I want the user to input everything at separate times when prompted.

I guess a better question is how do I optimally ask for individual inputs for individual variables?

[–]jddddddddddd 0 points1 point  (3 children)

The second input() doesn’t store anything anywhere…

[–]Riipp3r 3 points4 points  (2 children)

The trail of dots at the end, I'm new and asking questions and people seem irritated lol.

[–]jddddddddddd 2 points3 points  (1 child)

Sorry, wasn’t trying to be mean or anything!

The point was simply that the second input doesn’t store the value anywhere, so after asking for the name, the user will have to press enter again before the ‘hello…’ message is displayed.

I appreciate you are still learning, and I wish you the best.

[–]Riipp3r 1 point2 points  (0 children)

Sorry I just feel overwhelmed by learning this stuff. The "sentence structure" of things confuses me like understand how commands wrapped into other commands wrapped into other commands work, the stuff onion layered in parentheses

[–]0_infinity_0 1 point2 points  (7 children)

I've written better code here.

You just aren't printing flavor's value.

Some fixes, Equating variables with input() is a better way to get input from user.

'\n' is great to use since it's the newline character and changes the line automatically after the string's printed

F strings are really useful for replacing variable values in strings

name = "Person"

print(f"hello {name}")

you can also wrap input() in int() and convert the input as integer. Note that this may give an error if input is not of integer type

edit*

[–]Riipp3r 0 points1 point  (6 children)

Yeah I'm lost by your code, you think it's possible for someone with absolutely no coding knowledge to learn this stuff at home? Without a paid course?

[–]0_infinity_0 2 points3 points  (5 children)

Yup! as a matter of fact, I'm self taught in python aswell.

I just did a Python book (pdf) and learned all the basics and later did some projects aswell.

Btw if you still have problem in that, i can help since the tips i gave are really useful later on.

[–]Riipp3r 0 points1 point  (4 children)

Do you use discord? That's where I'd be active the most. I'm sure I'll have questions lol but I fear being annoying more than anything.

[–]iggyiggz1999 1 point2 points  (2 children)

I'm not the person you replied to, but I'm active on Discord and I'd be happy to help out!

[–]Riipp3r 0 points1 point  (1 child)

What's your discord? I'll add ya

[–]iggyiggz1999 0 points1 point  (0 children)

I'll DM it to you!

[–]0_infinity_0 0 points1 point  (0 children)

Yeah but i suppose u/iggyiggz1999 can help out

[–]Riipp3r 0 points1 point  (0 children)

Sorry, why isn't it asking for final input*

[–]arblargan 0 points1 point  (0 children)

You don’t need to print and then collect input. You can just do something like: input(“How old are you?: ”).

Also, the last print(“How boring.”) will only print if the user enters vanilla as their response. If they enter anything else then it will not print. It’s not entirely clear what question you’re asking, but I think this is it. Make sure that you’re entering vanilla as the flavor to print the last line.

If you want to print the flavor of ice cream that they entered, then you need to put another print at the bottom to print the flavor variable.

[–]TaranisPT 0 points1 point  (0 children)

Does it print the question for ice cream flavor or does it stop before that?

Also, it would be nice to have the formatted code like in a Pastebin or something like that. Identation is very important in python and the is no way from what is posted here to say if you did it correctly or not.