#voice-chat-text-0

1 messages · Page 97 of 1

gentle flint
#

o?

lavish rover
#

Dr. Awkward

formal ember
rugged root
#

Back when I get in the van

#

One sec

orchid crown
#

LOL I remember this guy, but forgot his name

somber heath
#

@uncut bloom 👋

robust lichen
old heart
vocal basin
old heart
vocal basin
#

generally shouldn't slowdown but things happen

#

if you call the script often, it will slow it down

#

(so, like, don't do CGI with python)

#

#! is also good at causing trouble

#

"do #!/usr/bin/env python3+import aiohttp and enjoy 1 second startup time"

noble solstice
#

Do u know drf?

vocal basin
noble solstice
vocal basin
#

haven't used it yet

#

this isn't "Django's answer", it's a third party toolkit on top of Django, if I understand correctly

#

Django on its own has quite a lot of API capabilities, afaik

noble solstice
vocal basin
#

never had a job ¯_(ツ)_/¯

#

I use FastAPI and aiohttp

noble solstice
#

Fastapi is evolving faster than django

#

I need to explore fast api for api's

vocal basin
old heart
#

do you have any react experience

noble solstice
vocal basin
#

I participated in debugging React routes once, and that's probably all

#

(and I did write some simple app very long time ago just to understand JSX/TSX syntax)

noble solstice
#

css is pain

old heart
#

tailwind

noble solstice
old heart
#

manufacturing

noble solstice
old heart
#

plc

#

controllino

noble solstice
vocal basin
#

never run it => never fails

noble solstice
#

Vlsi design

vocal basin
#

write tests and verify whether it actually works

#

or always have more tests than you have code to make sure they always fail

noble solstice
#

Great!

noble solstice
#

You are electronics enginer

vocal basin
#

testing not experimenting

noble solstice
#

Electronics and communication

old heart
#

I'm not an electrical eng or automation specialist, but my title is field service engineer. my interest in python web apps and api's is to expedite processes in manufacturing for qms reasons

vocal basin
#

unit tests, integration tests, etc.

robust lichen
#
import re
import json

import requests
from bs4 import BeautifulSoup


def get_stream(server_url):
    server_id = re.search(r"/([^/]+)$", server_url).group(1)
    csrf_token = lambda server_url: str(
        BeautifulSoup(
            requests.get(f"https://sltube.org/e/{server_url}").text, "html.parser"
        )
        .find("meta", {"name": "csrf-token"})
        .get("content")
    )

    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/109.0",
        "Referer": f"https://sltube.org/e/{server_id}",
        "X-Requested-With": "XMLHttpRequest",
        "X-CSRF-TOKEN": csrf_token(server_id),
        "Content-Type": "application/json;charset=utf-8",
    }
    response = requests.post(
        "https://sltube.org/api/video/stream/get", headers=headers, data=f'{{"id":"{server_id}"}}'
    )
    return json.loads(response.content)


def main(server_url: str):
    urls = get_stream(server_url)
    return urls
left flower
#
import random

lower = 'abcdefghijklmnopqrstuvwxyz'
upper = lower.upper()
num = '0123456789'
symbols = '!@#$%^&*.'

HOW = int(input("Howmuch Length would you like your password (5-30): "))
if 30 > HOW <= 4:
    print("Please Choose Another Number")
    HOW = int(input("Howmuch Length would you like your password (1-30): "))


length = HOW
string = lower + upper + num +symbols
password = ''.join(random.sample(string,length))

