#๐Ÿ”’ ok back to trying to code stuff what do i learn?

222 messages ยท Page 1 of 1 (latest)

chilly oar
#

:3

lost badgeBOT
#

@chilly oar

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.

chilly oar
#

hi

hidden timber
chilly oar
#

uhh

#

variables

#

lists

#

print()

#

and math

hidden timber
#

how about input function

timber otter
#

What do you want to make

chilly oar
chilly oar
timber otter
hidden timber
timber otter
chilly oar
#

!e

print(a)```
hidden timber
#

The bot cant run input function directly

lost badgeBOT
# chilly oar !e ```a=input("hi") print(a)```

:x: Your 3.13 eval job has completed with return code 1.

001 | hiTraceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     a=input("hi")
004 | EOFError: EOF when reading a line
hidden timber
#

run it in your machine

chilly oar
split bloom
#

pydroid to be specific

chilly oar
#

oh hi dagger

hidden timber
chilly oar
#

i forgor like half the stuff you told me

chilly oar
hidden timber
#

dang

timber otter
chilly oar
#

512gb tablet tho

split bloom
chilly oar
#

lemme open pydroid 3 rq

hidden timber
#

id recommend you to get one tho, even a potato laptop will work just fine

chilly oar
#

also i know for and while loops

split bloom
hidden timber
#

lol

split bloom
#

just ssh / rdc into it from tablet or watever

chilly oar
#

pydroid

#

open

#

what now

hidden timber
#

do

name = input("Enter your name: ")
print("Your name is", name)
timber otter
hidden timber
#

no

#

well it'd techinally work but not how you'd expect it to

timber otter
#

alr

hidden timber
#

!e

name = "Babba"
print(f"Your name is", {name})
lost badgeBOT
chilly oar
#

worked ir out

hidden timber
#

it converts it to a set

hidden timber
hidden timber
# timber otter yh

if you wanna use it as a fstring you can do it like this-

print(f"Your name is {name}")
hidden timber
#

have you ran the code

chilly oar
#

yes

hidden timber
#

nice

chilly oar
hidden timber
#

the main thing you need to remember about input function is that it will always return the user input as a string

#

do you know what a string is

chilly oar
#

str

#

" c

#

" "

hidden timber
#

yeah whatever's inside the quotes is considered a string

chilly oar
#

!e

b=4
print(a+b)
a=str(a)
b=str(b)
print(a+b)
lost badgeBOT
#

Hey @chilly oar!

Please edit your message to use a code block

Add a py after the three backticks.

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
hidden timber
#

so if you try to do any form of mathematical operation with the user input, you will have to convert it to an integer / float first

#

!e

a=11
b=4
print(a+b)
a=str(a)
b=str(b)
print(a+b)
lost badgeBOT
hidden timber
#

yes

chilly oar
#

:3

hidden timber
#

i guess you already know what im talking about

chilly oar
#

ye

#

float is decimal

#

int is 1 2 3 4 4 5 6 6 7 88 9

#

etx

#

etc

hidden timber
#

yeah

chilly oar
#

we doing this in class rn

#

python

#

"advanced python learning"

hidden timber
#

very nice

chilly oar
#

its just variables over and over again

#

nothing learnt

hidden timber
#

lmao

#

ngl schools do go very slowly

#

if you have any specific questions you can ask

chilly oar
#

1 computer science class a week๐Ÿ˜ญ๐Ÿ˜ญ

hidden timber
#

dang

chilly oar
hidden timber
#

if, else, elif statements

timber otter
#

loops

hidden timber
#

conditionally executing code

chilly oar
#

done

#

i thonk

chilly oar
lost badgeBOT
split bloom
chilly oar
#

to count up

split bloom
chilly oar
#

!e

 print(i)
i=i*2```
lost badgeBOT
chilly oar
#
print(" {} | {} | {} ".format(" ", "x", "o"))
#

!e

print(" {} | {} | {} ".format("a ", "b", "c"))
lost badgeBOT
split bloom
chilly oar
split bloom
#

because its not inside loop

#

and even if it was it wouldnt work

#

the way for loops work is by going over the iterable u give in

#

in this case u gave it range(80)

#

that makes it so i is first 0 then next loop iteration its gonna be 1 then 2 then 3 etc. till 79 which would be last loop iteration (80 isnt included inside range)

chilly oar
#

sorry i got distracted

#

..

#

my discord got hscked or dmth

#

ibreplied to a dm

hidden timber
#

you should reset your password

chilly oar
chilly oar
#

i had to

hidden timber
#

enable 2fa too

chilly oar
#

i tried to dm this dude

#

and it insta happened

chilly oar
#

on my email

#

only way in

#

password+email acception

#

:3

#

@marsh radish

hidden timber
chilly oar
#

no

#

its fixed

#

it was smth idk

#

not their fault

#

since i can dm them now

split bloom
chilly oar
hidden timber
#

do you know them?

chilly oar
hidden timber
#

they were likely trying to hack into your account

chilly oar
#

...

hidden timber
#

by any chance did you try to use their website

#

in their bio

chilly oar
#

nope

hidden timber
#

alr

chilly oar
#

i didnt even dm them

#

i tried to msg them ??

#

cuz they tandomly friended me

#

and then the ai wanted me to rpove im human to dm

#

yk

#

i click comfirm and insta get logged out

chilly oar
hidden timber
#

<@&831776746206265384>

split bloom
#

there is a reason i got it like this . . .

chilly oar
split bloom
#

they have an ignore button nowadays ?

hidden timber
chilly oar
#

jiggly balls

#

try friend me rq

hidden timber
#

sure

chilly oar
chilly oar
split bloom
#

i swear it was reject/deny before

chilly oar
split bloom
chilly oar
#

also if i disappear its cuz am eepy

hidden timber
#

you should go sleep then

chilly oar
#

cant

marsh radish
marsh radish
#

be careful online guys

marsh radish
chilly oar
#

3 blocked measages

#

4*

#

that im not opening

hidden timber
marsh radish
#

I've just been friending people who seem like they're noobs at python

#

๐Ÿ˜…

chilly oar
marsh radish
#

I didn't want to reply to this though since you guys seem to have it handled

surreal blaze
#

it pings moderators

chilly oar
#

oh

#

whoops?

hidden timber
chilly oar
surreal blaze
#

tell me whats going on

chilly oar
#

uhh

#

@marsh radish friend requested me

#

i dmed asking why

#

then

#

i got insta logged out

#

i reset password and logged back in

surreal blaze
#

good

chilly oar
hidden timber
#

and their website looks a bit sketchy lol

surreal blaze
#

it hhappends from time to time, just ignore it

marsh radish
#

I made it in 36 hours

chilly oar
#

(respond for why they added me)

surreal blaze
#

use discords friend list for what it is for

chilly oar
#

anyways @split bloom gn and @hidden timber

#

!close

lost badgeBOT
#
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.