#voice-chat-text-0

1 messages Β· Page 583 of 1

paper wolf
#

theres also this

cerulean roost
#

Very coool!

paper wolf
#

you can stack conditions

somber heath
#

!e py var = [a * 2 for a in [b * 3 for b in range(4)]] print(var)

wise cargoBOT
paper wolf
#

tbh i learend list, set, dict and generator comprehension same time i learned if statements

#

@wraith mauve you probably want to use prebuilt, and tailor it on what you want

#

but its nice to learn how they works internally

wraith mauve
#

ty ❀️

paper wolf
#

tuple?

#

tuple what

#

thats probably not a tuple comprehension, but a generator comprehension cast into tuple

somber heath
#

!e py foo = (v for v in range(3)) print(foo) bar = tuple(v for v in range(3)) print(bar)

wise cargoBOT
paper wolf
#

(x for x in obj) is a generator comprehension

#

the tuple part actualy cast the generator into tuple

cerulean roost
#

Transpose

paper wolf
#

?

cerulean roost
buoyant dove
#

!e ```py
foo = (v for v in range(3))
print(next(foo))

wise cargoBOT
paper wolf
#

!e

arr = list(x for x in range(5))
print(arr, type(arr))
wise cargoBOT
buoyant dove
#

Okay interesting

paper wolf
#

transpose?

#

yes

#

its a matrix operation

buoyant dove
#

Yea

paper wolf
#

its usefull

buoyant dove
#

Useful in ML

paper wolf
#

not only ML

#

tbh i still suck at vectorizing my equations lol

buoyant dove
#

haven't seen any other use

#

Other than ml

paper wolf
#

quantum computing...

buoyant dove
#

Oh okay

paper wolf
#

and most GPU problably do that internally

buoyant dove
#

Yea man never

paper wolf
#

its usefull on many data science

#

Meuvim is just what i call my neovim config lol

#

thats why im its herald

#

hello there people

candid spire
#

Ey, not good, how about you?

#

Great, you are progressing at fast pace in python learning

paper wolf
#

i still call generator expression generator-comprehension i preffer consistency to match other comprehensions

candid spire
#

@wraith mauve Hello πŸ‘‹

#

@drifting karma Hello πŸ‘‹

drifting karma
#

hiii

paper wolf
#

building rich presence shouldnt be hard

somber heath
candid spire
paper wolf
#

lol

drifting karma
#

they told me u r not active here

#

so i cant be verified

#

sadly

buoyant dove
#

Its okay little panda

paper wolf
drifting karma
#

m new here so haha

#

idk what to do

#

so anyways how are u

#

how s life

#

how s coding

paper wolf
#

@obsidian dragon that also send ur activities to the HQ?

#

lol

drifting karma
#

yesss m here

#

hahahahhaa

#

omg

paper wolf
paper wolf
candid spire
#

Cheers guys, heading out πŸ‘‹

drifting karma
#

u need to be positive guys like look at the bright side

drifting karma
buoyant dove
paper wolf
#

it is nokia

drifting karma
#

but m feeling more dumb

#

with claude ai doing my work

somber heath
#

@blissful hinge πŸ‘‹

paper wolf
#

i have to rewrite the thing

drifting karma
buoyant dove
paper wolf
#

yes really

buoyant dove
#

I've been learning side by side tho

somber heath
buoyant dove
#

Systems programming

drifting karma
buoyant dove
blissful hinge
#

I've not been active enough

paper wolf
buoyant dove
paper wolf
#

πŸ—£οΈ just have convension

blissful hinge
#

I've been entered just to hear what you are talking about

paper wolf
#

we talk things comes to mind

#

lets talk about nothing

blissful hinge
#

ok

paper wolf
#

i got here first to ask for help building discord bot πŸ‘€

#

god, so loud

buoyant dove
#

Me?

paper wolf
#

im currently building our school project, what DB i could use?

#

preferably simple DB single file

blissful hinge
#

I've just discovering in dicover tab because I'm still learning python so I want some incentivize

paper wolf
#

a friend suggest sqlite

#

i dont need control ._.

#

i need simplicity

buoyant dove
#

Supabase

blissful hinge
#

do you know how can I know how many time i've been active

paper wolf
#

sorry im having hard time catching up ._.

buoyant dove
paper wolf
winged thunder
#

salutations

buoyant dove
#

#bot-commands

paper wolf
#

for me it doesnt work lol

#

its loud for me for some reason

#

Abo Ara fa

somber heath
#

@empty grail πŸ‘‹

paper wolf
#

mine still sucks

empty grail
#

How are you guys?

paper wolf
#

πŸ˜”

#

pronounce what?

empty grail
#

Sorry, I can't turn on my mic.

somber heath
blissful hinge
#

it's the first channel in voice

paper wolf
#

also enable krisp

somber heath
#

@nimble scarab πŸ‘‹

paper wolf
#

the what?

#

ayo ech ehc ehc ehc ech ech lol

#

we have hard conversation about politics and tech here

buoyant dove
#

Yeah

#

Had conversations about animals too

somber heath
#

@pliant warren πŸ‘‹

pliant warren
#

Hello

paper wolf
#

!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.

pliant warren
#

I'm sorry I can't talk to you because I don't speak English.

paper wolf
#

@young matrix depends on the protocol

#

probably

paper wolf
#

oh

#

well you'll do some validations

pliant warren
#

Is it a library? splite Open source

paper wolf
#

i just lower his volume

#

i love watching computerphile

buoyant dove
#

@young matrix are u talking about detecting fraud without knowing previous data

blissful hinge
#

I'm learning in Two pi channel it's arabic tho

paper wolf
#

sami it is

somber heath
#

@undone kindle πŸ‘‹

undone kindle
#

hi

somber heath
blissful hinge
#

I'm disconnecting from that voice chat my PC is veeeery hot

paper wolf
#

my audio sucks....

#

@somber heath i dont think that would give satisfying resolution

#

i mean precision

undone kindle
paper wolf
#

and engage with the discussion there

zealous bobcat
#

Hey @sleek otter

inner hill
#

Hey @sleek otter

#

@sour gyro

blissful hinge
#

do you schcleud the voice chat or what?

cerulean roost
#

Hi @pastel hearth

pastel hearth
cerulean roost
cerulean roost
#

!e

from collections import namedtuple

# Define a Book namedtuple
Book = namedtuple('Book', ['title', 'author', 'year', 'price'])

# Create instances
books = [
    Book("1984", "George Orwell", 1949, 9.99),
    Book("The Great Gatsby", "F. Scott Fitzgerald", 1925, 12.99),
    Book("To Kill a Mockingbird", "Harper Lee", 1960, 10.99),
]

# 1. Access by attribute (readable)
for book in books:
    print(f"{book.title} by {book.author} ({book.year}) - ${book.price}")

print()

# 2. Unpacking
title, author, year, price = books[0]
print(f"Unpacked: {title} costs ${price}")

print()

# 3. Immutable (can't modify)
try:
    books[0].price = 5.99
except AttributeError as e:
    print(f"Error: {e}")

print()

# 4. Works like a dict
print(books[0]._asdict())
wise cargoBOT
# cerulean roost !e ```py from collections import namedtuple # Define a Book namedtuple Book = ...

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | 1984 by George Orwell (1949) - $9.99
002 | The Great Gatsby by F. Scott Fitzgerald (1925) - $12.99
003 | To Kill a Mockingbird by Harper Lee (1960) - $10.99
004 | 
005 | Unpacked: 1984 costs $9.99
006 | 
007 | Error: can't set attribute
008 | 
009 | {'title': '1984', 'author': 'George Orwell', 'year': 1949, 'price': 9.99}
cerulean roost
#