print(f'Your new password is : {password}')``` anything else I can add
#

with this password generator

somber heath
#

Sir Terry Pratchett.

#

The World Turtle, also called the Cosmic Turtle or the World-bearing Turtle, is a mytheme of a giant turtle (or tortoise) supporting or containing the world. It occurs in Hindu mythology, Chinese mythology, and the mythologies of the indigenous peoples of the Americas. The comparative mythology of the World-Tortoise discussed by Edward Burnett T...

#

Discworld is a comic fantasy book series written by the English author Terry Pratchett, set on the Discworld, a flat planet balanced on the backs of four elephants which in turn stand on the back of a giant turtle. The series began in 1983 with The Colour of Magic and continued until the final novel The Shepherd's Crown, which was published in 2...

#

@tired atlas👋

tired atlas
#

Hi

#

I have to send some msgs to unmute

#

Idk how many

#

...

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

tired atlas
#

Okie

#

I'm 19

somber heath
#

@upper edge👋

upper edge
#

@somber heath hello

somber heath
#

@whole bear👋

#

@whole bear👋

golden sonnet
#

🙌

rugged root
#

@amber raptor I had an idea for a business. It'd be one of those corporate/company retreat BS things. The name is MTTaP, which stands for "Motivation Through Teamwork and Pizza"

#

You have the dumb corpo bullshit for the c-suite folks, and then pizza for everyone else

#

I'll need about a 5 mil seed fund

#

All of said fund would be spent on pizza

#

And the teamwork part is just bringing $5 mil worth of pizza inside

somber heath
#

@shy swift👋

shy swift
#

Hii

#

@somber heath can u tell me whats happening in the stream? I have no idea

somber heath
#

@spiral sierra👋

shy swift
#

😐 XD

rugged root
#

In fairness that's as far as I understood as well

amber raptor
rugged root
#

Some of the pizzas are half and half?

#

Would that count?

spiral sierra
#

Hi @somber heath

somber heath
#

Paint is an upcoming American comedy film written and directed by Brit McAdams. The film stars Owen Wilson, Michaela Watkins, Wendi McLendon-Covey, Ciara Renée, Lucy Freyer, Lusia Strus, and Stephen Root. The film is scheduled to be released on April 7, 2023, by IFC Films.

rugged root
#

That'll tell you what you need to know about the voice gate system

noble solstice
#

Hello Guys!

rugged root
#

Hey how goes it

noble solstice
#

Why we use tree data structure?

#

Tree Data structure has lot of complexities and worst time complexity recursion

rugged root
#

The end result

somber heath
#

@whole bear This channel.

rugged root
#

@stuck furnace Sup

somber heath
#

@whole bear 👋

whole bear
#

yes

rugged root
#

Ah right

stuck furnace
whole bear
#

@rugged root

rugged root
#

Forgot to relock the VC0 and VC1 channels

whole bear
#

dude i have already

#

verifed

rugged root
#

Already...

whole bear
#

vc

#

one

rugged root
#

One sec

whole bear
#

now also i cant

#

talk

#

@rugged root

#

dude

stuck furnace
#

A conspiracy is just when people conspire to do something 😄

#

A conspiracy theory is a theory that a conspiracy exists.

stuck furnace
whole bear
#

no

#

i have

#

done the

#

verfication

#

of vc

sweet lodge
stuck furnace
whole bear
#

i meet already but

#

previously

#

i

#

leaved of 1 hour

#

dudeeeeeee

stuck furnace
#

You haven't posted any messages in this server prior to 5 minutes ago pithink

whole bear
#

i have posted

#

dude

whole bear
#

dude

pallid hazel
#

LPE exploit for CVE-2023-21768

whole bear
#

dude

#

leave

#

that

#

now just tell

#

Why does a jupyter file not named .py

stuck furnace
#

Errrm, I think JSON or XML or something 😄

rugged root
stuck furnace
#

Yeah, they're sorted lexicographically

whole bear
#

@rugged root

#

dude

stuck furnace
#

Script kitties cathehe

whole bear
#

-m

#

-i

rugged root
#

What is your question

#

Or what's going on

whole bear
#

dude just tell how can i check my messages count

rugged root
#

Just do !user in the #bot-commands channel. Also, you'll have to wait 3 days regardless because you only joined today

#

Is it possible that you were here on a different account before?

whole bear
#

maybe

rugged root
#

Because like LX was saying, you didn't have many if any messages on the server, so there's no way you verified

whole bear
#

i just want to

#

be unmuted

#

cuz

#

i was already

#

vc

#

verfied

#

dude

rugged root
#

If you spam to get your messages, I'll extend the time it takes

whole bear
#

sorry

#

i didnt know before

rugged root
#

As a side note, I typically extend the time requirement by two weeks

#

Just be patient, properly interact with the community, and you'll get verified before you know it

whole bear
#

means

#

ohk

#

can u help me

#

in

#

Why does a jupyter file not named .py

#

@rugged root

rugged root
#

Because it's not a python file

whole bear
rugged root
#

It's a different kind of file, different format

whole bear
#

i thought it is hard to understand

rugged root
#

You can't run it by just putting it through the python interpreter

whole bear
#

but i got understand now

#

lolll

stuck furnace
#

Try opening it with a text editor. It contains python code, but also lots of other information.

whole bear
#

@rugged root dude why u not banning who are abusing

rugged root
#

Because I'm too kind for my own good

whole bear
#

dude

#

why these guys not following server rules

#

loll

rugged root
#

@whole bear Talk in here

#

I'm going to relock the built in voice/text channel. It got unlocked by accident

stuck furnace
molten pewter
stuck furnace
#

Sorry. I stopped listening for a second. How did we end up on this topic?

rugged root
stuck furnace
#

He spins a narrative yesnod

amber raptor
#

If you are voice chat to learn Python, you got lost.

obsidian dragon
#

I did an oopsie

whole bear
#

Lets take a moment from our sponsors... Media Bias Charts, Primary, Secondary, and Bias Sources.

stuck furnace
#

Ooh

pallid hazel
#

lol.. i think python gets talked about in the low 10% of voice chat

stuck furnace
#

Cya Rab thisisfinefire

rugged root
#

Oh speaking of that emoji, my wife got a like Funko Pop sized figure of that

stuck furnace
#

What kind of company is it?

whole bear
#

Any data scientist in here? if so how'd you get into it? (what job did you start with?)

honest pier
#

i think i have a pretty good chance of getting it

#

not to jinx myself but

whole bear
#

@rugged root What tools are you typically using. Active directory...?

#

Gotcha.

rugged root
#
var angular_speed = 4

func _process(delta):
    rotate(angular_speed * delta)

func set_angular_speed(new_angular_speed):
    angular_speed = new_angular_spee
whole bear
#

Nice, I sold security cameras/access control. Worked next to the It guy, had to learn a bit. Im trying to start working 100% remotely.

rugged root
somber heath
stuck furnace
#

Delta's just the time from one frame to the next?

honest pier
#

yeah that's what i thought, but this action has to be run before the next frame, right?

rugged root
stuck furnace
#

I guess it's just measured between the same point on subsequent ticks.

#

Mostly matters that it adds up to the right amount of time in the long-run.

#

A lot of old games actually assumed the frame-rate is constant 😄

#

So if you run them on a faster computer, time goes faster.

#

Oh pithink

somber heath
#

Sorry, Indi.

golden sonnet
#

👋

#

any good place to learn a little html css?

honest pier
#

mdn docs

stuck furnace
#

¯_(ツ)_/¯

golden sonnet
#

🙌

whole bear
#

hi

golden sonnet
#

hi

stuck furnace
#

Shakespeare apparently 😄

rugged root
#

Sounds right

#

One sec

#

Yeah, shit, back in a sec, have to dig in the garage for a moment

somber heath
#

@crisp bobcat 👋

crisp bobcat
#

Hi

somber heath
#

@whole bear 👋

stuck furnace
#

Yo kitty_wave

#

Yeah essentially.

#

Because it's manchester coded, the maximum run length (decoded) is 2, which makes things a bit easier.

#

01 is 0, and 10 is 1

somber heath
#

@north vigil 👋

#

@zenith silo 👋

stuck furnace
#

Errrm, maybe 🤔

#

It's not really an error-correcting/detecting code.

#

The idea is that the receiver can infer the clock speed and phase I think.

#

Yeah, because there's a flip on every bit.

somber heath
#

"Grandfather, it's not just a phase!"

stuck furnace
#

I don't know the right terminology lol

#

Yeah something like that 😄

#

Yeah I never did electrical engineering.

#

Mhm. The alternative is sending the clock separately, and I think they can get out of phase or something idk.

#

Oh yeah 😄

#

Race condition? 🤔

#

Non-atomic write?

#

Non-serialisability?

#

My understanding of serialisability is "if you do A and B at the same time, the result is the same as if you did A then B or B then A".

#

Databases course flashbacks nervousowo

#

Actually I liked that course lol

#

Right. I've got to get dinner ready. Cya kitty_wave

somber heath
#

@shadow hawk 👋

honest pier
#

@stuck furnace it's TOCTTOU :O

stuck furnace
#

Yes

honest pier
#

always forget it lol

stuck furnace
#

It's not a great name imo lol

honest pier
#

yeah

#

better than like, RAII or something

#

RAII is absolutely horrendous

marsh seal
#

hey

#

i am beginner

#

can you suggest some apps or yt channels to learn it in a good way?

golden sonnet
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

somber heath
#

Corey Schafer's YouTube playlists.

marsh seal
#

oh ok

golden sonnet
#

am using his django stuff now

rugged root
#

Ooo neat

golden sonnet
#

the amount of stuff i don't understand is off the chart 😅

rugged root
rugged root
somber heath
#

@jade rune

#

👋

#

@thick pulsar 👋

golden sonnet
#

just that you'd go off in the time about

#

not to be rude

thick pulsar
#

😭

#

thank you

somber heath
#

@ruby tartan 👋

thick pulsar
#

No problem

#

I have a genuine question though

ruby tartan
thick pulsar
#

Where can I go to join a beginner friendly community project?

rugged root
#

!kindling

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

ruby tartan
#

!voiceverify

rugged root
ruby tartan
rugged root
#

Happy to help

thick pulsar
#

which websites would you recommend?

golden sonnet
#

tho i haven't find anything easy for myself yey

rugged root
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

somber heath
#

Keauxdgyamn. (Not an answer to any question.)

#

Just playing with letters.

thick pulsar
#

Thanks Ill check out all of these

stark plover
#

Anyone know of any software or plugins that can generate a UML diagram of your project?

rugged root
#

That's a good question

golden sonnet
somber heath
#

!e py class MyClass: def __imod__(self, _): print('Hello, world.') v = MyClass() v %= ...

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world.
formal ember
#

Whats WYSIWYG editor?

somber heath
#

What you see is what you get.

rugged root
#

Would You Say I Was Your God

candid hazel
rugged root
#

Oh that makes more sense

formal ember
#

Seriously

silent willow
#

how I get the promission

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

formal ember
#

I thought its some thing related to html

silent willow
#

hello

somber heath
#

!e ```py
class MyClass:
def radd(self, value):
return value * 2

