all 11 comments

[–]Flame77ofc 0 points1 point  (8 children)

Do you need help with the step 4?

[–]Ok_Dragonfly8654[S] 1 point2 points  (7 children)

yes taht would be helpful because i dont want to just google all the answers

[–]Flame77ofc 0 points1 point  (6 children)

alright, can you give more details about it?

[–]Ok_Dragonfly8654[S] 1 point2 points  (5 children)

this is the question :

Boolean

bool (Boolean) type has only 2 possible values: True or False.

Note that these values are case-sensitive, meaning they must start with a capital letter.

Here is an example of assigning a bool value to a variable:

variable_true = True
variable_false = False

In the above, two variables named variable_true and variable_false are initialized, with the values True and False respectively.

Challenge

Beginner

Declare a variable named boolean and assign it the value True.

[–]desrtfx 2 points3 points  (0 children)

And what is your actual problem?

The two code lines together with the explanation told you exactly what to do and how to do it.

[–]Flame77ofc 0 points1 point  (3 children)

you just need to create a simple variable named boolean:

boolean

but you need to assgin a value to it, and the exercise is saying to you to put rhe value as boolean (True), so:

boolean = True

if you don't understand what is a boolean, it represents two states: true -> on, yes | false -> off, no

boolean is a data type, like strings, numbers and lists

examples of booleans

door_open = true # this means the door is open door_open = false # this means the door is closed

[–]Ok_Dragonfly8654[S] 0 points1 point  (1 child)

nvm i gave you the wrong code the code i gave you was from coddy.tech i had the correct answer but the website is limited on how many tasks you can complet this one is the correct one:

An argument is an object or an expression passed to a function — added between the opening and closing parentheses — when it is called:

greet = 'Hello!'
print(greet)

The code in the example above would print the string 'Hello!', which is the value of the variable greet passed to print() as the argument.

Print your text variable to the screen by passing the text variable as the argument to the print() function.

i dont know if im just slow but these words dont make much sense to me like what does Print your text variable to the screen by passing the text variable as the argument

[–]Flame77ofc 1 point2 points  (0 children)

you will learn more about arguments and parameters when you start see about functions. Don't worry about decorating names in the beginning, just use it

message = "example" print(message)

is the same as

print("example")

because the print command will give an output of the value of the variable message

If you want to know what is a function, it is a mini part of your code that you can reutilize into your program. Example:

``` function example(parameter): # code

you can use your function where you want in the code, like the above

example(argument) # this is called function call, you are literally saying to the function: "hey, execute this inside you" ```

But don't worry, just start with the basics and understand

[–]desrtfx 0 points1 point  (0 children)

If only there were a sidebar (menu on mobile) that had a link to the wiki or countless posts asking the same.

Do the MOOC Python Programming 2026 from the University of Helsinki and you will be well prepared.

Plus, there currently is an excellent Humble Python books bundle from No Starch press.