Hi @lost cedar

pastel hearth
cerulean roost
ruby spruce
#

hello

lost cedar
ruby spruce
#

can you guys rate my game?

cerulean roost
#

!e

# Real-world: Social network - find common friends

user1_friends = {'Alice', 'Bob', 'Charlie', 'Diana', 'Eve'}
user2_friends = {'Bob', 'Charlie', 'Frank', 'Grace', 'Henry'}

print("User 1 friends:", user1_friends)
print("User 2 friends:", user2_friends)
print()

# 1. Find common friends (intersection &)
common = user1_friends & user2_friends
print(f"Friends in common: {common}")
print()

# 2. Find all friends of either user (union |)
all_friends = user1_friends | user2_friends
print(f"All unique friends: {all_friends}")
print()

# 3. Find friends only user1 has (difference -)
only_user1 = user1_friends - user2_friends
print(f"Only user1's friends: {only_user1}")
print()

# 4. Fast membership testing
print(f"Is Bob a mutual friend? {'Bob' in common}")
print()

# 5. Remove duplicates from a list
emails = ['alice@mail.com', 'bob@mail.com', 'alice@mail.com', 'charlie@mail.com', 'bob@mail.com']
unique_emails = set(emails)
print(f"Unique emails ({len(unique_emails)}): {unique_emails}")
wise cargoBOT
# cerulean roost !e ```py # Real-world: Social network - find common friends user1_friends = {'...

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | User 1 friends: {'Bob', 'Diana', 'Eve', 'Charlie', 'Alice'}
002 | User 2 friends: {'Bob', 'Grace', 'Charlie', 'Henry', 'Frank'}
003 | 
004 | Friends in common: {'Charlie', 'Bob'}
005 | 
006 | All unique friends: {'Bob', 'Henry', 'Charlie', 'Frank', 'Alice', 'Grace', 'Eve', 'Diana'}
007 | 
008 | Only user1's friends: {'Eve', 'Alice', 'Diana'}
009 | 
010 | Is Bob a mutual friend? True
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/4SHGDZ22Q4T5XS5HRPV34RCNSY

cerulean roost
#

!e

# Real-world: Pizza party - different toppings each person likes

alice_toppings = {'pepperoni', 'mushrooms', 'onions', 'sausage', 'peppers'}
bob_toppings = {'pepperoni', 'olives', 'mushrooms', 'garlic', 'basil'}

print("=" * 50)
print("πŸ• PIZZA PARTY TOPPINGS πŸ•")
print("=" * 50)
print(f"Alice wants: {alice_toppings}")
print(f"Bob wants: {bob_toppings}")
print()

# 1. Union (|) - Make a pizza with all toppings either wants
all_toppings = alice_toppings | bob_toppings
print(f"βœ… UNION (everything either wants):")
print(f"   {all_toppings}")
print(f"   Total unique toppings: {len(all_toppings)}")
print()

# 2. Intersection (&) - Toppings both agree on
both_love = alice_toppings & bob_toppings
print(f"❀️ INTERSECTION (both love these):")
print(f"   {both_love}")
print()

# 3. Difference (-) - What Alice wants but Bob doesn't
alice_only = alice_toppings - bob_toppings
print(f"🎯 DIFFERENCE (Alice wants, Bob doesn't):")
print(f"   {alice_only}")
print()

# 4. Symmetric difference (^) - Toppings only ONE person wants
compromise = alice_toppings ^ bob_toppings
print(f"βš–οΈ SYMMETRIC DIFFERENCE (only one person wants):")
print(f"   {compromise}")
print()

# 5. Membership testing (in)
print(f"πŸ” MEMBERSHIP TESTING:")
print(f"   Is 'pepperoni' on both lists? {'pepperoni' in both_love}")
print(f"   Does Alice want 'garlic'? {'garlic' in alice_toppings}")
print(f"   Does Bob want 'sausage'? {'sausage' in bob_toppings}")
print()

# 6. Remove duplicates (create set from list)
all_votes = ['pepperoni', 'mushrooms', 'pepperoni', 'olives', 'mushrooms', 'pepperoni']
popular = set(all_votes)
print(f"πŸ“Š REMOVE DUPLICATES (vote counts):")
print(f"   Raw votes: {all_votes}")
print(f"   Unique votes: {popular}")
wise cargoBOT
# cerulean roost !e ```py # Real-world: Pizza party - different toppings each person likes alice...

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | ==================================================
002 | πŸ• PIZZA PARTY TOPPINGS πŸ•
003 | ==================================================
004 | Alice wants: {'peppers', 'pepperoni', 'mushrooms', 'sausage', 'onions'}
005 | Bob wants: {'pepperoni', 'mushrooms', 'olives', 'basil', 'garlic'}
006 | 
007 | βœ… UNION (everything either wants):
008 |    {'peppers', 'pepperoni', 'mushrooms', 'onions', 'basil', 'olives', 'sausage', 'garlic'}
009 |    Total unique toppings: 8
010 | 
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/EE7ISOQQGWSZWGWQP5UNSLTYBE

tidal wedge
#

Hello @cerulean roost

#

Wyd

#

Also btw what is uniyo, I see its in your bio

#

Nice

#

Its a good website

#

What is it for

#

As in the Company

#

Im on android personaly

#

What are the services for

#

I do Still have my iphone

#

It dosnt look like that on pc

#

Nothing

#

Just typed the url

#

On desktop its perfect

#

Is it UNIYO LTD

cerulean roost
tidal wedge
#

I dont need ts

#

I dont want it anyway