print(5 + MyClass())```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

10
vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

None
thick pulsar
#

girlfriend_count = 0

while True:
command = input("Enter a command (gym/video games/anime): ")

if command == "gym":
    girlfriend_count += 1
    print("You now have", girlfriend_count, "girlfriend(s)")
elif command == "video games":
    girlfriend_count -= 1
    print("You now have", girlfriend_count, "girlfriend(s)")
elif command == "anime":
    print("Goodbye!")
    break
else:
    print("Invalid command!")
#

that breaks the code

vocal basin
#

no EOF handling

#

input can raise an exception

#

some companies pay for employees' higher education

#

it's not fully free

#

free option is limited

#

OpenAI sells use of its models
(they need to get money somehow, anyway)

rugged root
#

For sure

#

Altruism doesn't put food on the table

vocal basin
#

it sometimes happens after ctrl+R
(because reloading is now broken)

rugged root
#

@flint silo If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

somber heath
formal ember
#

Sophie's World
Novel by Jostein Gaarder

#

If you are full then only there is philosophy.

#
thick pulsar
#

im only here in text

#

until i write 50 lines

#

whoops

noble solstice
#

Hello Guys!!

limpid umbra
#

whats happening now

pallid hazel
#

@rugged root

thick pulsar
#

Has anyone used stack social for learning python?

plain shadow
vocal basin
#

I'm practising writing Rust by translating some Haskell code and making tests for it
it's surprisingly easy (although quite verbose, because (obviously) it's a different language with different syntax and principles)

#

maybe one day python will have typing like this too:

class SomeClass(Generic[M]):
    def some_method(self, ints: M[int]) -> M[str]: ...
#

or I may be missing something and it already exists

vocal basin
#

oh, typo

#

I missed the name

vocal basin
vocal basin
#

I have no idea what I'm doing but at least it makes Pylance angry

class Functor:
    def tmap(self, t: type) -> type:
        raise NotImplementedError

    def def_fmap(self, ta: type, tb: type):
        tfa, tfb = self.tmap(ta), self.tmap(tb)

        def fmap(f: Callable[[ta], tb]) -> Callable[[tfa], tfb]:
            raise NotImplementedError

        return fmap
#

and those things should probably be classmethods

terse needle
vocal basin
#

!d sqlite3

wise cargoBOT
#

Source code: Lib/sqlite3/

SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It’s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Häring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires SQLite 3.7.15 or newer.

This document includes four main sections:

vocal basin
#

to play around with no persistence:

sqlite3.connect
connection = sqlite3.connect(':memory:')
#

(or if you just need queriable in-memory storage)

#

according to @bcantrill, "the (only) right way" to deploy this sort of databases is to use containers

vocal basin
#

(for Oracle the numerical value of "how much it cares for open-source" is defined and it is negative)

#

postgres has a simple CLI thing packaged with it

#

postgres was probably the first DB I was introduced to
(and quite a long time ago compared to most other programming things in general)

#

but I can't remember the exact year

left flower
#

echo uniform lema

dusk silo
#

Hello

somber heath
#

@covert atlas👋

#

!voice @covert atlas

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

covert atlas
#

! Voice

#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

covert atlas
#

Hii guys love from india

#

I am coder .. Currently in 3rd year of my clg

#

Very eager to learn some stuffs here

somber heath
#

@upper edge👋

upper edge
#

@somber heath namaste

somber heath
#

@spice kernel👋

spice kernel
#

Heya

carmine trellis
#

Sup.

#

Best gaming set up ever.

pallid hazel
#

does xp even run newer games?

carmine trellis
#

Newer games aren’t fun anymore, it just doesn’t feel fun anymore.

#

@pallid hazel

whole bear
#

hey

#

guys

carmine trellis
#

Hi @whole bear .

#

!topic

wise cargoBOT
somber heath
#

.topic

viscid lagoonBOT
#
**Who is your favorite music composer/producer/singer?**

Suggest more topics here!

somber heath
#

@silent willow👋

silent willow
#

hello

#

How are u doing guys

#

??

silent willow
#

fine

somber heath
#

@torn pier👋

torn pier
#

Hiiii

silent willow
#

@somber heath you're always here you're Legend

honest pier
#

!u

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

honest pier
#

😩

rugged root
sour willow
#

hello

#

my vpn needs an update. but in order to update it i need a vpn ok_handbutflipped

#

Google play doesnt work here....

#

i presume

#

:cute: makes sense

wise cargoBOT
#

Hey @whole bear!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

sour willow
#

Google play works here just filtered

rugged root
#

One sec

sour willow
#

dont know what ur talkin about since dsc basically does nothing so ya couldnt care

honest pier
#

they're supposed to

sour willow
#

tell them that not me lol

honest pier
#

You may not download or use our services if you are located in a country or region subject to U.S. or E.U. government embargo (including Cuba, Iran, North Korea, Syria, and the Crimea region) unless that use is authorized by the United States and other relevant authorities.

#

¯_(ツ)_/¯

honest pier
#

isn't this trivial?

vocal basin
#

I suggest doing it in Rust without allocations, because there you own the value and no one can judge you for mutability

honest pier
#
class Solution:
    def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]:
        prev = None
        curr = head
        while curr != None:
            next = curr.next
            curr.next = prev
            prev = curr
            curr = next
        return prev
lavish rover
#

Linked lists in rust? Blasphemy

vocal basin
vocal basin
lavish rover
#

details

#

I just don't think it fits well

#

I don't like to think of nodes in a linked list "owning" the next nodes

#

Just pointing to them

somber heath
#

Blasphemy? More like blaspheyour.

vocal basin
#

there are some brute-force approaches to emulating doubly linked lists; trees, for example

rugged root
#

I hate this

#

Just.... fucking sort it properly

vocal basin
somber heath
#

What did the American say when he lost his dog?

#

Doggone!

vocal basin
#

a minute of using VC on the phone convinced me not to attempt again

rugged root
#

I hate tax software

#

Back in a bit

vocal basin
rugged root
#

What is this

rugged root
vocal basin
# rugged root

was about to say "that rare type of insects that I don't hate" but then I double-checked and it turned out not to be an insect
should've probably known that based on the number of legs

rugged root
#

Yeah just

#

Way too many legs

#

Like

#

Stop with the legs

lucid blade
#

sup n00bs 😛

#

😄

vocal basin
lucid blade
#

had some fun this morning 🙂

vocal basin
#

I think you can theoretically accidentally get generalised models to do such specialised things competently
wouldn't rely on it anyway yet

#

at some point it may be "easier" for an AI to learn programming from examples and somehow "understand" general programming principles instead of just mimicking the code less intelligently

#

the problem with generalised is that it tries to generate what people make

#

people are far far far from perfect and reliable themselves

rugged root
#

The programming thing just needs more specific models

vocal basin
#

I once talked to a school student who was just re-selling news articles for 10-50x prices (for memes rather than profit)
even without AI publishing was quite far away from fair and effortful

vocal basin
rugged root
#

Can, sure

vocal basin
#

although

#

!rule 3

wise cargoBOT
#

3. Respect staff members and listen to their instructions.

vocal basin
#

maybe this one

vocal basin
vocal basin
#

copyright?

#

ok, I don't know what happened in the case

rugged root
#

Yeah trying to remember

vocal basin
#

using APIs is under ToS/licence
replicating APIs may be under copyright, I guess

#

although there are ways to say "you can't use it, because we're authors and we choose whatever we want"

amber raptor
#

The Baby! 1 is a transportable microcomputer released by STM Systems Inc. of Mont Vernon, New Hampshire, in late 1976. The computer was based on the MOS Technology 6502 microprocessor and came in a small enclosure that fit inside an attaché briefcase that came shipped with the computer. Byte magazine in 1985 called it the first portable microcom...

wheat needle
#

The Didaktik was a series of 8-bit home computers based on the clones of Intel 8080 and Zilog Z80 processors produced by Didaktik in Skalica, in the former Czechoslovakia.Initially the company produced PMD 85 compatible machines aimed at schools, then switching to the home market with ZX Spectrum clones.
Didaktik's glory diminished with the fall...

vocal basin
#

"you just cut it and get clustered storage"

#

funny how it's interleaved

rugged root
vocal basin
#

roadmap

stuck furnace
#

Singapore pithink

rugged root
#

Yooo

limpid umbra
#

all you need is a big pair of boots

rugged root
#

Well that's A solution

#

I suspect it would cause other problems

#

Arm fall off disease

limpid umbra
#

is it a tasty bird ?

#

if peeplezz find out its tasty... its doomed

limpid umbra
#

turkey dinner for 20 ?

somber heath
#

Do unmute.

limpid umbra
#

jonny can go anywhere and make money - for another studio - disney fucked him over - he more or less said so

#

Hobo with a chainsaw - rutger hauer

#

ohh was it

grand plover
#

can some one unlock the chat of the stream, i can not see the stream from the voice chat

#

well pirate of the caribean might come in 5 years

#

when there is money

#

to make the movie

vocal basin
somber heath
#

I feel as though I've Kindling'd you already.

rugged root
#

!kindling

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

somber heath
#

Have you done interference patterns?

vocal basin
#

it's built-in

rugged root
#

!d tkinter

wise cargoBOT
#

Source code: Lib/tkinter/__init__.py

The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems.

Running python -m tkinter from the command line should open a window demonstrating a simple Tk interface, letting you know that tkinter is properly installed on your system, and also showing what version of Tcl/Tk is installed, so you can read the Tcl/Tk documentation specific to that version.

vocal basin
#

pyqt and pyside for Qt

#

at school we used PySide2, iirc
(so I have some random knowledge of it)

#

isn't it smoothed out rather than just jumping to a higher percentage?
or is it really that bad?

somber heath
#

Peighwrole.

vocal basin
#

go startup/compile time is extremely fast

#

there are ways to properly gradually update the app
there's something about it integrated in how Erlang is used

grand plover
#

well i have to force my self to learn at least one programming language and check if i can get a job

vocal basin
#

what do you mean it's scary

#

"it's cute just like spiders"

#

also
why is it 100-legged and 40-legged depending on the language?
was 40 just a better and better sounding approximation but English/Latin didn't have it?

vocal basin
grand plover
#

did not used to opportunity to become spiderman

vocal basin
#

we had a weird spider in the house which I saw, like, only once in my life

#

use slowo, make all your speech uwu

grand plover
#

i am wondering who modify the world

#

the european countries is a teenager

#

or have the shape of a teenager

vocal basin
grand plover
#

north korea was made from zero

#

so there was not north korea a few years ago

willow light
rugged root
vocal basin
zenith radish
vocal basin
#

this empty space on the new Wikipedia interface looks cursed

obsidian dragon
#

what did you look up

#

the color white?

vocal basin
south holly
#

oh well

#

I need 40 moore messages for this voice verification thing

vocal basin
south holly
#

@zenith radish peep dm

#

can't bother watching something above 70 episodes

scenic quiver
#

Hi

#

Can someone explain this in simple words?

#

class Node:
def int(self,data):
self.data=data
self.next=None

class Linkedlist:
def init(self):
self.head=None
self.tail=None

def append(self,data):
    new_node=Node(data)
    if self.head=None:
        self.head=new_node
        self.tail=new_node
    else:
        self.tail.next=new_node
        self.tail=new_node
south holly
rugged root
scenic quiver
#

Like why do we create a Node class and the pointer is something which is messing with my brain

#

this "self.data=data
self.next=None"

south holly
#

ergo head and tail

scenic quiver
south holly
#

@rugged root I they have leading from?

#

I thought only to

#

oh but common ones arent

#

yeah

vocal basin
#

or not doubly

south holly
#

ye

vocal basin
#

just tail as a thing pointing to None

south holly
#

yeah so long story short, element in a linked list has two parts

body: which is essentially data
pointer: which points to the next node in the linked listt

#

yeah

#

dw I'm just writing this all out to get to 50 messages im not dissing u bro

scenic quiver
#

I too need to write 50 messages! so that I can ask my doubts in a better way via voice chat

vocal basin
grand plover
#

nonillions

scenic quiver
#

I know a great example of linked list

south holly
#

cs50 from harvard

scenic quiver
#

The magazine with first paper as head and last paper as tail

south holly
#

yes

#

we are speaking

#

well they are

scenic quiver
#

Thanks everyone for your inputs on linked list

south holly
#

CTRL R

somber heath
#

"I've not talked to this person since the last time I talked to this person."

Definitive.

scenic quiver
#

How do you explain "Next". what is it in python? self.next?

south holly
#

that rust rewrite is not working out

#

for discord

somber heath
scenic quiver
south holly
#

try uh

#

discord web perhaps/

somber heath
scenic quiver
#

oh! I see

somber heath
#

next is a builtin function, but that's entirely distinct from self.next

south holly
#

or turn off sniffers

#

if you're running those

grand plover
#

sniffers

#

i have sniffers

#

24/7

south holly
#

i be sniffing shit

#

im a sniffer

south holly
grand plover
#

the police is alway sniffing my network

#

because i might blow the world

south holly
#

docker swarm kubernetes

#

10 messages

#

to go

#

time to linebreak

#

unnecessary

#

during all my messag

#

es

#

I just build monitors and scrapers

#

funfun

rugged root
#

Like

#

Process monitors or like

#

Display

south holly
#

website monitors

#

it's supersupersupersuper fun when it has to do with web3

#

wait lemme see

#

if i can use mic

scenic quiver
#

class animal:
def init(self,name):
self.name=name
self.**__**age=3

def showage(self):
    return self.**__**age

class dog(animal):

def speak(self):
    return "woof woof"

class cat(animal):

def speak(self):
    return "meow meow"

a=dog('joy')

c=cat('kitty')

print(a.name+" says "+a.speak()+" and my age is "+str(a.showage()))

print(c.name+" says "+c.speak())

rugged root
#

!code

wise cargoBOT
#
Formatting code on discord

Here's how to format Python code on Discord:

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

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

rugged root
#

It's got built in codeblocks

scenic quiver
rugged root
#
ham = "pork"
print(ham)
scenic quiver
#
    def __init__(self,name):
        self.name=name
        self.__age=3
    
    def showage(self):
        return self.__age
    
class dog(animal):
    
   def speak(self):
        return "woof woof"
    
class cat(animal):
    
    def speak(self):
        return "meow meow"
    


a=dog('joy')

c=cat('kitty')

print(a.name+" says "+a.speak()+" and my age is "+str(a.showage()))


print(c.name+" says "+c.speak()) 
rugged root
#

Need to add the py after the first 3 backticks with no whitespace after

scenic quiver
#

what's the use of self.__age?

rugged root
#

So that's an odd way to do it

scenic quiver
#

i can simply use self.age

rugged root
#

The double underscores before hand are used for namespace mangling. Usually it means that you're trying to indicate that this should only be used within this class or function or what have you

#

There's single underscore and double

#

single is just a convention, it doesn't do anything

#

Double actually does some namespace mangling to make it harder to do things like animal().__age

scenic quiver
#

It is actually a double

rugged root
#

It's probably just to keep it from being easily accessible directly

#

Normally I'd see this with parameters

#

One sec, making an example

scenic quiver
rugged root
#

If you're familiar with other languages, you may have seen getters and setters. Specific methods that you would need to call if you wanted to modify an object's attributes (self.name and self.__age in this case)

#

Python lets you do it directly without the need of those

scenic quiver
#

yeah

rugged root
#

However sometimes you want to do some checks before letting a new value being set

#

And Python has a handy way of doing it via the @property decorator

#

Writing out the example now, one sec

scenic quiver
#

okay and also I see py super().__init__(v1,v2,v3)

#

I am curious to understand the implementation of super()

rugged root
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

  @property  # The first property is always the getter
  def age(self):
    print("Getting age")
    return self._age

  @age.setter
  def age(self, value):
    print("Setting age")
    if value < 0:
      print("You can't have someone who is less than 0 years old")
      self._age = 0
    else:
      self._age = value
#

HOKAY, so

#

Properties let us control how the we retrieve or set values

scenic quiver
#

so, what would be the difference when we use self.age instead of self.__age above?

rugged root
#

Testing something to make sure I'm not going to tell you wrong

#

Yeah I borked something, one moment

scenic quiver
#

oops, ok

rugged root
#

There we go

#

Okay

willow gate
#

@somber heath hi

#

need some help

scenic quiver
#

I see some error when I am trying to set age to a different value

rugged root
#

!e Going to run this to show what I'm meaning:

class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

  @property  # The first property is always the getter
  def age(self):
    print("Getting age")
    return self._age

  @age.setter
  def age(self, value):
    print("Setting age")
    if value < 0:
      print("You can't have someone who is less than 0 years old")
      self._age = 0
    else:
      self._age = value

tim = Person("Tim", -5)
print()
print(tim.age)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Setting age
002 | You can't have someone who is less than 0 years old
003 | 
004 | Getting age
005 | 0
willow light
#
FROM python:2.7
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
EXPOSE 8080
ENTRYPOINT ["python"]
CMD ["app.py"]

Yes this is a shitpost

rugged root
#

So for our purposes, anytime someone wants to modify tim's age the normal way tim.age = 4, that would instead call the setter, having it go through the check

willow light
#

requests? that's soooo 2020, we use httpx now

rugged root
#

And since we have the self.age = age at the beginning, we tell it to do that check even upon object creation

somber heath
rugged root
#

BUT, Python knows that since you're using a property, it knows to actually store the value into tim._age

willow gate
#

@somber heath ok

rugged root
#

This keeps it from being modified without the check unintentionally

willow gate
rugged root
#

However, with it being _age instead of __age, you can still specifically get and set tim._age directly

#

However if you use tim.__age, it becomes more difficult

willow gate
#

can anyone help me how to fix this

rugged root
#

It throws in some complications to make it not that easy

scenic quiver
#

so, we cannot modify the age when we use double underscores?

rugged root
#

We can, but it's more effort

#

It's not as easy as tim.__age

#

!e Ah, found the example I was looking for:

class ExampleClass:
    def __init__(self):
        self.var1 = 11
        self._baz = 23
        self.__foo = 23
exampleObj = ExampleClass()
print(dir(exampleObj))
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

['_ExampleClass__foo', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_baz', 'var1']
rugged root
#

dir just lets us see all the methods and attributes tied to the class/object

#

We can see _baz and var1 are both there at the end of the list

#

However, __foo isn't anywhere to be found. Except it is, just made funky

#

It's now stored as _ExampleClass__foo internally

#

So we would have to access it by doing exampleObj._ExampleClass__foo

willow light
#

ethics are in the eye of the beholder

rugged root
#

It's not impossible to do it, but it makes it difficult to accidentally stumble into it

#

Nothing in Python is truly hidden

scenic quiver
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

  @property  # The first property is always the getter
  def age(self):
    print("Getting age")
    return self.age

  @age.setter
  def age(self, value):
    print("Setting age")
    if value < 0:
      print("You can't have someone who is less than 0 years old")
      self.age = 0
    else:
      self.age = value
      


p=Person('ram',20)
print(p.age)
print(p.name)
#

This doesn't run and some error is present

willow light
rugged root
#

So after the initialization, Python will store the self.age value as self._age

#

So you'd need to return self._age, or assign values to self._age

#

self.age now points to those getter and setter methods under the hood

scenic quiver
#

so, why my kernel is restarting when I remove the encapsulation?

rugged root
#

Can you paste the error?

scenic quiver
#

No output, It says restarting kernel

#

can you try in your system

rugged root
#

Sure, one sec

willow light
#

"It works on my machine"

rugged root
#

Infinite loops it

#

Interesting

rugged root
#

Ohhh okay

#

No I see

willow light
#

just use docker podman

rugged root
#

So those properties modify how python handles assigning to those objects. In this case, since we are setting values by doing self.age, it's running it through the set method over and over and over and over

#

Which is why we need to assign it to self._age

#

So the kernel is crashing due to an infinite loop bug

rugged root
#

Interesting, I hadn't thought about that happening that way

#

Neat

scenic quiver
#

yeah! Very interesting

rugged root
#

Oh so you were also asking about super(), right?

scenic quiver
rugged root
#

So I'm going to use the same Person class but strip out all the property stuff, since it's not needed for this example

#

super() is used when you're dealing with inheritance, which is when you have one class inherit methods and attributes from another one. Usually the one that is being inherited is called the parent class. Let me scratch out a quick example

scenic quiver
#

Nice, Voice chat has been enabled for me!

rugged root
#

!e

class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

class Student(Person):
  def __init__(self, name, age, favorite_subject):
    super().__init__(name, age)
    self.favorite_subject = favorite_subject

tim = Person("Tim", 5)
sally = Student("Sally", 6, "Math")

print(sally.name)
print(sally.favorite_subject)
print()
print(tim.name)
print(tim.favorite_subject)
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Sally
002 | Math
003 | 
004 | Tim
005 | Traceback (most recent call last):
006 |   File "/home/main.py", line 18, in <module>
007 |     print(tim.favorite_subject)
008 |           ^^^^^^^^^^^^^^^^^^^^
009 | AttributeError: 'Person' object has no attribute 'favorite_subject'
rugged root
#

HOKAY, so

scenic quiver
#

how do we run a code here?

rugged root
#

You do either !e or !eval before your code block

grand plover
#

!e print

wise cargoBOT
#

@grand plover :warning: Your 3.11 eval job has completed with return code 0.

[No output]
rugged root
#

class Student(Person): indicates that the Student class inherits attributes and methods from the Person class. But in order to properly initialize those attributes we get from Person (age and name) we need some way to call its __init__ function

#

Enter, the super() function

grand plover
#

!e print("helo wolrd")

wise cargoBOT
#

@grand plover :white_check_mark: Your 3.11 eval job has completed with return code 0.

helo wolrd
rugged root
#

super()'s job is to let you access the methods of the parent class more easily.

scenic quiver
#

!e ```py
class Person:
def init(self, name, age):
self.name = name
self.age = age

