Ask coding questions

← Back to all posts
can someone help me with python. i what to learn advanced stuff?
Flyingcrabs (7)

Hi so i been sent to a project but i don't get some part of the code

Answered by RYANTADIPARTHI (3237) [earned 5 cycles]
View Answer
Commentshotnewtop
RYANTADIPARTHI (3237)

Full explanation:

(1) Non-verbal   # these are choices that the user gets
(2) Math    # this too
(3) Verbal   # and this
(4) English # and this
(5) mock test (never coming ) # and this
''')

So those are all in a comment, which is basically like something when you run the code, it doesn't execute. Python ignores it. And the choices are for the user, which in later lines you will see if conditions like if choice == "1" and more.

RYANTADIPARTHI (3237)

@Flyingcrabs ok, so from line 18 to 23, all of the stuff in those line are comments. Which python ignores. When running code. But they are choices, for the user to choose when you run the program. But don't worry about that. What you need to worry about is, they are comments, and they will not be counted in the code you gave us.

Flyingcrabs (7)

then why did the people who made it do that
@RYANTADIPARTHI

RYANTADIPARTHI (3237)

@Flyingcrabs They did that so they could refer to it. They want to make another piece of code, but they commented it, so they can look at it, whenever they want. Instead of removing it.

Flyingcrabs (7)

thats commenting (1)~
i thought # was commenting

RYANTADIPARTHI (3237)

@RYANTADIPARTHI But one thing is i don't thing you can mark an answer twice. If you want, you can give me upvotes. It's your choice though :) Thanks though!!

Coder100 (12435)

what's your question exactly?

Flyingcrabs (7)

help me get all of that code
@Coder100

Coder100 (12435)

what part do you not understand @Flyingcrabs

Coder100 (12435)

ok, well, those are multiline strings. That means python treats them like literal newlines:

'''hello
world'''

is the same as

'hello\nworld'

@Flyingcrabs

Flyingcrabs (7)

forget about the earlyer on and what does the pic mean @Coder100

Flyingcrabs (7)

the one you gave me to look earlyer
@Coder100

Coder100 (12435)

those are not images, and what part of that confused you @Flyingcrabs

Flyingcrabs (7)

ok but what does it the thing i dont know mean
@Coder100

Coder100 (12435)

a newline is:

hello
------- this space in between
world

you can find it by pressing the enter key.
@Flyingcrabs

Coder100 (12435)

didn't I already explain it to you @Flyingcrabs

Flyingcrabs (7)

this project is in progress