#๐Ÿ”’ short answers

58 messages ยท Page 1 of 1 (latest)

woven flower
#

short answers

cedar acornBOT
#

@woven flower

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

woven flower
#

Just need my answers checked

lucid nova
#

I get the feeling from your answer that you're trying to hide the fact that you don't know the answer by word-vomiting.

#

The answer is super generalized and philsophical-sounding when the question is asking for a simple concrete technical answer.

#

It's not a deep question.

#

Do you know what input() does? Do you know what the prompt parameter does?

woven flower
#

Input itโ€™s a function

lucid nova
#

Yeah. And what does it do?

woven flower
#

It gets the input from the user

lucid nova
#

Right. And what does the prompt parameter do?

woven flower
#

Whatโ€™s a prompt parameter

lucid nova
#

Exactly

#

You can't answer this question if you don't even know what "prompt" is

woven flower
#

Isnโ€™t it when u store the user input to a variable

lucid nova
#

No

#

Read this article

#

Then come back and tell me what the prompt parameter does

woven flower
#

Sure one moment

#

@lucid nova

#

The prompt parameter is

#

The actual string

lucid nova
#

What string?

plain cloud
# woven flower

the prompt parameter isn't really that important as the question seems to make it (not even for terminal applications) but it is very convenient

woven flower
#

So is my answer valid

#

What should I have typed instead

meager stump
dawn roost
lucid nova
# woven flower So is my answer valid

No, it's not. @plain cloud is somewhat justified in questioning the importance of the question itself, but if you do have to answer it, you need to understand what prompt is.

meager stump
#

if you are the developer of the program, you will just "know" what the program expects you to enter at some point, but imagine a user who is just running it
they have a blinking cursor, and they can type stuff.. but what? how are they supposed to understand what are they supposed to type?
thats what you write the prompt for, to explain what is supposed to be entered
kinda like naming function parameters but for the user rather than the developer

woven flower
#

so this quesiton is specefically asking in the terminal

#

not in a web app

#

we only have text

#

in terminals

#

right?

lucid nova
#

Yeah, input() is a function that takes input from the user in the terminal

woven flower
#

but also in web apps too

lucid nova
#

No

#

Only in the terminal

woven flower
#

ohhh

#

then whats the

#

input tag in html

#

or its different concepts

lucid nova
#

Yes, it is

#

They have the same name, but they are completely different things

woven flower
#

makes sensee

#

what about this

woven flower
woven flower
#

@dawn roost

dawn roost
#

yes?

woven flower
#

what about Q3?

cedar acornBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.