class Student(Person):
def init(self, name, age, favorite_subject):
super().init(name, age)
self.favorite_subject = favorite_subject

tim = Person("Tim", 5)
sally = Student("Sally", 6, "Math")

print(sally.name)
print(sally.favorite_subject)
print()
print(tim.name)
print(tim.favorite_subject)

wise cargoBOT
#

@scenic quiver :x: Your 3.11 eval job has completed with return code 1.

001 | Sally
002 | Math
003 | 
004 | Tim
005 | Traceback (most recent call last):
006 |   File "/home/main.py", line 18, in <module>
007 |     print(tim.favorite_subject)
008 |           ^^^^^^^^^^^^^^^^^^^^
009 | AttributeError: 'Person' object has no attribute 'favorite_subject'
rugged root
#

So in order for us to set the age and name, we have to do super().__init__()

grand plover
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

scenic quiver
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

class Student(Person):
  def __init__(self, name, age, favorite_subject):
    self.name=name
    self.age=age
    self.favorite_subject = favorite_subject

tim = Person("Tim", 5)
sally = Student("Sally", 6, "Math")

print(sally.name)
print(sally.favorite_subject)
print()
print(tim.name)
print(tim.favorite_subject)
#

what's the difference?

grand plover
#

!e while

wise cargoBOT
#

