#๐Ÿ”’ what am i doing wrong

55 messages ยท Page 1 of 1 (latest)

winter zenithBOT
#

@lunar vortex

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.

lunar vortex
#

what do i need to do i can't fix this

valid lantern
#

Reverse the operator

#

=> to >=

lunar vortex
#

on the right side or the left of the number @valid lantern

valid lantern
#

change it to >=

lunar vortex
#

oh thank you so much

fierce parcel
#

it said that my_age is less than 18 so your code should be
if (my_age) =< 18

lunar vortex
#

equals comes after the arrow

fierce parcel
#

idk i can still write it before

valid lantern
fierce parcel
#

your writing the code wrongly to what they asked tho cuz "less than"

valid lantern
#

"Crocodile always eats the bigger numbers"

valid lantern
#

๐Ÿ™ƒ

lunar vortex
#

i got another question

#

do i just delete the delete me from the list

valid lantern
valid lantern
lunar vortex
#

what does that mean

valid lantern
#

To solve that, use the append() method

lunar vortex
#

so to add a variable its append used

valid lantern
#

to add a new item/element to a list, you use append()

lunar vortex
valid lantern
# lunar vortex

Do you have the learning material on how to manage or use lists in Python?

#

There should be one explaining on how to use it

valid lantern
lunar vortex
#

oh im getting better now i can fix some mistakes i did

fierce parcel
#

did u solve this?

lunar vortex
#

i got one last problem on the length @fierce parcel

#

do i write length or len or what

orchid olive
#

in python, there are builtin functions and syntax is len(my_list) instead of my_list.len()

lunar vortex
#

still gives the error tho

#

var3 is not defined

fierce parcel
lunar vortex
#

finally thanks

fierce parcel
#

gj!

lunar vortex
#

so when assigning its on the first place

#

its like var2= 3

#

the same thing

lunar vortex
fierce parcel
#

did u solve this @lunar vortex ?

lunar vortex
#

yep i did

#

now im trying defining functions

fierce parcel
#

whats the code i cant write it ๐Ÿ˜‚

lunar vortex
#

im getting a course in my uni code club a kid younger than me gives us classes

winter zenithBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.

#

๐Ÿ”’ what am i doing wrong