#πŸ”’ NEED HELP

25 messages Β· Page 1 of 1 (latest)

tacit sphinx
#

Here why he has written firstly, QUIT BIG then in the next line SMALL, are they both same

grizzled zephyrBOT
#

@tacit sphinx

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.

coarse hawk
#

it's what's called an enum (I believe that's how it's implemented here)

#

pygame.quit() is the action, while pygame.QUIT is a type of event

tacit sphinx
#

ok

keen narwhal
#

pygame.QUIT is a constant variable which you compare with the type of the event to tell what type that event is

pygame.quit() is an action hence the () it is used to close the pygame session i would assume

in programing case matters
see Print("Hello World") wont work only print("Hello World") does

tacit sphinx
#

Thanks bro

keen narwhal
#

in python constants are not really a thing (you cant make veriables that can not be changed) but if you shouldnt change a variable aka it should be constant its often written with full capital letters

tacit sphinx
#

ok, so QUIT is just a name or constant and quit is actual action

tacit sphinx
#

alright then can i write something else

#

there

#

instead of QUIT

#

??

coarse hawk
#

print the value and see what it is

keen narwhal
tacit sphinx
#

Alright thanks a lot all of u

#

and especially e-kreten

#

thanks

#

good by

keen narwhal
# tacit sphinx and especially e-kreten

you can close the thread with !close or !solved
also no need to special thank me birk said the same thing just sooner i just tried to explain in more detail

tacit sphinx
#

alright

#

!close

grizzled zephyrBOT
#
Python help channel closed with !close

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.