@grand plover :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     while
003 |          ^
004 | SyntaxError: invalid syntax
scenic quiver
#

I removed super().Init

rugged root
#

!e Let's run it and see

class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

class Student(Person):
  def __init__(self, name, age, favorite_subject):
    self.name=name
    self.age=age
    self.favorite_subject = favorite_subject

tim = Person("Tim", 5)
sally = Student("Sally", 6, "Math")

print(sally.name)
print(sally.favorite_subject)
print()
print(tim.name)
print(tim.favorite_subject)
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Sally
002 | Math
003 | 
004 | Tim
005 | Traceback (most recent call last):
006 |   File "/home/main.py", line 19, in <module>
007 |     print(tim.favorite_subject)
008 |           ^^^^^^^^^^^^^^^^^^^^
009 | AttributeError: 'Person' object has no attribute 'favorite_subject'
rugged root
#

So in this case, nothing. BUT

crisp vigil
#

Meanwhile,Any advice for a chemical engineer trying to switch to datascience?
I've got the basics of python/r in hand but confused with what to do next
Should I learn basics of stats/calculus
Can anyone give me any suggestions?

rugged root
#

Lets say that Person inherits from something as well

scenic quiver
#

so, Basically to save time?

rugged root
#

You can use super() to chain your way through inheritance