#

Nie

#

No

#

Im shit at web dev

rough tapir
#

Hello πŸ‘‹

tidal wedge
#

I know a little bit of HTML and css

#

Need to improve on this

#

Basicly you have a cousin or something over

#

K think thats not exactly a good way of putting that lol

#

I have a basic nav

#

I dont update it oftern

#

The site

rough tapir
#

Oh

#

Yeah

tidal wedge
#

This was my last commit

#

Im doing some homework rn for food tech

#

Need to pass my gcse's somehow

#

1 year

#

Python i heard is quite good in back end

cerulean roost
#

!e

# Drama: rival bands comparing their setlists

band_a = {'rock', 'metal', 'blues', 'jazz'}
band_b = {'metal', 'pop', 'electronic', 'jazz'}

print(":guitar: BATTLE OF THE BANDS :guitar:\n")

print(f"Band A: {band_a}")
print(f"Band B: {band_b}\n")

# Union - merge all genres
print(f":radio: MEGA FESTIVAL (all genres): {band_a | band_b}\n")

# Intersection - common ground
print(f":handshake: THEY AGREE ON: {band_a & band_b}\n")

# Difference - unique flex
print(f":muscle: Band A's ONLY genres: {band_a - band_b}")
print(f":muscle: Band B's ONLY genres: {band_b - band_a}\n")

# Symmetric difference - the drama
drama = band_a ^ band_b
print(f":zap: THE BEEF (genres only one has): {drama}\n")

# Membership test
print(f":fire: Does Band A do metal? {('metal' in band_a)}")
print(f":fire: Does Band A do pop? {('pop' in band_a)}")
wise cargoBOT
# cerulean roost !e ```py # Drama: rival bands comparing their setlists band_a = {'rock', 'metal...

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | :guitar: BATTLE OF THE BANDS :guitar:
002 | 
003 | Band A: {'rock', 'blues', 'jazz', 'metal'}
004 | Band B: {'electronic', 'jazz', 'metal', 'pop'}
005 | 
006 | :radio: MEGA FESTIVAL (all genres): {'blues', 'electronic', 'pop', 'jazz', 'rock', 'metal'}
007 | 
008 | :handshake: THEY AGREE ON: {'jazz', 'metal'}
009 | 
010 | :muscle: Band A's ONLY genres: {'rock', 'blues'}
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/WTEYCMGEURMVVMGV3JHBKUUB6U

cerulean roost
#

@mortal burrow

rough tapir
#

To eliminate Redundancy of elements.

#

Vein diagram

#

Circle mostly

#

Yeah

mortal burrow
tidal wedge
# mortal burrow https://mathmonks.com/sets/set-operations/set-difference

How would you do something like this? https://en.wikipedia.org/wiki/Euclidean_algorithm

In mathematics, the Euclidean algorithm, or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers, the largest number that divides them both without a remainder. It is named after the ancient Greek mathematician Euclid, who first described it in his Elements (c. 300 BC).
It is an example of ...

tidal wedge
#

@rough tapir

rough tapir
#

Yeah. Venn diagram.

tidal wedge
#

I know how to do a % in python

#

Yk devision with a remainder

rough tapir
#

time complexity of set is faster than Lists

tidal wedge
rough tapir
#

Also to check if duplicates are there.

tidal wedge
#

Daym twitter isnt on android

rough tapir
mortal burrow
tidal wedge
rough tapir
tidal wedge
rough tapir
#

What theme ?

tidal wedge
#

I will hop off now due to it being 11PM and i have school tmr

#

Bye ppl

#

Gn

#

Also good luck with uniyo @cerulean roost hope it goes well

rough tapir
#

Emojis

tidal wedge
#

No its not nsfw

wise cargoBOT
#

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | RELATIONSHIP COMPATIBILITY TEST
002 | 
003 | Nerd likes: {'coffee', 'gaming', 'anime', 'memes', 'coding'}
004 | GF likes: {'coffee', 'shopping', 'anime', 'cooking', 'memes'}
005 | 
006 | [OK] WE AGREE ON: {'coffee', 'memes', 'anime'}
007 |      (phew, at least 3 things!)
008 | 
009 | [HIS] HE WON'T STOP TALKING ABOUT: {'gaming', 'coding'}
010 | 
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/2MDNXP2ZBFHODJ7SRMOFF35PXI

rough tapir
#

Similarities

#

Yeah.

#

They need data to feed the algorithm.

#

i think it helps in filtering the data

cerulean roost
rough tapir
#

Yeah.

oak silo
#

gromov wasserstein alignment

rough tapir
#

The main difference is with list you need to go one by one searching

#

in sets it uses hash table for mapping

#

i think

#

XD

#

Lol

#

@spark oriole Hellow πŸ‘‹

cerulean roost
#

!e

# What makes you different from your crush

you = {'gaming', 'coding', 'anime', 'coffee'}
crush = {'coffee', 'gym', 'cooking', 'anime'}

