#voice-chat-text-0

1 messages ยท Page 156 of 1

cinder dawn
#

TRULY

#

@lunar haven what are u doing mr.fek

somber heath
#

It's so low that it strains credulity.

#

But nature be weird.

gentle flint
somber heath
#

Polygamy. Many spouses or many legs? You decide!

#

Bigamy would be two legs, yes

gentle flint
#

dolly

viscid lagoonBOT
#

an organizational principle in which items which arrive first are the first to be processed and released, especially used in inventory accounting and computer science

lavish rover
#
ASUS Global

Zenfone is an extraordinary smartphone that combines stylish design with the latest high-end components and software. Take superb quality photos, play the latest mobile games on the go, and much more, with a phone that truly sets you apart from the crowd.

viscid lagoonBOT
#
Wikipedia Search Results

LIFO
Look up LIFO in Wiktionary, the free dictionary. LIFO may refer to: FIFO and LIFO accounting, in accounting Stack (abstract data type), in computing,

Lifo (magazine)
LIFO (pronounced La-ee-fo) is a Greek weekly free-press/city guide published by DYO DEKA and distributed in selected spots in Athens and Thessaloniki.

vocal basin
#

!e

print("\n")
print(r"\n")
wise cargoBOT
#

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

001 | 
002 | 
003 | \n
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     print(r'\')
003 |           ^
004 | SyntaxError: unterminated string literal (detected at line 1)
somber heath
#

That they were an elephant in disguise!

vocal basin
#

escaping the closing quote is an exception

#

!e

print(r"\"")
wise cargoBOT
#

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

\"
frozen owl
#

heya

#

i was reading a json file using rust and idk how to turn unicode to chars in rust

#
use std::fs::File;
use std::io::{self, Read};

fn main() -> io::Result<()> {
    // Open the binary file
    let mut f = File::open("./src/net/net.nnue")?;

    // Read the contents of the file into a buffer
    let mut buffer = Vec::new();
    f.read_to_end(&mut buffer)?;
    println!("{:?}", buffer);
    Ok(())
}

#

is there like a chr() for rust?

vocal basin
#

String::chars

frozen owl
vocal basin
viscid lagoonBOT
vocal basin
frozen owl
frozen owl
vocal basin
#

then use .chars() on the string

frozen owl
#

eli5

vocal basin
# frozen owl what is the "buffer"?

example from read_to_string docs:

use std::io;
use std::io::prelude::*;
use std::fs::File;

fn main() -> io::Result<()> {
    let mut f = File::open("foo.txt")?;
    let mut buffer = String::new();

    f.read_to_string(&mut buffer)?;
    Ok(())
}

here, buffer is String

cinder dawn
#

@lunar haven ICE CREAMMM

somber heath
#

"I'm not hurting myself."
@zenith radish You're fooling exactly one person.

vocal basin
cinder dawn
#

i had a chicken burger yesterday

frozen owl
vocal basin
frozen owl
vocal basin
#

then handle them separately

frozen owl
frozen owl
cinder dawn
#

IT WAS WITH KEPTCHUPP

somber heath
#

They're videos of @zenith radish.

#

Mind you, I'd probably be worse, left to my own devices.

cinder dawn
#

all jobs near me are hiring for seniors

#

how can i get 5 years of experience in a week

somber heath
#

Food, piercings. Food, piercings. Hmmmm.

rugged root
#

Shish kebabs

somber heath
#

Release it?

#

Gofek, no.

#

Just find a tree outside somewhere, let it slide up into it, job done.

cinder dawn
#

oops

#

@rugged root i sell phones

#

for a living

#

yes

#

for apple stuff

#

and if u want like basic but up to date shit

#

like none of the fancy stuff

#

get the iphone se

somber heath
#

@gentle flint I call you oof.

#

Or verboof.

cinder dawn
#

yeah thats uderstandable

somber heath
#

Plome remains weird for me.

cinder dawn
#

only selling point iphones have is that they have the worlds best security

rugged root
#

Fair

cinder dawn
#

on android u can get a virus from the app store

#

but iphone its physically impossible to get anything harmful

rugged root
#

Not my usual concern

somber heath
rugged root
#

One of the things I'm looking for is long term support

#

Like OS updates or what have you

somber heath
#

"You...ungh...you're a Python year old, if you think that's what all the big tech corporations are doing, what fucking drugs are you on?" An imagining.

zenith radish
somber heath
#

It wasn't meant to be you.

rugged root
#

I'm leaning toward the newer pixel phones

somber heath
#

"Give me some." as addendum.

rugged root
#

Since I have a Pixel 5 anyway

somber heath
#

Now it's about you.

cinder dawn
rugged root
#

The 6's were less than stellar I heard

#

Haven't heard any complaints about the 7

cinder dawn
#

like so far ive heard nothing

#

its battery is amazing and has 10 cores

amber raptor
#

MKBHD put out a video shitting on the Pixel for updates making them worse.

rugged root
#

I know that was the case for 6

gentle flint
cinder dawn
#

@lunar haven too much maths :((

whole bear
#

ok

#

what college are you in man

#

what is E in problem 2

vocal basin
#

how does the original question look like?

whole bear
#

I guess E(x) is 1.5 or what

vocal basin
#

that's a choice function

#

!d math.comb

wise cargoBOT
#

math.comb(n, k)```
Return the number of ways to choose *k* items from *n* items without repetition and without order.

Evaluates to `n! / (k! * (n - k)!)` when `k <= n` and evaluates to zero when `k > n`.

Also called the binomial coefficient because it is equivalent to the coefficient of k-th term in polynomial expansion of `(1 + x)โฟ`.

Raises [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") if either of the arguments are not integers. Raises [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") if either of the arguments are negative.

New in version 3.8.
vocal basin
#

5!/(i!(5-i)!)

#

!e

from math import comb
print({i+comb(5,i) for i in range(5)})
wise cargoBOT
#

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

{1, 6, 9, 12, 13}
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [1, 6, 12, 13, 9]
002 | [3, 6, 12, 15]
003 | 
004 | {12, 6}
005 | {1, 3, 6, 9, 12, 13, 15} 7
006 | {1, 13, 9} 3
whole bear
#

u didn't call the func

vocal basin
#

number of permutations is just factorial

#

!e

from math import factorial
print(factorial(10))
wise cargoBOT
#

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

3628800
vocal basin
#

!e

from datetime import timedelta
print(timedelta(weeks=6).total_seconds())
wise cargoBOT
#

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

3628800.0
vocal basin
#

same number

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

E[X] = 1.5
tender yew
#

no permissions

vocal basin
#

why this form specifically?

#

doesn't generalise

#

!e

print(sum([i for i in range(300)]) / 2)
wise cargoBOT
#

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

22425.0
vocal basin
#

you can't have 22425 expected when you flip 300 coins

#

the way parameter is used is wrong

#

why this formula?

#

wher does it come from?

#

it's correct only by accident

#

!e

n = 3
print(n / 2)
wise cargoBOT
#

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

1.5
vocal basin
#

.5 on each flip

#

it's just n/2, and n=3 in this case

#

E[Y] is 7

#

for one dice it's 3.5

#

ah

#

then, yes, need to compute

#

!e

from statistics import mean
print(mean(i * j for i in range(1, 7) for j in range(1, 7)))
wise cargoBOT
#

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

12.25
vocal basin
#

there is no tuple

#

mean is just sum/len

#

also

#

!e

print(3.5 ** 2)
wise cargoBOT
#

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

12.25
cosmic lark
#

Mean is just avg

vocal basin
#

same thing

#

yes

vocal basin
cosmic lark
#

When will india have regional discord pricing aaahahahhaha

#

Can't steal long from turkey

vocal basin
#

!e

from random import randint
from statistics import mean
print(mean(randint(1, 6) * randint(1, 6) for _ in range(100_000)))
wise cargoBOT
#

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

12.20923
vocal basin
#

for some reason I thought it'd be closer to the accurate answer

cosmic lark
#

!e

print("๐Ÿ‘ฃ")
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

๐Ÿ‘ฃ
cosmic lark
#

Good

vocal basin
#

!e

print(49/4)
wise cargoBOT
#

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

12.25
vocal basin
#

average for one dice is (1+6)/2

#

which is 7/2

#

square of that is 49/4

#

@lunar haven this is where 49/4 comes from

cosmic lark
#

!e

print("โˆš64 == 8 โœ“")
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

โˆš64 == 8 โœ“
cosmic lark
#

!e

print(64**0.5)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

8.0
cosmic lark
#

UwU

vocal basin
#

(min+max)/2 for uniform distribution
also, you can sum all and divide

#

!e

print((1+2+3+4+5+6)/6)
wise cargoBOT
#

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

3.5
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [1, 2, 3, 4, 5, 6, 2, 4, 6, 8, 10, 12, 3, 6, 9, 12, 15, 18, 4, 8, 12, 16, 20, 24, 5, 10, 15, 20, 25, 30, 6, 12, 18, 24, 30, 36]
002 | E[Y] = 12.25
vocal basin
cosmic lark
#

!e

import matplotlib as mlp

print(mlp)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

<module 'matplotlib' from '/snekbox/user_base/lib/python3.11/site-packages/matplotlib/__init__.py'>
fleet dew
#

wohoo

vocal basin
vocal basin
vocal basin
#

!e

from random import randint
from statistics import mean
print(mean(randint(1, 6) for _ in range(100_000)))
wise cargoBOT
#

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

3.49387
vocal basin
#

average for one dice is 7/2

#

E[AB]=E[A]E[B]
for independent variables A and B

#
1 2 3 4 5 6
    ^       not average
     ^          average
#

3 is closer to 1 than to 6

#

it's a dice

#

there is no 0

#

1+6
2+5
3+4

#

middle of each pair is 7/2

#

@lunar haven this has nothing to do with two dices

#

only one dice

#
(1 + 2 + 3 + 4 + 5 + 6) / 6
(1 + 6 + 2 + 5 + 3 + 4) / 6
((1 + 6)/2 + (2 + 5)/2 + (3 + 4)/2) / 3
(7/2 + 7/2 + 7/2) / 3
7/2
wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | E[X] = 1.5
002 | E[Y] = 12.25
003 | E[X + Y] = 13.75
vocal basin
#

Aโ‰กB (mod C)
means
(A-B) mod C = 0

wise cargoBOT
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True
002 | False
003 | False
vocal basin
#

applying mod to both sides is equivalent to that, yes

vocal basin
#

belong to the same equivalence class

#

(with the equivalence classes induced by (mod C))

#

(A-B)%C==0

wise cargoBOT
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True True
002 | False False
003 | False False
cinder dawn
#

hello

#

i heard my name

vocal basin
#

prove for 0 or 1

cinder dawn
#

ur still working on thst same problem

vocal basin
#

prove that, if it's true for n, it's true for n+1

#

those two steps are enough to prove for all positive (or non-negative) integers

#

then start with 1

#

it generally works with any starting point

#

induction

vocal basin
#

you can't really code that in Python, I think

#

but you can check values

#

in a certain way

#

!e

n1 = 426
n2 = n1 + 1
assert (n1 * (n1 + 1) // 2) ** 2 + n2 ** 3 == (n2 * (n2 + 1) // 2) ** 2
wise cargoBOT
#

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

[No output]
vocal basin
#

oh wow

#

it worked

wise cargoBOT
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1 1
002 | 9 9
003 | 36 36
004 | 100 100
005 | 225 225
006 | 441 441
007 | 784 784
008 | 1296 1296
vocal basin
#

repeat for all values of n1 starting from 1

#

you don't need to re-do the sum

#

you can accumulate it

#

this will bring python solution closer to induction

#

!e

current = 0
for n in range(1, 9):
    current += n ** 3
    print(current, (n * (n + 1) // 2) ** 2)
wise cargoBOT
#

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

001 | 1 1
002 | 9 9
003 | 36 36
004 | 100 100
005 | 225 225
006 | 441 441
007 | 784 784
008 | 1296 1296
vocal basin
#

sum for n-1 at the start of an iteration
sum for n before print and at the end of an iteration -- current sum

#

!e

from itertools import accumulate
for n, current in enumerate(accumulate(i ** 3 for i in range(1, 9)), 1):
    print(current, (n * (n + 1) // 2) ** 2)
wise cargoBOT
#

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

001 | 1 1
002 | 9 9
003 | 36 36
004 | 100 100
005 | 225 225
006 | 441 441
007 | 784 784
008 | 1296 1296
vocal basin
#

!e

import numpy as np
n = np.arange(1, 9)
print((n ** 3).cumsum())
print((n*(n+1)//2)**2)
wise cargoBOT
#

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

001 | [   1    9   36  100  225  441  784 1296]
002 | [   1    9   36  100  225  441  784 1296]
vocal basin
#

cumulative sum

#

(accumulate)

vocal basin
#

TeX

#

it's from 50 years ago

#

latekh

vocal basin
#

I use self-hosted overleaf

#

no, you can't, because it's server-side

#

can't render TeX in browser yet

#

you'd need, like, 5GB of storage
and who know how much RAM in addition to that

vocal basin
#

@midnight agate
thing acquired

vocal basin
#

I'm listening to some sound and trying to figure out wth is even happening in it

whole bear
#

Hi

vocal basin
#

no, it's not corrupted

wind roost
#

hello

#

its going good

#

yea

#

do you guys have any resources on how to use python projects for security

vocal basin
#

what kind of security?

wind roost
#

like back end soc work taking in data and encrypting within systems stuff like that

vocal basin
#

so, first thing to get out of the way:
it's probably better to avoid ever implementing any encryption algorithms in Python
(Python isn't the language they belong to)

#

does !resources have anything security-themed?

#

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

vocal basin
wind roost
#

thanks what lang should i look into for stuff like that specifically in the google env

vocal basin
#

most of the encryption is done in C (and equivalents thereof)

#

but

#

encryption algorithms are often used in other languages (which use C extensions of some form)

#

and knowing how to use (not implement) encryption in those languages is important too

wind roost
#

alright thank you and have a good evening

wind raptor
#

๐Ÿ‘‹

viscid lagoonBOT
#

conduct an interview in television, newspaper, and radio reporting

vocal basin
#

can but wouldn't

#
current += 1 if A[i - 1] < A[i] else 1 - current
#

though

#

that's twice

#

but in another place

#

so, not, can't really do that there, I guess

wind raptor
#

!stream 272071537475977217

wise cargoBOT
#

โœ… @limpid sparrow can now stream until <t:1688089365:f>.

vocal basin
#

@midnight agate

slate mulch
#

hmm I am suppressed

vocal basin
#

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

vocal basin
#

operator.parrot
operator.__parrot__

#

@wise cargo ๐Ÿฆœ
^ would this syntax be postfix unary operator?

#

or is mention acting as a decorator for the parrot?

#

!d decorator

wise cargoBOT
#

A function returning another function, usually applied as a function transformation using the @wrapper syntax. Common examples for decorators are classmethod() and staticmethod().

The decorator syntax is merely syntactic sugar, the following two function definitions are semantically equivalent:

def f(arg):
    ...
f = staticmethod(f)

@staticmethod
def f(arg):
    ...
```...
vocal basin
#

would this be reverse Indonesian notation then?

#

||๐Ÿ‡ต๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฉ||

#

3.10? 3.9?

#

!d match

wise cargoBOT
#

8.6. The match statement

New in version 3.10.

The match statement is used for pattern matching. Syntax:


match_stmt   ::=  'match' subject_expr ":" NEWLINE INDENT case_block+ DEDENT
subject_expr ::=  star_named_expression "," star_named_expressions?
                  | named_expression
case_block   ::=  'case' patterns [guard] ":" block
```...
vocal basin
#

3.10

#

what even was added in 3.1

#

this too

#

actually, quite a lot of things

#

sounds funnier if cropped like this

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
vocal basin
#

@midnight agate
revisiting something from leetcode to celebrate the release of Python 3.1 from 14 years ago
||```py
from itertools import combinations_with_replacement

class Solution:
def subsets(self, nums: List[int]) -> List[List[int]]:
return set(map(tuple, map(set, combinations_with_replacement(nums, len(nums))))) | {()}

#

yes

#

a what

#

!d itertools.pairwise

wise cargoBOT
#

itertools.pairwise(iterable)```
Return successive overlapping pairs taken from the input *iterable*.

The number of 2-tuples in the output iterator will be one fewer than the number of inputs. It will be empty if the input iterable has fewer than two values.

Roughly equivalent to:

```py
def pairwise(iterable):
    # pairwise('ABCDEFG') --> AB BC CD DE EF FG
    a, b = tee(iterable)
    next(b, None)
    return zip(a, b)
```...
wind raptor
#

@midnight agate I muted you because we were listening to music and ads from you lol. Let me know when you're back

vocal basin
#

TIL meet-in-the-middle works with A*

wind raptor
#

No worries

vocal basin
#
LeetCode

Can you solve this real interview question? Open the Lock - You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rotate freely and wrap around: for example we can turn '9' to be '0', or '0' to be '9'. Each move consists of turning one wheel one slot.

Th...

opal cedar
#

Hey

#

I donโ€™t have permission to talk @lunar haven

vocal basin
#

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

shut garden
#

const TOKEN = process.env.TOKEN;

#

@whole bear

#

.env file should have
TOKEN = [YOUR TOKEN]

whole bear
#

aleady do

wind raptor
#

!stream 1116606405516988427

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1688097767:f>.

feral pumice
#

bro

#

don't commit node_modules

#

๐Ÿ˜ญ

vocal basin
#

though
I almost managed to fail writing meet-in-the-middle even without introducing A*

wind raptor
#

!stream 1116606405516988427

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1688099161:f>.

shut garden
#
// Register command modules
client.registry
  .registerDefaultTypes()
  .registerGroups([
    { id: 'ping', name: 'Ping' },
  ])
  .registerDefaultGroups()
  .registerDefaultCommands()
  .registerCommandsIn(path.join(__dirname, 'commands'));
#

@whole bear

#

const path = require('path');

shut garden
#
class PingCog {
  constructor(client) {
    this.client = client;
  }
  handlePingCommand(message) {
     const start = Date.now();
    message.reply('Pinging...').then((sentMessage) => {
      const latency = Date.now() - start;
      sentMessage.edit(`Pong! Latency: ${latency}ms`);
    });
  }
  init() {
    this.client.on('message', (message) => {
      if (message.content === 'ping') {
        this.handlePingCommand(message);
      }
    });
  }
}

module.exports = PingCog;
wind raptor
#
// Require the necessary discord.js classes
const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = require('./config.json');

// Create a new client instance
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
feral pumice
#

@lavish rover what's this .ae language?

cinder dawn
#

webjesus did not hold back

lavish rover
#

aecor

feral pumice
#

oh nice

cinder dawn
#

@whole bear can u not undo

bright shoal
#

I am trying to solve this but unable to do so. can someone help

def calculate_storage(filesize):
block_size = 4096
# Use floor division to calculate how many blocks are fully occupied
full_blocks = ___
# Use the modulo operator to check whether there's any remainder
partial_block_remainder = ___
# Depending on whether there's a remainder or not, return
# the total number of bytes required to allocate enough blocks
# to store your data.
if partial_block_remainder > 0:
return ___
return ___

print(calculate_storage(1)) # Should be 4096
print(calculate_storage(4096)) # Should be 4096
print(calculate_storage(4097)) # Should be 8192
print(calculate_storage(6000)) # Should be 8192

i did this but not getting the required output
def calculate_storage(filesize):
    block_size = 4096
    # Use floor division to calculate how many blocks are fully occupied
    full_blocks = filesize // block_size
    # Use the modulo operator to check whether there's any remainder
    partial_block_remainder = filesize % block_size
    # Depending on whether there's a remainder or not, return
    # the total number of bytes required to allocate enough blocks
    # to store your data.
    if partial_block_remainder > 0:
        return block_size * 2
    return filesize

print(calculate_storage(1))    # Should be 4096
print(calculate_storage(4096)) # Should be 4096
print(calculate_storage(4097)) # Should be 8192
print(calculate_storage(6000)) # Should be 8192
warped raft
#

would anyone like to join

#

hope in if yes

gentle flint
#

no

whole bear
#

somebody want to play chess ?

wind raptor
#

@ionic ferry Tauri?

ionic ferry
#

@wind raptor Yes

#

i like it

wind raptor
#

Yeah! I love it

#

It's way better than Electron

ionic ferry
#

i am making crossplatform apps with small build files and less resources

whole bear
#

i've invited u

wind raptor
#

Yeah the file sizes are amazing

ionic ferry
#

but i am not using rust too much

#

but i want to

#

@whole bear Damn man, good for you

whole bear
#

i joined

wind raptor
#

Yeah, you can do most of it in HTML, CSS and JS. The part that runs the app in Rust is only 10 lines

ionic ferry
#

ikr

wind raptor
#

But if you wanted to do some backend stuff in the app, you can do it in rust

ionic ferry
#

@wind raptor Yeah, i am learning as much as i do

vocal basin
#

everything is just an upgraded version of usenet

orchid mauve
lucid blade
whole bear
#

now i have to go

#

๐Ÿ˜ƒ

rugged root
cinder dawn
#

hello

rugged root
#

Yo

cinder dawn
#

@lucid blade they are most likely shooting their coffee shots and leaving them out to react with oxygen before serving

#

just tell them steam the milk first or pour the water before the shot

lucid blade
#

ahhh it was horrible

#

i should just save my money and buy a machine

rugged root
#

You mean like dedicated server hardware specifically?

orchid mauve
lucid blade
whole bear
#

what up bois ๐Ÿ—ฟ

rugged root
#

@analog quarry This one

analog quarry
rugged root
#

Testing something on my end

analog quarry
#

@rugged root Awesome! Thanks!

uncut meteor
#

httpx

rugged root
uncut meteor
#
import asyncio
import shutil
import time
from pathlib import Path

import aiofiles
import httpx

OUT_DIR = Path("./pokemon")

if OUT_DIR.exists():
    if input("delete existing `./pokemon` directory to start tests? yes/no ").lower() in "yes":
        shutil.rmtree(OUT_DIR)

def download_and_save(client, pokemon_id: int) -> None:
    r = client.get(f"https://pokeapi.co/api/v2/pokemon/{pokemon_id}")
    r.raise_for_status()

    with open(OUT_DIR / f"{pokemon_id}.json", mode='wb') as file:
        file.write(r.content)


async def async_download_and_save(client: httpx.AsyncClient, pokemon_id: int) -> None:
    r = await client.get(f"https://pokeapi.co/api/v2/pokemon/{pokemon_id}")
    r.raise_for_status()

    async with aiofiles.open(OUT_DIR / f"{pokemon_id}.json", mode='wb') as file:
        await file.write(r.content)


async def main_sequential():
    for pokemon_id in range(1, 152):
        download_and_save(httpx, pokemon_id)


async def main_sequential_connection_pooling():
    with httpx.Client() as client:
        for pokemon_id in range(1, 152):
            download_and_save(client, pokemon_id)


async def main_async_sequential():
    async with httpx.AsyncClient() as client:
        for pokemon_id in range(1, 152):
            await async_download_and_save(client, pokemon_id)


async def main_concurrent():
    async with httpx.AsyncClient() as client:
        tasks = set()

        for pokemon_id in range(1, 152):
            download_task = asyncio.create_task(async_download_and_save(client, pokemon_id))
            tasks.add(download_task)

        await asyncio.gather(*tasks)


def _run(func, name):
    OUT_DIR.mkdir()
    start_time = time.perf_counter()
    asyncio.run(func())
    print(f"- {name:<35} {time.perf_counter() - start_time:.3} seconds")
    shutil.rmtree(OUT_DIR)
    time.sleep(5)  # Rate limit


_run(main_sequential, "sequential")
_run(main_sequential_connection_pooling, "sequential (connection pooling)")
_run(main_async_sequential, "sequential (async)")
_run(main_concurrent, "concurrent")
#
- sequential                       21.7 seconds
- sequential (connection pooling)  3.44 seconds
- sequential (async)               3.45 seconds
- concurrent                       0.96 seconds
#
from abc import ABC
from dataclasses import dataclass
from functools import wraps
from typing import TypeVar, Callable


class Event(ABC): ...


@dataclass
class ClickEvent(Event):
    x: int
    y: int


@dataclass
class MoveEvent(Event):
    vx: int
    vy: int


TEvent = TypeVar("TEvent", bound=Event)
TEventHandler = Callable[[TEvent], None]


class EventHandler(ABC):
    handlers: set["EventHandler"] = set()

    def __new__(cls, *args, **kwargs) -> "EventHandler":
        new_instance = super().__new__(cls)
        cls.handlers.add(new_instance)
        return new_instance

    @classmethod
    def send_event(cls, event: Event) -> None:
        for handler in cls.handlers:
            handler._on_event(event)

    def _on_event(self, event: Event) -> None:
        # get appropriate handlers by type definition then "SEND IT!"
        ...
        


def on_event(event_type: type[TEvent]) -> Callable[[TEventHandler], None]:
    @wraps
    def inner(f):
        return f()

    return inner


class ExampleManager(EventHandler):
    def __init__(self, value: int):
        self.value = value

    @on_event
    def on_click(self, click: ClickEvent) -> None:
        print("click!!", self.value)

    @on_event
    def any_name(self, move: MoveEvent) -> None:
        print("move!", self.value)


h1 = ExampleManager(5)
h2 = ExampleManager(10)
EventHandler.send_event(ClickEvent(1, 2))
EventHandler.send_event(MoveEvent(2, 3))
EventHandler.send_event(ClickEvent(4, 5))
#

client

import socket

s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect("./temp")

s.send(b"Hello World")

server

import socket

s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.bind("./temp")

while True:
    s.listen(1)
    conn, addr = s.accept()

    print(conn.recv(1024))

    conn.close()
rugged root
#

@plush island What's up? What's your question?

uncut meteor
#

had a work call

#

cya later

rugged root
#

@plush island Can you post your quesiton in here? I'm not always available. And you might want to use a pastebin since the output is so large: https://paste.pydis.com

plush island
cinder dawn
#

@somber heath france?

plush island
#

how do i get there?

#

raw code

#

like save it as a txt file

uncut meteor
wind patio
#

why can't i speak in voice chat 0??

vocal basin
#

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

wind patio
#

Thak you @vocal basin

#

Thank you

plush island
#

its worked

#

how do i know if it actually worked?

rugged root
#

@lilac notch Check out the #voice-verification channel, that'll tell you what you need to know about the voice gate

lilac notch
#

@rugged root thank you ๐Ÿ™‚

cinder dawn
#

whos this abt

rugged root
#

Co-worker of his

cinder dawn
#

ohh

plush island
#

if ai had to sort people there would be alot of people working in the shit room in star trek

rugged root
#

That would be me

plush island
#

@amber raptor that shows good till like the last season

plush island
whole bear
#

@rugged root what r u guys doing?

lucid blade
#

Grusch says he's going to testify in public hearings sometime in July

#

`As I walked by the dockside one evening so rare
To view the still waters and take the salt air
I heard an old fisherman singing this song
Oh take me away boys, my time is not long

Chorus (after each verse):
Dress me up in my oilskins and jumper
No more on the docks Iโ€™ll be seen
Just tell my old ship-mates Iโ€™m taking a trip, mates
And Iโ€™ll see you someday in Fiddlersโ€™ Green

Oh Fiddlersโ€™ Green is a place Iโ€™ve heard tell
Where the fishermen go if they donโ€™t go to Hell
Where the weather is fair and the dolphins do play
And the cold coast of Greenland is far, far away

Where the skyโ€™s always clear and thereโ€™s never a gale
Where the fish jump on board with a swish of their tail
Where you lie at your leisure, thereโ€™s no work to do
And the skipperโ€™s below making tea for the crew

When you get back in dock and the long trip is through
Thereโ€™s pubs and thereโ€™s clubs and thereโ€™s lasses there too
Where the girls are all pretty and the beer is all free
And thereโ€™s bottles of rum growing from every tree

Oh I donโ€™t want a harp nor a halo, not me
Just give me a breeze and a good rolling sea
And Iโ€™ll play my old squeezebox as we sail along
With the wind in the rigging to sing me the song`

plush island
lucid blade
plush island
#

lol

lucid blade
#

๐Ÿ˜„

#

yey! party time ๐Ÿ˜„

cinder dawn
somber heath
#

A mooncake (simplified Chinese: ๆœˆ้ฅผ; traditional Chinese: ๆœˆ้ค…) is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival (ไธญ็ง‹็ฏ€). The festival is about lunar appreciation and Moon watching, and mooncakes are regarded as a delicacy. Mooncakes are offered between friends or on family gatherings while celebrating the festival. The ...

lucid blade
cinder dawn
#

is that real

#

i dont believe you

#

u ever watch jurassic park?

rugged root
#

Love that movie

cinder dawn
dapper mist
#

Did you say Tears of The Kingdom? Zelda?

rugged root
#

!stream 474677613886177281

wise cargoBOT
#

โœ… @topaz jackal can now stream until <t:1688147011:f>.

lucid blade
restive cypress
#

Okay

#

What we doing

#

Oh and it ash by the way

#

Kinda

#

All of them

#

Iโ€™m new to python

#

Your good

#

I just know English

#

Python is another language

#

๐Ÿ‘

cinder dawn
#

@lunar haven burger?

#

like

#

fried

#

i like you

#

oh really

#

ill make sure not to talk abt food then

#

is it for a practice

#

yeah

opal cedar
#

Hey, I'm sorry I don't have permission to talk

cinder dawn
wise cargoBOT
#
Voice verification

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

cinder dawn
#

:))

#

more algos today?

#

fek

wise cargoBOT
#

@lunar haven :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 15
002 |     return p[i]
003 |     ^^^^^^^^^^^
004 | SyntaxError: 'return' outside function
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 2, 3]
whole bear
#

yes

high nimbus
#

weeeehaawww

whole bear
#

yooooooooo

#

sup

high nimbus
#

yeeehawww

#

I don't have premession to talk

#

what kind of empire is this

whole bear
#

same

high nimbus
#

@lunar haven

#

fix my script

#

aaa nah

#

kkkk

#

that's 4 k s u dumb

#

happy to help

#

it's interchangeable

#

sometimes u r npc and sometimes u r the protagonist

#

ur stream is freezed

#

I only see MIT OCW page

#

u r sharing ur browser Ig

cinder dawn
#

got food ๐Ÿ”

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 2, 3]
cinder dawn
#

LETS GOO

#

ur gonna be disappointed

#

well

#

fish and chips

#

๐Ÿ™‚

#

ia good fish

high nimbus
#

how do I write in a code block

cinder dawn
#

u could do email phishing

high nimbus
#

that's a multi line comment don't fool me bruh

#

i'm kidding thatnks

eager ridge
#

hi

#

i do math

#

badly

high nimbus
#
def is_permutation_sorted(p):
    for sublist in p:
        if sublist == sorted(sublist):
            return sublist
    return None

def main():
    permutations = [[2, 3, 1], [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]]
    result = is_permutation_sorted(permutations)
    if result is not None:
        print(result)
    else:
        print("No sorted permutation found.")

if __name__ == "__main__":
    main()


eager ridge
#

clearly im not the creator of bitcoin

high nimbus
#

shatuse nakamuto

#

nakote shatamusu

eager ridge
#

shithouse nakedmute

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 2, 3]
high nimbus
#

I can't see ur text editor

#

only the OCW MIT INTRO TO ALGORITHMS COURSE

#

4 screens?

#

u 4 eyed

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 2, 3]
eager ridge
#

do you really need discrete mathematics for this course?

eager ridge
#

my discrete mathematics course in college was really shitty so

#

thirdie problems

high nimbus
#

omegalul

fossil void
#

k

indigo lion
#

how to get vc perms

wise cargoBOT
#
Voice verification

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

indigo lion
#

ok

#

what are you guys doing

surreal sparrow
#

enabling my mic

leaden fractal
#

hi

#

i have some questions and therefore i am here

#

is it okay if i ask you?

supple quail
#

yeah

indigo lion
#

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

supple quail
#

!voice

leaden fractal
#

so there's this guy on discord giving me a program that has "cool" stuff to do. however im unsure if hes just trying to rat my pc. if ur down i can dm you the python code for the program and you can check if its safe?

#

'

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

leaden fractal
#

open sites which could be dangerous?

#

thats what i mean

#

ok

thick prawn
velvet tartan
#

lil uzi vert

cinder dawn
#

autotune rap

#

wii store vibes

vocal basin
#

different behaviour if i == 0

#

> circular dependency
what the hell

cinder dawn
#

jesus christ

#

jump scare

indigo lion
#

yse

indigo lion
#

what are you guys doing

cinder dawn
#

i was doing clash of code

indigo lion
#

dont have vc perms

indigo lion
cinder dawn
#

until the problems became too cryptic and my knowledge of algos ran out

indigo lion
#

what are algos

cinder dawn
#

algortisthms

#

algorithms

indigo lion
#

nice

cinder dawn
#

COC

indigo lion
#

I just started learning

#

need someone to practice wih

#

prob like pyweek

cinder dawn
#

its like

#

leetcode

#

but multiplayer

#

basically

hollow plover
#

what is going on

cinder dawn
#

u go into a game with 9 people

indigo lion
#

no idea

cinder dawn
#

and u all got a problem

#

u got 15 mins and the questions arent extremely long

#

they can be cryptic asf tho

indigo lion
#

I just figured out how to make return functions

hollow plover
indigo lion
#

idk where you like

#

wait I'm gonna show you guys

hollow plover
#

Just learned functions yeah im assuming

cinder dawn
#

go for it dude

indigo lion
#

like this I think ' def this_function(x):
u = x + 7
return u

y = this_function(5)
print(y)

cinder dawn
#

three of them

#

its next to the "1" key

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

12
hollow plover
#

Hey it works!

indigo lion
#

the return thing

#

?

#

Idk I just tried addinf function, but then I realized I can't and that it doesn't work, so I found another method

#

cus It's fun

#

adding numbers with a function

cinder dawn
#

doesnt have to be for anything if it helps them understand

indigo lion
#

Idk what I should do

#

cus I dont know if, else and elif statements yet

#

give me an example of an if statement so I can understand it better

#

for what is it used

#

for

#

the if statements

cinder dawn
#

imma get going for work but have a goodnight or afternoon or morning man @lunar haven

indigo lion
#

ok

#

can you like add a while true statement to it

#

nice

#

afk

#

`ape = int(input("Are you a monkey?:"))

if ape >= 69:
print("You are indeed an ape")` tried it myself

#

gonna try

#

`while True:

ape = int(input("Are you a monkey?:"))

if ape >= 69:
    print("You are indeed an ape")

elif ape < 69:
    print("Not a monkey")

else:
    print("Existence is pain")`
#

ok

#

But I still dont know how to do these while true loops,

#

gonna look it up on yt

#

ok

#

so it woudln't stop

#

so if it already had an answear it's gonna ask me if I'm an ape again?

#

ok

#

nice

#

so I need to add brake at the end

#

ok

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

:warning: Note: input is not supported by the bot :warning:

001 | What is your age?Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     age = input('What is your age?')
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | EOFError: EOF when reading a line
#

@whole bear :x: Your 3.11 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 true: print('d')
004 |           ^^^^
005 | NameError: name 'true' is not defined. Did you mean: 'True'?
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[2, 3, 4, 8, 9]
indigo lion
#

for what do you use float( , int( and str(

#

datatype

#

so if you want your height to be 193.4 you need to float("height is"+ number)

#

wait imma make an example

#

but if you only can show whole numbers and you want to show a decimal number do you need to use float on it

wise cargoBOT
#

@whole bear :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

2.0
indigo lion
#

x = float("60.69)

#

so you can't do x = ("6.3)

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

0.30000000000000004
indigo lion
#

I will be

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

6.3
indigo lion
#

ok hold on

#

!e age = float(input("what is your age"))
print("you are"+ str(age) +"years old")

#

I meant height

#

oops

wise cargoBOT
#
Format-strings

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

indigo lion
#

thank's

#

bro it's 1 am gonna go sleep soon

#

enough learning for today I think

#

thank's for the help cya

whole bear
#

sup boys

#

u still streaming @lunar haven

#

u are the true definition of
eat sleep code repeat

high wren
#

Yo

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[2, 3, 4, 8, 9]
kindred basin
#

sup

#

can u link me that site

#

i cant unmute yet lol

#

ty

#

@lunar haven u tryna learn DS and algos?

ebon mesa
#

supsup

#

cant talk yet XD

#

yall know how to use pandas? im hard stuck on an assignment and need a push in the right direction

#

fk man

#

big stuck XD

#

ill hit you with scrn shot quick its literally the most stupid error -.-\

#

1st one my code

#

second top one my output

elfin bone
#

can anyone help me with python?

#

i got a question

#

def Myage():
return Myage
result = Myage
print(result)

#

so basically im a bit new but, im trying to try def and return

#

and im telling it to return myage and i said myage = 11 (i forgot to include that in my message)

vocal basin
#

!e

def Myage():
    return Myage
result = Myage
print(result)
wise cargoBOT
#

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

<function Myage at 0x7fde8e0f84a0>
elfin bone
#

<function Myage at 0x0000015C4BE387C0>

#

?

vocal basin
#

first, you're not calling the function anywhere

#

second, the function returns itself

elfin bone
#

yes

#

i want it to

#

repeat what i said

#

do u know

#

?

#

!e def Myage():
return Myage
result = Myage
print(result)

wise cargoBOT
#

@elfin bone :white_check_mark: Your 3.11 eval job has completed with return code 0.

<function Myage at 0x7f836baa84a0>
vocal basin
elfin bone
#

i want it to return the # 11

#

which is what myage stands for

#

!e Myage = 11
def Myage():
return Myage
result = Myage
print(result)

wise cargoBOT
#

@elfin bone :white_check_mark: Your 3.11 eval job has completed with return code 0.

<function Myage at 0x7f47c3a8c680>
vocal basin
elfin bone
#

can u show me the fixed version if u may

#

so i can see what it looks like

#

i started python like

#

2 days ago

vocal basin
#

!e

year = 2023

def get_year():
    return year

print(get_year())
wise cargoBOT
#

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

2023
rare tulip
#

is that what u wanted?

elfin bone
#

ohhh

#

wait

#

what does

#

input("age?" do

elfin bone
#

what does input ("age?" do

vocal basin
#

which is returned as a string (text)

rare tulip
#

^

elfin bone
#

dont u only put str if ur combinining it into a string with something

vocal basin
elfin bone
#

oh

vocal basin
#

str objects can be, for example, converted into int if you want to use them as numbers later

elfin bone
#

ohh

#

ok wait

#

what does python help us with

#

i mean like

#

me being able to return an input of text

#

and asking it questions

#

can i actually make things

#

or does this help me

#

learn other languages

vocal basin
#

there's quite a lot of things python can do, besides just taking input and converting it
https://docs.python.org/3/tutorial/index.html

rare tulip
#

@vocal basin do you by any chance know anything about discord.py? trying to get this thing to work and it feels like im going in circles lol

vocal basin
#

is it about discord.ext.commands things?

#

(I mostly know only the core discord part of the package)

rare tulip
#

its about sending a message when the bot is kick from vc.... i put everything in #1124511097731428392

elfin bone
#

wait

#

def Myage():
age = input("11")
print("My age is: "+str(age()

Myage()

#

what am i missing?

#

!p def Myage():
age = input("11")
print("My age is: "+str(age()

Myage()

wise cargoBOT
#
Bad argument

Converting to "int" failed for parameter "pep_number".

#
Command Help

!pep <pep_number>
Can also use: get_pep, p

Fetches information about a PEP and sends it to the channel.

elfin bone
#

!e def Myage():
age = input("11")
print("My age is: "+str(age()

Myage()

wise cargoBOT
#

@elfin bone :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 3
002 |     print("My age is: "+str(age()
003 |                            ^
004 | SyntaxError: '(' was never closed
elfin bone
#

im trying to make it say

#

my age is: 11

#

def Myage():
age = input("11")
print("My age is: "+str(age()

Myage()

#

wait

#

huh

#

@vocal basin can u help

#

promise i wont annoy u again

elfin bone
vocal basin
#

string inside input() is what gets displayed to the user just before taking input

rare tulip
elfin bone
#

hmmmmmm let me comprehend this

vocal basin
#

functions are at section 4.7

#

i.e. there's quite a lot of things before functions

elfin bone
#

Python tutorial for beginners full course
#python #tutorial #beginners
โญ๏ธTime Stampsโญ๏ธ
#1 (00:00:00)โ€‹ Python tutorial for beginners ๐Ÿ
#2 (00:05:57โ€‹) variables โœ˜
#3 (00;17;38โ€‹) multiple assignment ๐Ÿ” 
#4 (00:20:27โ€‹) string methods ใ€ฐ๏ธ
#5 (00:25:13โ€‹) type cast ๐Ÿ’ฑ
#6 (00:30:14โ€‹) user input โŒจ๏ธ
#7 (00:36:50โ€‹) math functions ๐Ÿงฎ
#8 (00:40:58...

โ–ถ Play video
#

im watching this 12 hour video

#

for my learning

#

is that a good way

vocal basin
elfin bone
#

ok thanks alisa

rare tulip
elfin bone
#

ok @rare tulip i swear one last question

#

!e def Myage():
age = input("Age? ")
print("My age is: "+int(age))

wise cargoBOT
#

@elfin bone :warning: Your 3.11 eval job has completed with return code 0.

[No output]
elfin bone
#

def Myage():
age = input("Age? ")
print("My age is: "+int(age))

#

see this

rare tulip
elfin bone
#

ok so the question is,

#

why doesn't it print

#

def Myage():
age = input("Age? ")
print("My age is: "+int(age))

#

ok so basically

#

im telling it to print

#

my age is: 11

#

where do i put 11

#

def Myage():
age = input("Age? ")
print("My age is: "+str(age))

rare tulip
#

!e py def Myage(): age = input("Age? ") print("My age is: " + str(age))

wise cargoBOT
#

@rare tulip :warning: Your 3.11 eval job has completed with return code 0.

[No output]
rare tulip
#

one sec

#

oh

#

i got it

#

!e py def Myage(): age = input("Age? ") print("My age is: " + str(age)) Myage()

wise cargoBOT
#

@rare tulip :x: Your 3.11 eval job has completed with return code 1.

:warning: Note: input is not supported by the bot :warning:

001 | Age? Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     Myage()
004 |   File "/home/main.py", line 2, in Myage
005 |     age = input("Age? ")
006 |           ^^^^^^^^^^^^^^
007 | EOFError: EOF when reading a line
elfin bone
#

huh

rare tulip
elfin bone
#

oh

#

so how do i put it so age is 11

rare tulip
#

it will ask u in terminal

elfin bone
#

because i want it to def and return

#

!e def Myage():
age = input("Age? ")
print("My age is: " + str(age))
Myage()

wise cargoBOT
#

@elfin bone :x: Your 3.11 eval job has completed with return code 1.

:warning: Note: input is not supported by the bot :warning:

001 | Age? Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     Myage()
004 |   File "/home/main.py", line 2, in Myage
005 |     age = input("Age? ")
006 |           ^^^^^^^^^^^^^^
007 | EOFError: EOF when reading a line
rare tulip
#

watch i'll ss one sec

elfin bone
#

my result is: Age?

#

def Myage():
age = input("Age? ")
print("My age is: " + str(age))
Myage()

rare tulip
elfin bone
#

im using free version of phycharm

#

idk why its returning "16"

rare tulip
#

maybe this might make it easier

elfin bone
#

is it broken

#

or am i wrong

rare tulip
#

1 sec

#

bro im slow holy

#

alr its fine

#

u got it

elfin bone
#

so pycharm is broken

rare tulip
#

so now when u run the code, in ther terminal click on "age?"

rare tulip
elfin bone
#

wait so

#

is it wrong

#

im very confused

rare tulip
#

here i send some screenshots

elfin bone
#

ok thanks

#

do u also use pycharm

rare tulip
#

u can type anything basically next to age

#

because its your input

#

and the code takes your input and outputs to the way u code it

elfin bone
#

def Myage():
age = input("Age? 11 ")
print("My age is: " + str(age))
Myage() ------------------------- can u show an example

#

i added 11

#

like can u modify it

#

so i can see

#

what ur referring to

#

sorry i am quite new

#

to python

#

i only did lua and i wasen't so good

rare tulip
#

so once u got this.. you dont touch this because its fine... whatever it outputs.. u can type next ot that output

rare tulip
elfin bone
#

i am doing what ur doing and its returning age it's not even returning my age is

#

it's just returning "age"

#

i mean age?

#

it's returning age?

rare tulip
#

u should be able to type

elfin bone
#

ohhhhhhhh

rare tulip
#

works now?

elfin bone
#

**print("My age is: " + (str(age))
^
SyntaxError: '(' was never closed

Process finished with exit code 1**

#

def Myage():
age = input("Age? ")
print("My age is: " + (str(age))
Myage()

rare tulip
#

remove the "(" infront of str

#
def Myage():
    age = input("Age? ")
    print("My age is: " + str(age))
Myage()```
elfin bone
#

it returned Age? and I put in 11

#

but it didn't print my age is:

rare tulip
#

screenshot ur code

elfin bone
rare tulip
#

๐Ÿ˜‚

elfin bone
#

oh

#

shit

#

so sorry

rare tulip
#

nah youre fine

elfin bone
#

so so sorry

#

ok thanks so much dude

#

u rock

rare tulip
#

yeah no problem

elfin bone
#

@rapid crown i vote this guy 10/10

#

hes great

#

@rapid crown

#

@rapid crown

rare tulip
#

๐Ÿ˜‚

elfin bone
#

@rapid crown

#

have a good day sir/ma'am

#

im going to go work on blender now

#

u rock

#

thanks so much

rare tulip
elfin bone
#

u invested 20 minutes into me thats really nice

#

maybe even 430

#

30

#

i didnt count

rare tulip
#

nah its fine, everyone starts somewhere.. if i needed help i would want someone to help me

elfin bone
#

very very true

#

thanks sir

rare tulip
#

no problem, have a great rest of your day

elfin bone
#

u too sir

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 2, 3, 4, 5, 6, 7, 9]
lost gorge
#

hello guys

lost gorge
#

Hi

#

learning python)

#

now I trying split my project

#

sorry 1 sec

#

never did it before

#

you see I have import

#

but not working

#

I mean VS showing:
"bot_token" is not definedPylancereportUndefinedVariable

#

Blowing up my brain

#

fixed

#

Im idiot

#

bot = telebot.TeleBot(config.bot_token)

#

xD

#

what are you doing? @lunar haven

#

I see website

#

lectures

#

Good. You having fun?

#

What? My English not so good

#

Oh I got you

#

๐Ÿ˜ฆ

#

sorry

urban bronze
#

hi

#

sorry, I don't speak English, I'm using translator

#

jajaxd

lost gorge
#

what lang do you speak?

#

can you hear me?

urban bronze
#

my English is very bad

#

Spanish

#

yes

lost gorge
#

Im Russian. Speak English little bit)