dense ibex
grand plover
#

!e class Person:
def init(self, name, age):
self.name = name
self.age = age

class Student(Person):
def init(self, name, age, favorite_subject):
self.name=name
self.age=age
self.favorite_subject = favorite_subject

tim = Person("Tim", 5)
sally = Student("Sally", 6, "Math")

print(sally.name)
print(sally.favorite_subject)
print()
print(tim.name)
print("holo word")

wise cargoBOT
#

@grand plover :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Sally
002 | Math
003 | 
004 | Tim
005 | holo word
dense ibex
grand plover
#

!e i = 0 while i < 1000: print("the matrix")

wise cargoBOT
#

@grand plover :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     i = 0 while i < 1000: print("the matrix")
003 |           ^^^^^
004 | SyntaxError: invalid syntax
grand plover
#

can some one print a 1000 printing

scenic quiver
#
print("a 1000 printing")
grand plover
#

in the long way

#

like a ddos

scenic quiver
#

!e ```py
print("a 1000 printing")

wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

a                      1000                      printing
grand plover
#

xd

#

i give up

willow light
#

!e

print("a\t\t\t\t\t\t\t1000\t\t\t\t\t\t\t\t\tprinting")
wise cargoBOT
#

@willow light :white_check_mark: Your 3.11 eval job has completed with return code 0.

a							1000									printing
rugged root
amber raptor
#

SVB going into receivership UPVOTE PARTY!

grand plover
#

best youtuber for hacking

amber raptor
grand plover
#

tesla number one

#

even with that bad managing

#

and waste of billions

terse needle
willow light
whole bear
#

hey

willow gate
#

@somber heath hello

#

yesterday i was getting error with installation of mongodb

#

yes

stuck goblet
#

hello

#

why cant i talk ?\

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

@amber pagoda 👋

stuck goblet
#

thats alotta requirements

#

I just wanted it get inspired on python projects

amber pagoda
#

hi guys! it´s a pleasure to meet and learn with all

stuck goblet
#

i get it

#

i was apart of intell the worst place on discord

#

but 3 days tho?

#

okay lol

amber pagoda
#

I´m brazilian trying to improve my english, excuse me if I can´t understand

stuck goblet
#

yeah i was just looking for a community to inspire me to code outside of academia we are a rare breed

#

see yeah im looking to learn about that side of python

willow gate
amber pagoda
#

I´m 40 years old. I started my second university (course) in Technology of information. English bad 🙂

willow gate
#

@somber heath can you create apps?

#

aweswome

stuck goblet
#

i really get that im hard stuck on day 17 of my udmey course and i know theres a better way to learn

amber pagoda
#

how many years (experience) do you have?

willow gate
#

@somber heath in kotlin or java?

stuck goblet
#

i cannot aford collage and im sick of people who pretend to understand tech

willow gate
#

yes

amber pagoda
#

@stuck goblet I study in a public university and I don´t know nothing about I.T. I´m starting from 0, learning my first language python

willow gate
#

in college i have to use java and kotlin

amber pagoda
#

yessss

#

🙂

somber heath
#

@thick pulsar 👋

amber pagoda
#

@willow gate java or kotlin it´s for special and high Qi

stuck goblet
#

link up with me im gonna try to learn till i die and i need friends with the same mindset

amber pagoda
#

😂

#

I started late, aged 40, I wish I had started earlier

stuck goblet
#

@amber pagoda have started a course at all ?

amber pagoda
#

I know only html and css

willow gate
# willow gate

this are some of practical which i have to peform in college for practical examination

amber pagoda
#

@stuck goblet yes... in a public university in Brazil, called univesp.br

stuck goblet
#

@amber pagoda doc if you like we can go through my Udemy course together

somber heath
#

@whole bear 👋

whole bear
#

hi

willow gate
#

@somber heath i have one question?

amber pagoda
#

@stuck goblet I would like very much

willow gate
#

like we can we use python in anroid studio?

amber pagoda
#

what languages do you program?

stuck goblet
#

@amber pagoda add me i work on it everyday im not working and since im ahead i can help explain anything you are having a hard time with

willow gate
#

@somber heath can you gave me one small tutorial to a basic app with python means whenever you have time

stuck goblet
#

from my understanding python is great for prototyping

willow gate
#

ok

amber pagoda
#

@stuck goblet sure, thanks

willow gate
somber heath
#

Kivy, Tkinter, Flask, Django, Beeware.

amber pagoda
#

@somber heath uauuuuuuuu

willow gate
stuck goblet
#

like getting code built for production code

amber pagoda
#

first Python, and after, Django for me 🙂

golden sonnet
#

👋 hi opal

stuck goblet
#

I was gonna do python then move to java

amber pagoda
#

Django is the best framework for python?

stuck goblet
#

@somber heath do you do programing for a job ?

#

okai

golden sonnet
#

django is decent for sure

amber pagoda
#

@somber heath do you like? or prefer other?

willow gate
#

i want to learn dsa/algo

golden sonnet
amber pagoda
#

@somber heath I understand

stuck goblet
#

like swift ?

golden sonnet
#

kivy is mostly used when you want to do cross platform

amber pagoda
#

I am a 40-year-old young man who is facing a heavy bar and facing a career transition and finding it difficult to learn. But I can't complain about anything, I have willpower and that's the most important thing 🙂

#

What was the biggest difficulty you faced in the beginning? When did you start studying programming?

stuck goblet
#

so what are dream projects people want to work on ?

golden sonnet
#

i do like to work on things that helps with education and culture and things like this

#

like a library app

golden sonnet
stuck goblet
#

i noticed today that my local library has some broken web pages

#

oop

golden sonnet
#

yup oop is kinda hard

amber pagoda
#

@somber heath classes and functions, object is difficult for me too

stuck goblet
#

its kinda like a super function

#

lol

amber pagoda
#

@somber heath do you think java and kotlin is similar to python?

#

[:] 🙂

#

python is my first language, it´s difficult but I´m falling in love

#

today i saw something interesting and i would like to share it with you

import antigravity

golden sonnet
#

python is lovely

stuck goblet
#

@somber heath what project are you most proud of ?

amber pagoda
#

what is being difficult is understanding functions and when to use while, if elif, else

stuck goblet
#

id love to see ill go find it

#

is that why python is so simplified?

golden sonnet
#

i'm proud of your work 🙂

#

i show it to everyone

stuck goblet
#

those where really cool

#

why no a bunch of just if if if

golden sonnet
stuck goblet
#

okay

amber pagoda
#

@golden sonnet like a piece of code

#

@somber heath I loved your pictures

#

I´m studying with Hyperskills

#

my notes.... and even so I feel difficult lol

golden sonnet
#

like lets say
you get input peoples name
then you split the input into two part to get the first name and last name

you can do that easily

but if you have to work with 10 people
you'd have to write the same code 10 times

so you make it a function
and instead of writing the code 10 times
you write it 1 time and run it 10 times

stuck goblet
#

truthy falsey ?

golden sonnet
#

0 is False

#

1 is True

amber pagoda
#

@golden sonnet what you wrote could be a function like this?

#

falsy?

#

Truly

stuck goblet
#

like kinda false kinda true?

somber heath
#

!e py if True: print('A')``````py if False: print('B')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

A
golden sonnet
somber heath
#

!e py if 'abc': print('A')``````py if '': print('B')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

A
amber pagoda
#

def people_name(first_name, last_name)
i > 20
print(name)
I don´t know lol

golden sonnet
#

but if you don't make it a function
you have to write the whole code again and again

stuck goblet
#

whoa there's python built into the server so cool

somber heath
#

!e py if 1 + 1 == 2: print('A') print(1 + 1 == 2)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | True
stuck goblet
#

im learning!!!

golden sonnet
#

!e

print(1 + 1 == 3)
wise cargoBOT
#

@golden sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

False
stuck goblet
#

the basics are just oop

golden sonnet
#

everything is oop in python

#

even functions

#

!e

def x():
  pass
print(type(x))
wise cargoBOT
#

@golden sonnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'function'>
stuck goblet
#

so other languages aren't like that ?

amber pagoda
golden sonnet
#

!code

wise cargoBOT
#
Formatting code on discord

Here's how to format Python code on Discord:

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

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

stuck goblet
#

it kinda makes things easier

#

under the hood object

#

its like a sleeper car

#

or the steve jobs shirt oop explanation

golden sonnet
#

!e

print(type(if))
#

doesn't work :/

stuck goblet
#

how do i use the bot to write python ?

golden sonnet
#

!e

wise cargoBOT
#
Missing required argument

code

stuck goblet
#

py print('hello world')

#

dang

golden sonnet
#

!code

wise cargoBOT
#
Formatting code on discord

Here's how to format Python code on Discord:

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

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

stuck goblet
#

ooohhh n0o "

#

`

#

py

golden sonnet
#

!resources also check out this

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

golden sonnet
#

good stuff in there

stuck goblet
#

py print(Hello world)

golden sonnet
#

you put the ` before py

#

three before
three after the code is done

amber pagoda
stuck goblet
#
print(`hello World`)```
#

i did it!!!

#

thanks

golden sonnet
#

yup ("hello world") is the right way

amber pagoda
stuck goblet
#
print('hello world')```
stuck goblet
#

i'm too used to doubles

golden sonnet
#

i like " more 🥺

stuck goblet
#

less shift

old heart
#

not sure why that was a reply to !fernandodoc 😛

stuck goblet
#

wait more shift

old heart
#

anyone use wsl and vs code here

stuck goblet
#

be real tho are you pressing enter three times ?

golden sonnet
#

pycharm for me

amber pagoda
#

I'm loving learning with you

stuck goblet
#

ik your supposed to but tab is ez

#

pycharm or vs

golden sonnet
#

using ' and " is purely up to the user if i remember right'

amber pagoda
#

@somber heath the convention you say PEP?

golden sonnet