unique = you ^ crush
print(f"You: {you}")
print(f"Crush: {crush}")
print(f"Why you're incompatible: {unique}")```
wise cargoBOT
cerulean roost
rough tapir
#

Yeah

#

Me too. πŸ‘‹ bye bye

#

Yup

#

Got a dog.

#

Oh.

somber heath
#

@woeful void πŸ‘‹

woeful void
#

Hello

livid niche
#

i made a cool program in commodore 64 6502 assembly that basically does the same thing as cat /dev/urandom on linux

#

i still havent figured out how to remove the static from OBS

livid niche
#

the SID is great at making pseudo random numbers

livid niche
# livid niche i made a cool program in commodore 64 6502 assembly that basically does the same...

a quirk about the c64 you may find entertaining is that normally, the kernel does not know what to do with an assembled program, you cant just do the RUN command on it and have it RUN since the RUN command only works on BASIC scripts, you have to either manually run the SYS command and enter the memory location as a parameter, or the programmer has to inject the BASIC script that basically points to the assembled binary's memory location.

livid niche
#

assemblers make this easy though

#

but if you were writing this file in a monitor, you would have to calculate what the first 2 bytes would be because the first two bytes is a pointer to the next line

livid niche
#

or in this case, thank DEC

#

since they laid the groundwork for these abstractions

livid niche
#

sys token = $9e

#

and i made a constant null = $00

livid niche
somber heath
livid niche
#

since this is the assembler im using

#

@vagrant pumice oh yeah ive been doing ruby

livid niche
#

the logic of the machine

somber heath
#

@full echo πŸ‘‹

full echo
#

Hey

stray pewter
#

!e

for(let t=0;;t++)console.clear(),console.log(
[...Array(28)].map((_,y)=>
[...Array(80)].map((_,x)=>
" .:=+*#%@"[
(((x^y+t)&((x*t>>3)|(y+t)))^(x*y+t)%13)%9
]
).join('')
).join('\n')
),await new Promise(r=>setTimeout(r,40))
wise cargoBOT
stray pewter
#

did not notice its typescript

#

!e

while 1:print('\n'.join(''.join(" .:=+*#%@"[((x^y+t)&((x*t>>2)|(y+t))^x*y)%9]for x in range(80))for y in range(25)));t=-~globals().get('t',0);__import__('time').sleep(.05);print('\033[H')
wise cargoBOT
# stray pewter !e ```py while 1:print('\n'.join(''.join(" .:=+*#%@"[((x^y+t)&((x*t>>2)|(y+t))^x...

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     while 1:print('\n'.join(''.join(" .:=+*#%@"[((x^y+t)&((x*t>>2)|(y+t))^x*y)%9]for x in range(80))for y in range(25)));t=-~globals().get('t',0);__import__('time').sleep(.05);print('\033[H')
004 |                   ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/home/main.py", line 1, in <genexpr>
006 |     while 1:print('\n'.join(''.join(" .:=+*#%@"[((x^y+t)&((x*t>>2)|(y+t))^x*y)%9]for x in range(80))for y in range(25)));t=-~globals().get('t',0);__import__('time').sleep(.05);print('\033[H')
007 |                             ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
008 |   File "/home/main.py", line 1, in <genexpr>
009 |     while 1
... (truncated - too long, too many lines)

Full output: https://paste.pythondiscord.com/NRQ74UWAV2FEC754272VJWCAQE

stray pewter
#

flip

somber heath
#

@timber arrow πŸ‘‹

timber arrow
#

hold on

#

my voice chat i need to verify

#

oh i havent been in this server for 3 days

#

i need to to be able to talk

#

hmm?

#

im not sure i havent joined before from what remember

#

what projects are u working on currently?

#

ahaha all good

#

uhm currently im working on a like utility and music playrer

#

mmm let ssee if i can upload images

#

so u can see

#

you have probably seen something like it but i did my own spin on it

#

yeah its based on another tool let me find that for u

#

lmao similar but for my own purposes

#

and the music player

#

i think so

#

lmao

#

but its going good actually

#

what have u made in the past?

#

oh yeah ive made a discord bot before

#

oop

#

fair enough\

#

haha same

timber arrow
#

my bad

#

how many lines is ur image algorithim thingy

#

oh lmaoo

#

no problem

#

thats cool

#

nice and debloated

#

fair enough honestly

#

i first learned batch when i started coding

#

i think its very easy i learned how to make a multitool in 5 mins

#

from 0 prior knowlege

#

and ahk is cool aswell

#

for like macroing and mouse movements automation

#

thats cool

#

im thinking of learning like C#

#

or anything C

#

idk its really good for a lot of things but its a bit complex

#

yeaaa

#

yeah

#

assembly πŸ’€

#

understandable

#

are u on linux or windows currently?

#

what distro

#

mmm

#

yeahh

#

mm yeah i like arch and cachy currently

#

yeah honestly

#

honestly just pull a terry davis make ur own haha

#

me neither

#

yeah

#

eventually

#

TRASH os's essentially

#

augh it would be so cancer

#

haha

#

ofcourse i would

#

and ofcourse i would update my mainstream windows os to upgrade their spyware YAYYYYY

#

some of that is good tho

#

theres many bad places on the internet that shouldnt be shown

#

yep

#

giving ur adress

#

honestly there will always be a kid who makes their own shit i think people need to start their homelabs way earlier than expected

somber heath
#

@silver ermine πŸ‘‹

timber arrow
#

haha

silver ermine
#

Hey

#

I don’t have permission to speak

timber arrow
#

yea

#

i mean same with mainstream browsers

#

or some

#

yeah

#

thats why i made my music player i dont want to rely on stupid big companys

timber arrow
#

haha

#

no need for subscriptions when piracy exists

#

yeah

#

i joke with my friends sometimes on like "oh u need a subscription to be able to buy this subscription" but i think its closer than we think

#

yea

#

haha

#

like imagen someone random goes in your house and looks through ur drawers but ANYONE by law is allowed to

#

its completely stupid

#

lol

#

yeaa ur not wrong

#

yea

#

its going to be a subscription based "utopia" with no free will

#

if we dont

#

we are so screwed

#

yea

#

jesus

#

tragic

#

"nah mate u cant do that"

#

so corrupted

#

dear god

#

lordy

#

yeah

#

i wouldnt put it past them

#

yea

#

well coding jobs now are people reviewing ai code

#

its so heartbreaking

#

haha

#

yeah

#

yeah in games it shows and even in os's such as windows 12 taking forever is because they use AI

rough tapir
#

Hello

timber arrow
#

hi

#

so indie games will be less and less over time

#

they dont do shit in over here in south africa luckily

#

while we ask for childrens face to verify theyre a child

rough tapir
#

Afrikaans

timber arrow
#

and there isnt a database of childrens faces from that app

timber arrow
#

exactly

#

we pwomise brah

#

"so we can improve user expierience based on ur data"

#

"we arent anylizing it brah we promise"

#

ya

#

for real

#

like where is our vote here

#

yep discord will do it soon

#

face age verification

#

if they do im switching to some other shit

#

YAYYYY

#

yeah

#

augh its disgusting homelabs on top

#

yep wouldnt put it past them

#

same here

#

insane prediction

#

id say maybe 10 years ago i thought there would be subscription based os's

#

but it turns out windows 12 will be subscription based

#

yeah

#

Lordy it will be like phone storage

#

pay 70 dollars per month to get more phone storage

#

then it would be differant

#

fair enough honestly

somber heath
#

@glossy hollow πŸ‘‹

glossy hollow
#

hlooo

timber arrow
#

it has all the hardware but it isnt enabled because of big company

#

yep

#

people leave it too late

#

exactly

#

i mean god i thought on windows 7 that having to pay to use the os was mad

#

or paying to use certian features

glossy hollow
#

yup , people are busy in their life's and as soon as something big happens

somber heath
glossy hollow
#

i think a person should be taught in schools that they should save some time and discuss some topics like these in a week

timber arrow
#

pay for ur os to be bare minimum

timber arrow
#

because then the kids will be GAY and thats sooo baddd

#

lmao

#

mhm

glossy hollow
#

@timber arrow yup

timber arrow
#

its always funny when some like furry or something hacks some important goverment info

#

exactly

glossy hollow
#

I have also heard a news that most of the companies are moving towards subscription model instead of letting people own anything which they are paying off

timber arrow
#

yea

#

u wanna know something crazy opal

#

im not even using discord currently im using my own app that uses a discord token to speak

#

i dont even have discord installed

#

haha

#

i know

#

yea thats exactly it

#

they dont know im spoofing the app

#

ty

#

yeah this is an alt

#

lmao

#

yaaa i dont say this stuff on my main

glossy hollow
timber arrow
#

fair enough

#

is also more incriminating to delete it

#

yeah its alright

#

same

glossy hollow
#

but opal don't u think every country is trying to isolate nowadays

#

making their own currencies , reserving gold

timber arrow
#

mm

#

exactly

glossy hollow
#

it will affect the businesess bcz its unfair for an mnc

timber arrow
#

exactly

glossy hollow
#

like in china u cannot use youtube , twitter....

timber arrow
#

u cant use discord in pakistan and russia

#

i think

#

and the us kidnapping the greenland presidient or wtvr

glossy hollow
#

yup bcz govt tryna make a bubble in their own countries and not let people connect with the world

#

North Korea is final boss in these kind of people manipulationπŸ’€

timber arrow
#

i shall be on my way interesting chat here see you people

glossy hollow
#

hmmm interesting....

#

see u opal , byee

heady pilot
#

hlo

somber heath
#

@heady pilot πŸ‘‹

heady pilot
#

yeah we have met befor

#

idk about that

#

what voice verification

glossy hollow
somber heath
heady pilot
#

ok

iron geyser
#

πŸ‘€ What happen here ?

#

πŸ˜‚

heady pilot
#

I have not been active enought here

glossy hollow
heady pilot
iron geyser
glossy hollow
heady pilot
#

whassup my indian brother

iron geyser
#

The clown cat

#

πŸ˜‡

heady pilot
#

haven't seen pennywise

#

is it good

#

bye gotta go

cerulean roost
#

!e


# Find skills you need to learn to impress your crush

your_skills = {'python', 'javascript', 'html', 'gaming'}
crush_skills = {'python', 'sql', 'react', 'cooking'}

# What you're missing (set comprehension + symmetric diff)
missing = {skill for skill in (your_skills ^ crush_skills) if skill not in your_skills}

print(f"Your skills: {your_skills}")
print(f"Crush skills: {crush_skills}")
print(f"YOU NEED TO LEARN: {missing}")```
wise cargoBOT
thin river
#

Can't hear πŸ™‰

#

Later

blissful hinge
#

hi

candid spire
blissful hinge
#

thanks still I've not been active enough

#

are you from india?

#

ok

#

I'm from morocco

candid spire
blissful hinge
#

Not a lot I know Just the basics but with some about OOP programing in python

candid spire
#

Great!

blissful hinge
#

what are you talking about?(just corious)

#

Hi @somber heath

somber heath
#

@zealous bobcat πŸ‘‹

zealous bobcat
#

πŸ‘‹

candid spire
blissful hinge
candid spire
jovial sky
#

Hello

candid spire
#

!beginner

wise cargoBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

candid spire
blissful hinge
#

what's the red file

humble kestrel
#

Hii

blissful hinge
#

hello

humble kestrel
#

Ive been messageing alot still verifying vc isnt working

paper wolf
blissful hinge
#

My wi-fi is very bad

fading temple
#

Hi

blissful hinge
#

I'm out i'll be back soon

rough tapir
#

Hello πŸ‘‹

cerulean roost
#

!e

questions = ['name', 'quest', 'favorite color']
answers = ['lancelot', 'the holy grail', 'blue']
for q, a in zip(questions, answers):
    print('What is your {0}?  It is {1}.'.format(q, a))
wise cargoBOT
somber heath
#

!e py print(*zip(range(3), range(999)), sep=", ")

wise cargoBOT
somber heath
#

!e py print(*zip(range(6), range(999)), sep=", ")

wise cargoBOT
somber heath
#

!d itertools.zip_longest

wise cargoBOT
#

itertools.zip_longest(*iterables, fillvalue=None)```
Make an iterator that aggregates elements from each of the *iterables*.

If the iterables are of uneven length, missing values are filled-in with *fillvalue*. If not specified, *fillvalue* defaults to `None`.

Iteration continues until the longest iterable is exhausted...
somber heath
#

!e py import itertools for a, b in itertools.zip_longest(range(3), range(8)): print(a, b)

wise cargoBOT
somber heath
#

!e py import itertools for a, b in itertools.zip_longest(range(8), range(3)): print(a, b)

wise cargoBOT
somber heath
#

!e py import itertools for a, b in itertools.zip_longest(range(8), range(3), fillvalue="+++"): print(a, b)

wise cargoBOT
cerulean roost
somber heath
#

!e py values = {1, 2, 3} for _ in values: values.add(4)

wise cargoBOT
cerulean roost
#

!e

import math
raw_data = [56.2, float('NaN'), 51.7, 55.3, 52.5, float('NaN'), 47.8]
filtered_data = []
for value in raw_data:
    if not math.isnan(value):
        filtered_data.append(value)

print(filtered_data)
wise cargoBOT
somber heath
#
nan = float("NaN")
values = [1, 2, nan, 3, 4]```
#
[v for v in raw_data if v != nan]```
candid spire
#

@cerulean roost At which part you are?

cerulean roost
somber heath
#
import math
...
filtered = [v for v in raw_data if not math.isnan(v)]```
#

!d math.isnan

wise cargoBOT
#

math.isnan(x)```
Return `True` if *x* is a NaN (not a number), and `False` otherwise.
candid spire
#

Skill issue for sure!!

#

I'm not your bruh

somber heath
#

@proud badge πŸ‘‹

candid spire
#

@cerulean roost I think c++ and c are preferred for game dev

#

and c#

#

c python is implementing a c module in python

#

But we are using python

paper wolf
#

cpython is a implementation of python

candid spire
#

what you learning right now

paper wolf
#

you can make library on c and use it on python

candid spire
#

JVM is exclusive to Java?

paper wolf
#

@little scarab jvm on python?

candid spire
#

Pvm

#

It translate the byte code to machine code and executes

paper wolf
#

its not as hard tho

#

if you alr have the enviroment atleast

candid spire
#

Keep learning python

#

Don't distract yourself

paper wolf
#

energy?

#

you mean calories

cerulean roost
#

@candid spire

paper wolf
#

i love python for the 2 operation stacking

#

i mean comparison stacking

#

A < X < B is super intuitive

#

theres no order

#

theres no order

candid spire
paper wolf
#

c doesnt have it

#

same for c++

somber heath
paper wolf
#

python do (A < X) < B and the < operator return the X no??

#

or the operation was parsed into
(A < X) and (X < B)

cerulean roost
#

Comparisons can be chained. For example, py a < b == c tests whether a is less than b and moreover b equals c.

candid spire
#

With () it treats them as whole?

paper wolf
candid spire
paper wolf
#

on the python-bytecode it parse it to be like that

candid spire
paper wolf
cerulean roost
#

!e

a, b, c = 3, 5, 5

# Chained β€” both comparisons checked together
print(a < b == c)      # True  (a < b AND b == c)

# Parens force (a < b) first β†’ True, then compares True == 5
print((a < b) == c)    # False (True != 5)

# Parens force (b == c) first β†’ True, then compares 3 < True
# Sneaky: True is 1 in Python, so this is 3 < 1
print(a < (b == c))    # False```
wise cargoBOT
paper wolf
#

true is more than 0

#

false is 0

#

!e print(4 + True)

wise cargoBOT
paper wolf
#

well bc its a special operation

candid spire
paper wolf
#

maybe

candid spire
#

Is there a way to check this?

paper wolf
#

idk

#

we might need to check the matrix

candid spire
#

!e

a = bool(-10)            # True
b = bool(float('inf'))   # True
c = bool(float('-inf'))  # True

print(a)
print (b)
print (c)
cerulean roost
#

A and not B or C is equivalent to (A and (not B)) or C. As always, parentheses can be used to express the desired composition.

candid spire
#

!e

a = bool(-10)            # True
b = bool(float('inf'))   # True
c = bool(float('-inf'))  # True

print(a)
print (b)
print (c)
wise cargoBOT
paper wolf
#

parenthesis just folds the expression

candid spire
cerulean roost
paper wolf
upper basin
#
from quimb.tensor.tn1d.compress import tensor_network_1d_compress  # type: ignore
from qrisp_aqc.mps_encoding.sequentual import _generate_unitary_layer  # type: ignore
import copy

num_qubits = 10
num_layers = 4
max_bond = 4

mps = qtn.MPS_rand_state(num_qubits, bond_dim=max_bond, seed=0)
mps = tensor_network_1d_compress(mps, max_bond=max_bond)

mps_copy: qtn.MatrixProductState = copy.deepcopy(mps)
unitary_layers = []

# Preprocessing
mps_copy.normalize()
mps_copy.compress(form="right")
mps_copy.permute_arrays("lpr")
mps_copy.right_canonize(normalize=True)

# The main loop where we generate the unitary layers and apply them to the MPS
for _ in range(num_layers):
    # Truncate bond dimension to 2
    mps_truncated = copy.deepcopy(mps_copy)
    mps_truncated.compress(form="right", max_bond=2)
    mps_truncated.right_canonize(normalize=True)

    # Generate the unitary layer from the truncated MPS
    # unitary_layer definition is a bit long so I omitted
    # it here, but main thing is it does not modify the MPS
    # (it only looks at the tensors to generate the unitaries)
    unitary_layer = _generate_unitary_layer(mps_truncated)
    unitary_layers.append(unitary_layer)

    # Apply the inverse of the layer to the MPS
    # (equivalent to disentangling it towards the zero product state)
    for qubits, unitary in reversed(unitary_layer):
        if len(qubits) == 1:
            mps_copy.gate_(unitary.conj().T, where=qubits, contract=True)
        else:
            mps_copy.gate_split_(unitary.conj().T, where=qubits)
            # mps_copy.gate_nonlocal_(unitary.conj().T, where=qubits)

    print(fidelity_with_zero_state(mps_copy))
paper wolf
#

on the two's compliment, negative means the most significant bit is 0

#

positive means the most significant bit is 1

candid spire
paper wolf
#

@upper basin try to observe the data

#

and maybe it wont collapse

candid spire
#

Everything goes over my head

paper wolf
#

i have no idea what those function does lol

candid spire
#

Gtg, I need to reboot my mind!!

paper wolf
#

on twos compliment

#

the most significant bit tells if its a positive

#

like 0b1000 means +0

fierce iris
#

how do I verify to speak in voice?

paper wolf
#

0b1001 means 1

fierce iris
#

I am learning python at the moment

paper wolf
#

0b1111 means -7

#

ig

#

i dont have c interpreter....

candid spire
#

Kai Nakamura is 10x python dev??

cerulean roost
paper wolf
#

whos said that

candid spire
#

I can hear him, trust me bruh!

paper wolf
#

no way

cerulean roost
#

he's projecting

candid spire
#

Abiding code god!!

paper wolf
#

we must praice the snake god

#

walrus operator?

cerulean roost
#

:=

paper wolf
#

meh

#

i use it for oneliner code

candid spire
paper wolf
#

thats syntax error

candid spire
paper wolf
#

lol

cerulean roost
#

sounds like a machine problem you keep doing your thing and let the compiler people catch-up

paper wolf
#

!e (a := 3, print(a))

wise cargoBOT
paper wolf
#

one liner :3

#

its a one liner asignment easy

candid spire
#

!e (a:==== 3, print(a))

wise cargoBOT
# candid spire !e (a:==== 3, print(a))

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

001 |   File "/home/main.py", line 1
002 |     (a:==== 3, print(a))
003 |         ^^
004 | SyntaxError: invalid syntax
paper wolf
#

!e (a = 3, print(a))

wise cargoBOT
# paper wolf !e (a = 3, print(a))

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

001 |   File "/home/main.py", line 1
002 |     (a = 3, print(a))
003 |      ^^^^^
004 | SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
paper wolf
#

look

#

its error here

candid spire
paper wolf
#

you cant asign variable inside a expression

candid spire
#

!e (a := 3, print(a))

wise cargoBOT
paper wolf
#

i mean... thats what makes donut.py works

paper wolf
#

why would you do that..

#

read rules

#

also you can ask mods whos currently on the vc

candid spire
#

@cerulean roost Contact hemlock, maybe he can grant you perms

paper wolf
#

no mod == no screen share

#

mr hemlock isnt here tho

#

sometimes chris goes here

#

?

candid spire
paper wolf
#

crhis >>

#

look at the >>>

#

@cerulean roost you'll get video perms only when theres mods supervising

#

else, no vid perms

#

when mods joined

#

mostly hemlock and chris

#

but not this time

#

they're probably doing some w*rk

cyan wolf
#

@inner hill How's Going

inner hill
#

Going good

cyan wolf
#

i am also learning Ai

#

Machine Learning

inner hill
torn spire
#

@inner hill yes

torn spire
torn spire
#

your voice is not clear

#

yes

#

oh ..

iron geyser
#

Calm down 🀣 @frail sorrel

cerulean roost
#

!e

x = '' or 'Trondheim'

# Non-boolean use: we see the actual returned value
print(x)        # Trondheim  (a string, not True!)

# Boolean use: same expression, but only its truthiness matters
if '' or 'Trondheim':
    print("truthy")  # runs, because 'Trondheim' is truthy```
wise cargoBOT
cerulean roost
#

@cinder vale @sweet plume

#

@raw obsidian

#

@dry jasper πŸ‘‹

#

whiplash?

#

!e

def C():
    print("C was evaluated!")
    return True

A = True
B = False

# B is False, so Python stops there. C() never runs.
result = A and B and C()
print(result)```
wise cargoBOT
cinder vale
#

string1 = ''

if string1:
print("This is true")
else:
print("This is false")

#

!e string1 = ''

if string1:
print("This is true")
else:
print("This is false")

wise cargoBOT
cerulean roost
cinder vale
#

if string1:
    print("This is true")
else:
    print("This is false")
cerulean roost
#

@buoyant dove

#

@worldly plover hi

worldly plover
#

can i joing you guys?

cerulean roost
worldly plover
#

tbh i didn't understand it let me search for it

cerulean roost
worldly plover
#

aw but i'm just a beginner in coding using python but why not let's do it

cerulean roost
tidal wedge
cerulean roost
#

Hi @blissful spindle

#

@tidal wedge zellij

#

iterm2

#

@tidal wedge

candid spire
#

Any idea about rebase in git?

candid spire
cerulean roost
#

@upbeat oasis

#

@candid spire @upbeat oasis

short owl
#

Are you making your day positive ( self - deterimination ) @midnight agate

cerulean roost
midnight agate
#

5.6

cerulean roost
#

@midnight agate

short owl
#

ambiguity

cerulean roost
#

Zellij @midnight agate

short owl
#

building from the ground up has many benefits

cerulean roost
#

@upbeat oasis

short owl
#

help ( beer )

#

invisible ink coding

cerulean roost
stray pewter
#

!e

Κ€,Κ£=1.79175946923,1.94591014906;print(str(round(2.718281828 ** Κ€))+str(round(2.718281828 ** Κ£)))
wise cargoBOT
short owl
#

avoid verbal data collisions

#

nice your dispensing knowledge @midnight agate

cerulean roost
#

Hi @lunar crypt

lunar crypt
#

Hi @cerulean roost

cerulean roost
#

@candid spire

somber heath
#

@amber willow πŸ‘‹

amber willow
somber heath
#

@dense sail πŸ‘‹

dense sail
#

hi

#

i can’t talk

somber heath
dense sail
#

i’m not eligible yet πŸ’”

willow light
heady pilot
#

@somber heath hello, ur still here

#

ohh

#

what are u guys talking about

somber heath
willow light
#

On a scale of one to this, how bad is winter where you are, @somber heath ?

#

This is normal where I am

#

although this year we had all this in 24 hours, which is unusual

inner hill
willow light
#

Scituate, Massachusetts be like

#

What is it?5D Chess With Multiverse Time Travel the first ever chess variant with spatial, temporal, and parallel dimensions. It's the first ever chess variant with multiverse time travel!

Features

  • Sharpen your tactics by solving a collection of multiverse chess puzzles.
    • Practice against four different AI personalities, each with different stre…
Price

$11.99

Recommendations

7977

somber heath
#

@quaint kindle πŸ‘‹

somber heath
#

@hardy glade πŸ‘‹

hardy glade
#

Hi opal

somber heath
#

@warm bluff πŸ‘‹

undone frost
obsidian dragon
paper wolf
#

a... it looks AI generated

#

variables on MD???

#

ello opal

#

πŸ—£οΈ "back in the days"

obsidian dragon
somber heath
#

@lapis aurora πŸ‘‹

obsidian dragon
#

dead headset

obsidian dragon
somber heath
#

@fierce veldt πŸ‘‹

cinder vale
candid spire
#

Hi

cerulean roost
somber heath
#

@sacred path πŸ‘‹

sacred path
#

hi

cerulean roost
cinder vale
#

while, for, if elif, else

candid spire
somber heath
#
if ...:
    ...```
#

Compound statement.

#
for i in range(3):
    ...```
cerulean roost
#

... == placeholders

sacred path
#

if age > 18 and has_id == True:

#

expression

cinder vale
#

compound statement

#

within 2 expression

sacred path
#

compound expression (5 + 3) * 2
A compound expression is formed by combining multiple sub-expressions using operators (like +, -, or and). It still results in a single final value
Compound Statements
Examples: if, for, while, try, and def.
A compound statement contains and controls other statements

cerulean roost
sacred path
cerulean roost
#

dunder methods:

cinder vale
#

The Boolean operator "not" is able to invert the Boolean value of an object.

rough tapir
#

Hello πŸ‘‹

sacred path
#

x = 10 + 20
Expression: 10 + 20 (Code that must be calculated).
Result: It evaluates to the value 30.
Object: A memory slot is allocated to hold the integer 30, and x points to it.
An actual instance of data stored in memory.

cinder vale
#

An object is one value.
An expression is code that produces one value.

cerulean roost
#

Hi @manic copper

#

Hi @upper spear

cinder vale
#

These have (Boolean value?) lower priorities than comparison operators; between them, not has the highest priority and or the lowest, so that A and not B or C is equivalent to (A and (not B)) or C

somber heath
cerulean roost
rough tapir
#

"When in doubt, print it out" - OpalMist

cerulean roost
rough tapir
#

< >

#

=

#

<=

#

==

cinder vale
#

These have (and and or operators) lower priorities than comparison operators; between them, not has the highest priority and or the lowest, so that A and not B or C is equivalent to (A and (not B)) or C

rough tapir
#

!=

candid spire
#

Arithmetic operation are numeral operation in this case

cinder vale
#

Boolean operators like and, or, and not are evaluated after comparison operators like ==, <, >, >=, etc.
But among the Boolean operators themselves, Python evaluates not first, then and, then or.

somber heath
#
print(1 + 2 * 3)```
cerulean roost
#

Hi @slender sierra welcome! feel free to ask any questions

candid spire
#

!e

print(1 + 2 * 3)
wise cargoBOT
cinder vale
#

*, @, /, //, %

Multiplication, matrix multiplication, division, floor division, remainder [6]

+, -

Addition and subtraction

cerulean roost
candid spire
#

!e

print((1 + 2) * 3)
wise cargoBOT
slender sierra
rough tapir
#

print(1+(3*2)/2%2)

candid spire
#

!e

 
print(1+(3*2)/2%2)
wise cargoBOT
cerulean roost
sacred path
#

AI BOOM BOOM easy @cerulean roost

candid spire
cerulean roost
#

!e

for A in [True, False]:
    for B in [True, False]:
        for C in [True, False]:
            print(A, B, C, "->", not A and not B or C)```
wise cargoBOT
latent jay
#

Hi gus

#

hi guys

#

what are you doing

sacred path
#

CODE

latent jay
#

data structure and algorithm

cerulean roost
#

Hi @latent jay welcome, we're reading here:

rough tapir
#

It is making all combination and checking the boolean condition at the last.

#

A is false, B is False, and C is True. in First Case.

somber heath
#

!e py import itertools for a, b, c in itertools.product([True, False], repeat=3): result = not a and not b or c print(f"not {a} and not {b} or {c} ->", result)

wise cargoBOT
# somber heath !e ```py import itertools for a, b, c in itertools.product([True, False], repeat...

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | not True and not True or True -> True
002 | not True and not True or False -> False
003 | not True and not False or True -> True
004 | not True and not False or False -> False
005 | not False and not True or True -> True
006 | not False and not True or False -> False
007 | not False and not False or True -> True
008 | not False and not False or False -> True
latent jay
#

If both of the conditions are True the result will return True. But if one condition is False it will return False

rough tapir
#

Readble to human eyes now.

cerulean roost
candid spire
#

!e

a,b,c = True, True, True 
print(a and (b and c))
  
cinder vale
#

Mental note - slow is fast

wise cargoBOT
#

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

001 |   File "/home/main.py", line 1
002 |     if a and
003 |             ^
004 | SyntaxError: invalid syntax
candid spire
#

!e

a,b,c = True, True, False 
print(a and (b and c))
wise cargoBOT
somber heath
#

!e py a = b = c = True print(a, b, c)

wise cargoBOT
somber heath
#

!e py a, b, c = True, False, True print(a, b, c)

wise cargoBOT
rough tapir
#
True and True = Always True
Everything Else false.

True or False = True
False or True = True
remaining False

If Maths is correct.

candid spire
#

!e

a,b,c = True, True, False 
print(a or (b and c))
wise cargoBOT
candid spire
#

!e

a,b,c = True, True, False 
print((b and c) or a)
wise cargoBOT
rough tapir
#

If there's a False/True on 'or' it will always return True.

candid spire
#

This is what goes on

#

left to right

#

for "or"

#

it stops the moment it find true

#

for "and"
it stops the moment it find false

candid spire
wise cargoBOT
rough tapir
#

I believe python focuses more on the Boolean Operator than the Evaluation.

candid spire
wise cargoBOT
rough tapir
#

Imagine a huge Boolean Expression to solve it might take time evalutaing each one of them. It is just quick to just short circuit.

cinder vale
#

!e a,b,c =True, True, False
print( b or a or c)

wise cargoBOT
cerulean roost
#

!e

a,b,c =True, True, False
print( b or a or c) ```
wise cargoBOT
somber heath
#

!e ```py
class Foo:
def bool(self):
raise Exception("I was booled.")

foo = Foo()

if True or foo:
print("Hello, world.")```

wise cargoBOT
somber heath
#

!e ```py
class Foo:
def bool(self):
raise Exception("I was booled.")

foo = Foo()

if False or foo:
print("Hello, world.")```

wise cargoBOT
# somber heath !e ```py class Foo: def __bool__(self): raise Exception("I was bool...

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 7, in <module>
003 |     if False or foo:
004 |                 ^^^
005 |   File "/home/main.py", line 3, in __bool__
006 |     raise Exception("I was booled.")
007 | Exception: I was booled.
candid spire
#

!e

x = 5

if x > 10 and x / 0 > 1:
    print("Hello")
wise cargoBOT
somber heath
#

!e ```py
class Foo:
def bool(self):
raise Exception("I was booled.")

foo = Foo()
print(False or foo)```

wise cargoBOT
cerulean roost
#

Hi @rocky island welcome

somber heath
#

!e ```py
class Foo:
def bool(self):
raise Exception("I was booled.")

foo = Foo()
print(True or foo)```

wise cargoBOT
rough tapir
#

!e

x = 11

if x > 10 and x / 0 > 1:
    print("Hello")```
cerulean roost
#

Hi @rare yew welcome!

rare yew
#

hi

rocky island
rough tapir
#

It is evaluating after it's True

cerulean roost
rocky island
candid spire
#

!e

x = 11

if x / 0 > 1 and x > 10:
    print("Hello")
wise cargoBOT
# candid spire !e ```py x = 11 if x / 0 > 1 and x > 10: print("Hello") ```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     if x / 0 > 1 and x > 10:
004 |        ~~^~~
005 | ZeroDivisionError: division by zero
rough tapir
#

!e

x = 11

if x > 10 or x / 0 > 1:
    print("Hello")

cinder vale
#

false and ZeroDifError, false

rough tapir
cinder vale
#
non_null = string1 or string2 or string3
non_null
'Trondheim'
candid spire
#

!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.

cinder vale
#
string1, string2, string3 = '', 'Trondheim', 'Hammer Dance'
non_null = string1 or string2 or string3
non_null
'Trondheim'
candid spire
#

!e

wise cargoBOT
#
Missing required argument

code

cinder vale
#

!e```py
string1, string2, string3 = '', 'Trondheim', 'Hammer Dance'
non_null = string1 or string2 or string3
non_null
'Trondheim'

wise cargoBOT
rare yew
rough tapir
#

Operator > Evaluation

cerulean roost
#

Hi @tiny ingot welcome we're reading from:

candid spire
#

!e

x = 11

if x < 10 or x / 0 > 1:
    print("Hello")
wise cargoBOT
# candid spire !e ```py x = 11 if x < 10 or x / 0 > 1: print("Hello") ```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     if x < 10 or x / 0 > 1:
004 |                  ~~^~~
005 | ZeroDivisionError: division by zero
candid spire
#

!e

x = 11

if x > 10 or x / 0 > 1:
    print("Hello")
wise cargoBOT
cinder vale
#

ok im back

rough tapir
#

!e

x = 11

if x > 10 or x / 0 > 1:
    print("Hello")
candid spire
#

use it again

rough tapir
#

!e

x = 11

if x > 10 or x / 0 > 1:
    print("Hello")
wise cargoBOT
cerulean roost
somber heath
#

!e py print("a" < "b")

wise cargoBOT
cerulean roost
#

!e

print(ord('A'), ord('a'
))```
wise cargoBOT