#

@lunar haven you hear me?

#

Sometime have same problem. Dont worry

#

Feel happy to speak with other language peoples!

#

Happy kid 27 y.o

#

I have my own discord channel named "Accidev one of the smartest peoples on Earth!" xD

#

Its joke ๐Ÿ˜„

fossil void
#

hello

#

i cant speak

#

sorry

#

what re u doing

#

?

#

is the guy who was in Brooklyn 99

#

?

#

a serie

#

do you code for living ?

#

or hobby

#

i mean if its your work

#

you were the guy who is having a test or im wrong

#

?

#

@lunar haven

#

test of programing

#

o something

#

idk

#

maybe

#

i have to sleep

#

if you like office you are gonna like it too

#

im beginner in python some tips from you as a experts on subject

#

but you are experience

austere lava
#

do problems

fossil void
#

thanks

lost gorge
#

@lunar haven How to get video verification?

fossil void
#

someone miss yahoo

#

?

#

ajajajajaj

#

xd

#

hahahahah

wind patio
#

lol

fossil void
#

lol=League of Legends

wind patio
#

oh really
didn't know that

fossil void
#

sorry it was ==

#

int (lol)

#

x=input("League of Legends")

lost gorge
#

how lol can be int its str

fossil void
#

it can be

#

maybe not

#

you say

#

what do you think about bootcamps ?

lost gorge
#

I think at home better

#

I need babysitter

#

For me

fossil void
#

i got a friend who learned code by bootcamps and now he is manager

fossil void
lost gorge
#

sure

#

@slender sierra ciao

fossil void
#

hallo

#

i think is ciao

#

italian guy

lost gorge
#

The Pythonic sank when it hit an cycled imports.

#

@wind patio

wind patio
#

lol

lost gorge
#

My first Eng joke

wind patio
#

i prevent cyclic imports tho

lost gorge
#

The Titanic sank when it hit an iceberg

fossil void
#

what are you talking about sorry for my poor level in code

#

poor people

lost gorge
#

๐Ÿ˜ 

#

just kidding

fossil void
#

SS

lost gorge
#

Gofec you didnt understand my joke, I sent you example with titanic

#

pythonic sound close

wind patio
#

haha
you have explain your joke

#

this is sad

fossil void
#

please

#

xd

wind patio
#

@slender sierra

lost gorge
#

xD

fossil void
#

True

lost gorge
#

False

fossil void
#

not False == True

wind patio
#

"False" == True