#voice-chat-text-0

1 messages · Page 897 of 1

primal yacht
#

.

brave steppe
#

But that changed nothing, the only thing you did was make self positional only

amber raptor
#

N44.28.45.87 E38.01.39.95

quaint wharf
#

!e

class Option:
  def __init__(self, name, choices, role):
    self.name = name
    self.choices = choices
    self.role = role

op = Option("Option1",31,"admin")
template_fn = lambda option: f"{option.name} info: There are {option.choices} choices available if your are a {option.role}"

print(template_fn(option=op))
print(template_fn(op))
wise cargoBOT
#

@quaint wharf :white_check_mark: Your eval job has completed with return code 0.

001 | Option1 info: There are 31 choices available if your are a admin
002 | Option1 info: There are 31 choices available if your are a admin
primal yacht
#

because in a class's __init__, it is assumed the instance will be passed the self

quaint wharf
primal yacht
#

If it was not allowed, dict(self=404) would be a TypeError due to self being provided multiple times

amber raptor
#

It's Black Sea

#

it's right off the coast

#

I blew up that water really good!

quaint wharf
primal yacht
#
Help on class dict in module builtins:

class dict(object)
 |  dict() -> new empty dictionary
 |  dict(mapping) -> new dictionary initialized from a mapping object's
 |      (key, value) pairs
 |  dict(iterable) -> new dictionary initialized as if via:
 |      d = {}
 |      for k, v in iterable:
 |          d[k] = v
 |  dict(**kwargs) -> new dictionary initialized with the name=value pairs
 |      in the keyword argument list.  For example:  dict(one=1, two=2)
 |  
--- snip ---
amber raptor
#

No seriously, I virtually blew it up, I was reading from being virtual pilot

woeful salmon
#

i personally hate writing stuff

#
  • my handwriting sucks
amber raptor
#

I prefer it and it's mostly just numbers

frigid shard
primal yacht
#
>>> def a(a, **b): print((a,), b)
... 
>>> a('foo', bar='baz')
('foo',) {'bar': 'baz'}
>>> a('broke', a='really broke')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: a() got multiple values for argument 'a'
quaint wharf
#

gonna go

#

bye

amber raptor
#

From last mission

rugged root
#

Who's got two thumbs and forgot to factor in the vacation time into scheduling his psychiatrist appointment?

pallid carbon
#

whey there so many people innit

rugged root
#

Lots of people just wanting to hang out

amber raptor
#

and yes, frequencies feed into our VoiP system

rugged root
#

And or put off doing work

amber raptor
#

so if you not on right frequency, you can't hear anyone else

pallid carbon
amber raptor
woeful salmon
#

i wanna play a chill slow paced coop game like raft or the forest

#

but all my friends have child-like sleeping schedules

#

they sleep at 9

amber raptor
#

I have enough Russian Paper tanks screwing up a perfectly good game, I don't need to add warthunder to my list

primal yacht
amber raptor
#

The Kliment Voroshilov (KV) tanks are a series of Soviet heavy tanks named after the Soviet defence commissar and politician Kliment Voroshilov who operated with the Red Army during World War II. The KV tanks were known for their heavy armour protection during the early stages of the war, especially during the first year of the German invasion o...

#

there was ton of blueprints but it never worked

#

where is Germans/Americans/British tend to set their bad ideas on fire and never speak of them

amber raptor
#

where is Rabbit and Hemlock

warm flicker
#

Epic

whole bear
#

any ctf player here?

#

yo

#

;-;

#

hj

#

h

#

h

#

h

minor crow
#

hi

#

hi

#

im just trying to get my messages up

#

hi

#

ih

#

ikh

#

someone give me an idea to make with python thats not stupidly advanced

#

pls

woeful salmon
#

i'mma go sleep now

#

gnight

primal yacht
#

@brave steppe your root directory needs to be inside of a parent package ...

brave steppe
#

In my case it is, I have wumpy which is my project directory

#

Inside of that I have wumpy the actual folder installed into Python

#

Then I have interactions, and inside that I have components/commands

primal yacht
#
./__init__.py
./<project_root>/libname.py
#

kinda like that

#

It's weird, I know

#
print('/a/b/__init__.py')
import bx

from ... import __init__ as ax

del ax
del bx
```Also fails on `....` which I tried first (and `..` which I tried last) ... both while directly executing the `<root>/<a>/<b>/__init__.py` file
#

So apparently I guess this is to deny jumping outside of the library and onto somewhere else in the computer's filesystem

#

@brave steppe ^

#
ImportError: attempted relative import with no known parent package
brave steppe
#

Yes, that depends on which file you run

primal yacht
#

lemme add a new file and test

primal yacht
#

so starting from inside will require __init__.py up the tree while starting at the root of the tree does not

#

(root = project root)

brave steppe
#

gonna eat ice cream :3

shy elk
#

can you help me with this code

honest pier
#

just send it as text

shy elk
#

int main () {
     int array[11]  = {1,1,2,2,2,3,3,3,3,5}, count =0 , n=10;
     int array2 [10];
     for (int i = 1; i < count; i++)
     {
         array[i] = array2[i];
     }
     
      for (int i = 1; i < n; i++)
      {    
          for (int j = 1; j < n; j++)
          {
             if (array[i] == array[j])
             {
               count++;
             }
          }
      }
    printf("the count of duplicated elements is : %d", count);  
}
honest pier
#

wrong server, but whatever. what's the issue

shy elk
#

count a total number of duplicate elements in an array

honest pier
#

oh i see an issue. the first element in an array is array[0], not array[1]

shy elk
#

i changed it

honest pier
#

cool

shy elk
#

it returned 28

vivid palm
#

hi pub

shy elk
#

hi

honest pier
shy elk
honest pier
#

cool

#

what's the point of your first for loop btw

shy elk
#

to compare every two pairs to sum the duplicates

honest pier
#

your first for loop

shy elk
#

to loop through the array

#

i found it

#

the second loop should start from i+1

warm flicker
#

hello

vocal raven
#

hey

warm flicker
#

what are you guys talking about

vocal raven
#

so much shit lol

warm flicker
#

lol

noble copper
#

@vocal raven it's a brainwave state experienced when super engaged in an activity like gaming. The problem is establishing that state, because most things are not intrinsically fun

molten pewter
noble copper
#

human multitasking is like multithreading in python

celest mantle
#

Multitasking for humans is overrated. The state of "flow" is where it's at.

fierce summit
#

hi

celest mantle
#

True. So you work more than 8 hours but don't reveal that.

fierce summit
#

does someone work with linux here?

haughty pier
#

Would a mod please move me into VC0?

#

nevermind, half of everyone just left...

vocal raven
fierce summit
#

yeah

#

hi

#

sorry for not talking

#

I'm just struggling with linux

vocal raven
#

explain more about this linux issue

fierce summit
#

HaskellPlatform-8.6.5-core-x86_64-setup.exe

celest mantle
ebon cradle
molten pewter
#

cat /etc/*release

fierce summit
#

GHCI

vocal raven
#

cat /etc/*-release

ebon cradle
#

wget -qO- https://get.haskellstack.org/ | sh

vocal raven
fierce summit
fierce summit
#

$ sudo apt-get install haskell-platform

vocal raven
#

apt list --installed

celest mantle
fierce summit
#

scratch

#

scratch 3.0

#

scratch 3.20.1

celest mantle
silver roost
#

hello everyone

vocal raven
#

hi

#

whatsup

silver roost
#

strangely i cant verify myself for vc yet

#

aparently ive not sent 50 messages or been online in 3 ten min blocks

vocal raven
#

you also have to be active for a few days or something

silver roost
#

yeh i have

#

this what it said
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:

• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.

vocal raven
#

weird dont know

silver roost
#

well im gonna try tko be online for that 3 10 min blocks

#

but im new to coding got python 3.9 latest update

#

i need help to start my coding im very new

vocal raven
#

what have you tired

silver roost
#

well nothing yet

vocal raven
#

just google tutorials to try

#

you only learn by trying

fierce summit
celest mantle
#

Look at this one in a rural area getting electricity from the sky wires.

fierce summit
#

villamos = tram

#

sz

#

s

#

s = sshh

#

a á b c cs d dz dzw e é f g gy h i í j k l ly m n ny o ó ö ő p q r s sz t ty u ú ü ű v w x y z zs

#

busz = bus

#

vonat = train

#

Danube

#

Duna

#

metró = underground

celest mantle
#

villamos targonca

fierce summit
celest mantle
#

Brainfuck is an esoteric programming language created in 1993 by Urban Müller.Notable for its extreme minimalism, the language consists of only eight simple commands, a data pointer and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply require...

fierce summit
#

Eger

#

egér

mint mulch
#

hello guys

celest mantle
#

Hello.

mint mulch
celest mantle
mint mulch
celest mantle
mint mulch
#

I need to write 50 messages 😅

fierce summit
# fierce summit

so this is the Castle of Eger, which was buit way before the 16th century

#

@celest mantle

#

And it's a quite famous castle here in Hungary

#

there is a novel about it too

celest mantle
#

What is that novel about?

fierce summit
#

It's about the time when we fought against the people from Turkey

celest mantle
#

Does it come in English?

mint mulch
#

spain?

celest mantle
mint mulch
#

oh ok

celest mantle
fierce summit
mint mulch
celest mantle
mint mulch
celest mantle
mint mulch
celest mantle
mint mulch
celest mantle
mint mulch
mint mulch
celest mantle
fierce summit
#

szia

mint mulch
celest mantle
mint mulch
celest mantle
mint mulch
#

specially nlp is cool.

celest mantle
celest mantle
brave steppe
#

@wintry pier your mic is unmuted and we can hear your mouse-clicks

mint mulch
#

usually I only use colab, but probably if you need a gpu you can rent one in the aws or gcp.

wintry pier
#

☝️

mint mulch
#

I also got to play with the transformers lib...

celest mantle
celest mantle
mint mulch
#

But If you wanna learn colab is enough.

mint mulch
#

codex is closed beta now, so it's free if you've access.

celest mantle
celest mantle
brave steppe
#

Ahhhhhhhhh, I might as well go to sleep. Goodnight 👋

mint mulch
#

cya

celest mantle
eager ocean
#

hi

#

wait we are in vc 0

#

Aw man I dont have voice verifcation

#

dam

#

wait we are in it

#

right

pallid wing
#

lol

#

didn't mean that

lone sleet
#

now we here

eager ocean
#

ye

#

I use to have it but I left the sever

#

ye

#

so what u up to?

pallid wing
#

im going to make history on the graph and thats all that matters, "The guy who sold a digital duck for a dollar"

lone sleet
#

ima go to sleep at 10

eager ocean
#

oh ok

pallid wing
#

: )

#

I did.

lone sleet
#

oh gosh

pallid wing
#

none left to buy

#

1 week

#

ill just keep buying lol

lone sleet
#

who likes roblox

pallid wing
#

to make a profit I just need to sell all of them for 0.10$

#

so its not too bad

#

depends

#

I loved the pokemon... but uh

eager ocean
#

I play it once and a while

lone sleet
#

2005

pallid wing
#

Lawsuit

lone sleet
#

lego game

eager ocean
#

nice

#

pokemon brick bronze

lone sleet
#

yes

eager ocean
#

sad:(

lone sleet
#

i hate roblox for that

eager ocean
#

no

#

I think there is

lone sleet
#

do u like bed wars

eager ocean
#

no

lone sleet
#

didymon

#

i love the gameboy

#

gtg

#

bye

eager ocean
#

bye

lone sleet
#

i frend u guys

#

bye

eager ocean
#

I tihkn your is gltiched

#

nevermide

#

ye

#

ye

#

yay

#

ohh I found the coopy of pokemon in roblox

#

Loomian Legacy

#

it way to close to it

#

Catt and Gaming buddhist

#

wait Gaming buddhist are u buddhist?

pallid wing
#

Aurora
Catt (me)
CrimsonBe7
Professionalwindowlicker
solim

wind raptor
eager ocean
#

I am starting high school next year

#

I am trying to aplly to tj

#

I think it is the best high school in american

#

thomas jefferson high school

#

lol

#

it 10 bucks

#

candy crush?

#

how is this not illegal

pallid wing
#

lol

eager ocean
#

bye

lofty radish
#

are you guys talking in the VC i cant hear no one

#

anyone*

stoic grail
#

@haughty pier im voice verified

#

@haughty pier what is nix os?

fair cloud
#

gotta get my messages rip

lofty radish
#

hello freshbbq

fair cloud
#

How's it goin mate?

lofty radish
#

mean

fair cloud
#

to be able to use vc you need to do a bunch of messages

lofty radish
#

yep same here... i been here less than 3 days so i can to vc

#

cant

fair cloud
#

Also anyone here know how I'd go about scraping data from a website locked away by a google login?

#

Darn :((

#

I've been here a while but never chatted much

lofty radish
#

ask aaron on chat 1

#

he might be able to help idk

fair cloud
#

vc 1?

lofty radish
#

yeah

fair cloud
#

thx

cinder vector
#

hi @dapper heron

dapper heron
#

@cinder vector hi

#

@celest junco

whole bear
#

anyone willing to help me with argparse and oop in code help

stoic grail
#

hello! @whole bear

whole bear
#

wait

stoic grail
#

heh?

whole bear
#

mic not work

stoic grail
#

Same

#

hello

#

yes i can hear you

#

Nah my mic is physically disabled

#

lol

#

Which language?

#

im also learning pyhon rn ,sorry

slow latch
#

Hi

#

i cant speak

woeful salmon
#

what're ya doing xD

slow latch
#

uh nothing

woeful salmon
#

same xD i'm supposed to be moving rn but heavy rain

slow latch
#

have a nice day

#

cya

woeful salmon
#

bye

stoic grail
#

hewwo:p @woeful salmon

#

what ya doin?

#

anaconda/ eh?

#

are you a hackerz?

#

hehe

#

*fades away8

#

fades away

woeful salmon
stoic grail
#

i'm happy i just made my first project in python :).

#

an weight convertor

#

lol

#

Like lbs to kg

#

and kg to lbs

#

what is anaconda btw if you are free? @woeful salmon

#

Oh

#

Where are you from? your accent kinda seems fimiliar,lol

#

ayyy saammme

#

lol

#

idk,lol

#

LOL

stoic grail
#

Lol yeah

#

Were they ur friend?

#

ohhhh

#

lol lemme see

#

Lol he closed i

#

it

strange eagle
#

hi

stoic grail
#

@woeful salmongtg now cya :<

#

or should i stay in da call?

#

i'm just gonna waste ur time

#

like im doin rn

#

seems like you are busy

agile burrow
#

nope not me

stoic grail
agile burrow
#

idk how to get permission

#

to talk

stoic grail
#

@woeful salmon I'm 13 i don't have an phone.lol

woeful salmon
#

look at voice veification channel abaove voice chat

stoic grail
#

please repeat

#

oh ye

stoic grail
real fjord
#

@woeful salmon yes iam indian.. u might have got that in the DP

stoic grail
#

Lol

real fjord
#

@woeful salmon 😅

stoic grail
#

This is more like an indian VC

#

rn

#

lol yeah

real fjord
#

can anyone help me with my code here??

#

just a sec

stoic grail
#

Ask, reaper is a professional

#

He once hacked google headquaters

#

lol

woeful salmon
#

lol i'm a web developer not a hacker though i have studied for ethical hacking for a while

agile burrow
#

sad I won't be able to talk

agile burrow
woeful salmon
#

you can after being in the server and chating for a while

real fjord
#

I = int(input())

X, A, B, C, D = list(map(int, input().split(" ")))
P, Q, R, S, T, M = list(map(int, input().split(" ")))

for i in range(I):
    cvxdosespurchased = 0
    cvsdosespurchased = 0
    covaxin_price = A
    covishield_price = C
    P = X
    while P >= covaxin_price or P >= covishield_price:
        if covaxin_price >= covishield_price:
            P -= covishield_price
            cvsdosespurchased += 1
            covishield_price = C + (cvsdosespurchased) * D
        else:
            P -= covaxin_price
            cvxdosespurchased += 1
            covaxin_price = A + (cvxdosespurchased) * B
    
    dosespurchased = cvxdosespurchased + cvsdosespurchased
    print(dosespurchased)
    
    # (Ai+ansi⋅T)modM+P
 
    A = (A + dosespurchased*T) % (M + P)
    B = (A + dosespurchased*T) % (M + Q)
    C = (A + dosespurchased*T) % (M + R)
    D = (A + dosespurchased*T) % (M + S)```
real fjord
woeful salmon
#

!code

wise cargoBOT
#

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.

woeful salmon
#

ah sorry can't help with exams / assignments 😦 rule 8

real fjord
#

it's not an exam

#

The sample input it gave is giving out the right output

#

but some random test case is giving a wrong answer

#

i want to know the test case where it might fail

#

as i am not able to find any

#

and the website is not telling me for which case is the code failing

stoic grail
#

I HAVE CHEAT HAX

agile burrow
#

?

stoic grail
#

he is 60 yo

woeful salmon
#

22

stoic grail
#

hehe

agile burrow
#

noice

stoic grail
#

Am i the youngest here?

#

eh

real fjord
#

the code after getting submitted is being given input in the backend and the output is there too... nothing is visible here

agile burrow
real fjord
stoic grail
agile burrow
#

idk python also someone teach me plz

stoic grail
#

your age?

#

]

agile burrow
#

18

stoic grail
#

eh im the youngest

#

I'm 13,lol

woeful salmon
#

why are all schools so dumb and unrealestic

agile burrow
#

why

woeful salmon
#

X A B C D I i what's with the variable names

#

lol

stoic grail
real fjord
stoic grail
#

in the vc rn

agile burrow
stoic grail
#

Like from scratch?

real fjord
#

@woeful salmon were u saying something to me??

stoic grail
real fjord
#

@woeful salmon there is a time limit... and in all other test cases the time limit is exceeding

#

but in the basic one it is giving a wrong answerr

stoic grail
#

casually ignores me

#

sad noises

#

comes back

#

happy again

agile burrow
stoic grail
#

A 13 yo teaching a 18yo ,lol

agile burrow
agile burrow
stoic grail
#

lol

cinder vector
#

Hi @stoic grail

stoic grail
#

ANOTHER INDIAN CASUALLY JOINS

woeful salmon
stoic grail
#

he told to me earlier,lol

#

yeah

agile burrow
#

where you guys from?

stoic grail
#

Lol

agile burrow
#

so am i

stoic grail
#

The VC is Captured by Indians

#

another indian joins

cinder vector
#

hi @whole bear

stoic grail
#

he's indian

#

LOL

whole bear
#

HLO

stoic grail
real fjord
#

@woeful salmon u indian??

agile burrow
#

where you guys from in India?

stoic grail
real fjord
stoic grail
agile burrow
real fjord
stoic grail
#

Lol

#

from the deep indian ocean

cinder vector
#

Where are you from

stoic grail
woeful salmon
real fjord
#

ok bois gotta go dive head first into the deep shit that is debugging

stoic grail
#

@gritty light You indian bro?

#

They left

#

why ppl leaving

gritty light
#

@stoic grail Nah I'm Malaysian

stoic grail
#

The VC was captured by indian

gritty light
#

first time here

stoic grail
stoic grail
gritty light
#

@stoic grail A little Python and C++ , I would say

gritty light
#

Just started learning Python on Sololearn not long ago, it's quite fun

stoic grail
#

@woeful salmon Why did everyone left?

#

People are weird sometimes @woeful salmon

woeful salmon
#

you should give thonny a try its gr8 for learning python

stoic grail
#

he is bak

#

oh thanks for telling

#

@woeful salmon I'm listening songs that's why im deafened :).

woeful salmon
#

how can you listen to songs when deafned

viscid lagoonBOT
#
Your 8-bit avatar

Here is your avatar. I think it looks all cool and 'retro'.

stoic grail
#

heh

#

i'm deafened on discord

#

not on spoify

#

spotify*

azure flare
#

Guys

#

May I ask

woeful salmon
#
sudo tar -xzf <file-name>.tar.gz -C /opt
woeful salmon
stoic grail
#

Can anyone please explain me Y block loop?

#

Y loop

#

@woeful salmon

#

@wind raptor can you please write what is Y loop?

#

i have a confusion

wind raptor
#

while loop

stoic grail
#

yes

gloomy vigil
#

yea

stoic grail
#

its my short form hehe

wind raptor
#

while x < 10:

gloomy vigil
#

it runs untill the condition is met

stoic grail
#

yes ik tht

wind raptor
#

while True:

stoic grail
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

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

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

stoic grail
#

!e i = 1
while i <= 5:
print(i)
i = i + 1
print("done")

woeful salmon
#

a condition is an expression that evaluates down to True or False

a while loop runs until then condition given to it evaluates to True

wise cargoBOT
#

@stoic grail :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | done
gloomy vigil
#

while 1:
will also be a infinite loop

stoic grail
#

i = 1
while i <= 5:
print(i)
i = i + 1
print("done")

#

is this an infinite one?

gloomy vigil
#

no

stoic grail
#

yea ik

#

hehe was just askin

woeful salmon
#

and while "lol": is also infinite loop because

#

its truthy

gloomy vigil
#

yea

stoic grail
#

oh

gloomy vigil
#

non-empty strings are True

stoic grail
#

yeah opalmist told ne

#

that

burnt plaza
stoic grail
woeful salmon
#

any empty container (strings, list, tuple, etc) are Falsy in python
any non-empty ones are Truthy

#

for numbers (int and float) 0 and 0.0 are Falsy everything else is truthy

stoic grail
#

ohh

#

Ima leave now cya

#

thanks for da help

gloomy vigil
stoic grail
gloomy vigil
#

dir(pynput)

#

or look at the references

#

in the docs

woeful salmon
#
pip install pynput
py -m pydoc pynput

^ might also work

cinder vector
#

Hi @somber heath

stoic grail
#

hewwo opal :p

#

🙂

#

Ya'll roasting me?

#

lol

#

opal who made u?

#

Lol

#

who programmed u?

#

boooooooooooooo

#

@somber heath say bool

#

again

#

pls

#

hehe

somber heath
#

🐵

stoic grail
#

lol

#

oki cya tg

#

gtg

woeful salmon
#
[System.Console]::BackgroundColor = "WHITE"; [System.Console]::ForegroundColor = "BLACK"; [System.Console]::WriteLine("Hello world"); [System.Console]::ResetColor()
#
Write-Output "`e[31mhello world`e[0m"```
wind raptor
#

g2g cheers!

viscid wyvern
#

test

#

Print("Help")

#

yeah i kinda wish to learn how to code

#

seems interesting

somber heath
#

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

gloomy vigil
#
def rec_hyperbola_0(k):   # x^2y=k
    x = np.arange(-(k*10), k*10, k)
    y = k/x**2
    return x, y
#
def sin():
    x = np.radians(np.arange(-360, 361, 15))
    y = np.sin(x)
    return x, y
cerulean ridge
#

y = 1./np.sin(x)

#

def cosecant():
x = np.radians(np.arange(-360, 361, 15))
y = 1/np.sin(x)
return x, y

gloomy vigil
haughty pier
#

I want these equation labels to float over the line they describe no matter what the orientation or scale, any tips?

import numpy as np 
import matplotlib.pyplot as plt

triangle = np.array([[0,0], [4,0], [4, 3]])

plt.figure()

t1 = plt.Polygon(triangle, color='red', alpha=.5)
plt.gca().add_patch(t1)
plt.xlim(triangle[:, 0].min()-.5, triangle[:, 0].max()+.5)
plt.ylim(triangle[:, 1].min()-.5, triangle[:, 1].max()+.5)
plt.text(1.85, 1.1, r'$\sqrt{4^2 + 3^2} = 5$', {'ha': 'center', 'va': 'bottom'}, rotation=31)
plt.text(4.25, 1.5, r'$3$', {'ha': 'right', 'va': 'center'})
plt.text(2, -.25, r'$4$', {'ha': 'right', 'va': 'center'})
plt.xticks([0, 2, 4])
plt.yticks([0, 2, ])
plt.grid()
plt.show()
cerulean ridge
haughty pier
#

3d one:

from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import matplotlib.pyplot as plt

fig = plt.figure()
ax = Axes3D(fig)
triangle = np.array([[0,0,0], [2,2,0], [2, 2, 1]])
triangle0 = np.array([[0,0,0], [2,0,0], [2, 2, 0]])


ax.add_collection3d(Poly3DCollection([triangle], alpha=.5))
ax.add_collection3d(Poly3DCollection([triangle0], alpha=.5, color='red'))

plt.xticks([0, 2])
plt.yticks([0, 2])
plt.xlim(triangle[:, 0].min()-.25, triangle[:, 0].max()+.25)
plt.ylim(triangle[:, 1].min()-.25, triangle[:, 1].max()+.25)
ax.set_zlim(triangle[:, 2].min(), triangle[:, 2].max()+.75)
ax.set_zticks([0, 1])
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z')
ax.text(1, -.25, 0, r'$2$' )
ax.text(2.2, 1, 0, r'$2$' )
ax.text(2, 2, .5, r'$1$' )
ax.text(1, 1, -.05, r'$\sqrt{2^2 + 2^2}$', zdir=(2,2,-.09), ha='center', va='bottom')
ax.text(
    1, 1, .07, 
    r'$\sqrt{\sqrt{2^2 + 2^2}^2 + 1^2} = \sqrt{2^2 + 2^2 + 1^2} =3$', 
    zdir=(2, 2,.57), ha='center', va='bottom')
plt.show()
cerulean ridge
#

plt.axis([-6,6, -2,2])

gloomy vigil
#

i started bar graphs two ming ago

#

and now i am done

haughty pier
gloomy vigil
#

wonder why pandas was imported

haughty pier
#

@gloomy vigil probably vestigial import from a prior version of the code - remove it and see if it works, or if it's a magic import required to make the code work.

cerulean ridge
gloomy vigil
haughty pier
queen basin
#

Hello

undone idol
#

sup

queen basin
#

Not much rn. I'm sure y'all have never heard this before 😂 but just starting out with Python. We're learning it in my intro CS class and using zyBooks for the textbook

#

As well as Thonny IDE for labs

#

So I'm chilling here rn while working on Python homework

#

Hoping to reach the message count soon so I can participate in vc cause I'll prolly need closer help eventually later in the year

queen basin
# vivid palm fun!

Thanks, yeah, it's going well so far. I think eventually I'd like to go into data analytics either soon after I graduate or, if I'm not ready for that right away, working towards that

wispy light
#

hello guys, what are you guys up to ?

#

@haughty pier How are you ? Long time no see

gloomy vigil
#
3dmpl.py:7: MatplotlibDeprecationWarning: Axes3D(fig) adding itself to the figure is deprecated since 3.4. Pass the keyword argument auto_add_to_figure=False and use fig.add_axes(ax) to suppress this warning. The default value of auto_add_to_figure will change to False in mpl3.5 and True values will no longer work in 3.6.  This is consistent with other Axes classes.
  ax = Axes3D(fig)
ebon fractal
#

linux is better than windows

#

thats wat is said everywhere

#

i use windows

queen basin
#

Hey I'd chat if I could 😂

#

Working on getting my message count up

woeful salmon
#

linux is better than windows for most things

#

but not everything

azure flare
#

any1 superfamiliar with pandas here?

woeful salmon
#

a little bit

#

!e

import sys

print(type(sys))
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

<class 'module'>
woeful salmon
#
class FooAction(argparse.Action):
     def __init__(self, option_strings, dest, nargs=None, **kwargs):
         if nargs is not None:
             raise ValueError("nargs not allowed")
         super().__init__(option_strings, dest, **kwargs)
     def __call__(self, parser, namespace, values, option_string=None):
         print('%r %r %r' % (namespace, values, option_string))
         setattr(namespace, self.dest, values)
ebon fractal
#

how advisable is rust as a first language learnt(or a beginner lang in simple terms)

woeful salmon
#

i'd say just more than c and cpp but its still a lower level language still gonna be relatively hard for beginners

mint mulch
#

hello

#

@celest mantle yo

celest mantle
mint mulch
#

I am fine, and you?

celest mantle
mint mulch
#

I just chose this nickname, because I thought it was simpler for people to remember.

#

😂

agile burrow
#

uhmm

#

nice to meet you guys

mint mulch
celest mantle
mint mulch
#

are you learning something recently?

agile burrow
#

tell me something cool?

agile burrow
mint mulch
celest mantle
agile burrow
#

what's your age?

celest mantle
celest mantle
agile burrow
#

true

mint mulch
celest mantle
celest mantle
mint mulch
agile burrow
mint mulch
#

it depends on the goal.

#

I guess some websites like codewars is useful for practice only the language.

#

But if you wanna learn some framework or create a project, so you need try something diferente.

agile burrow
#

i just want the xkeyscore

#

but will never

mint mulch
tribal tendon
#

hiª

agile burrow
#

im just person who wants someone to teach me

celest mantle
agile burrow
#

ya ig

#

im man on mission who doesn't need permission

#

lol

mint mulch
agile burrow
#

will you teach me how to code?

celest mantle
celest mantle
agile burrow
mint mulch
#

Well, I wanna learn react and I was interested to learn some desktop framework, so I was thing use both. I would like to use QT however I don't like the license.

celest mantle
celest mantle
celest mantle
agile burrow
#

im Person who wants to get his hands on xkeyscore

#

lol

celest mantle
mint mulch
#

or you mean about QT?

celest mantle
mint mulch
celest mantle
mint mulch
#

I though about flutter too, but I gave up.

celest mantle
mint mulch
#

😂

celest mantle
mint mulch
#

So if I needed I'll be prepared.

#

'-'

celest mantle
mint mulch
#

true, well I have to go now. I'm going to eat my lunch. Cya!

celest mantle
median shoal
#

is there anyone thats kinda new with pyton or coding in general thats tryna learn together or something dm me its boring to do this alone lemon_happy

amber raptor
brave steppe
#

Electron is immature??!

#

Discord is Electron

#

like-

wind raptor
burnt plaza
wind raptor
#
#
HackerRank

HackerRank is the market-leading technical assessment and remote interview solution for hiring developers. Learn how to hire technical talent from anywhere!

amber raptor
stoic grail
#

hi @skul

#

@cinder vector

cinder vector
#

Hi

stoic grail
#

How you doin?

cinder vector
#

I am fine u tell

stoic grail
#

Same

cinder vector
#

Btw i can speak in voice chat now

stoic grail
#

speak then

#

i cant hear u

#

eh speak louder

cinder vector
#

no cant speak louder

stoic grail
#

okay

regal raptor
#

zl zl

stoic grail
#

lol

stoic grail
#

afk

cinder vector
#

Hi @regal raptor

regal raptor
#

no

#

hi

#

im still not voice vefied

#

thats why i cant talk

#

lol

stoic grail
#

So which languages do you know?

regal raptor
#

programming lang or speaking?

#

speaking ik 4

stoic grail
#

programming

cinder vector
#

programming

regal raptor
#

prog ik 3

#

java c python

stoic grail
#

?

cinder vector
#

which

stoic grail
#

ohh

cinder vector
#

ohk

stoic grail
#

Mastered?

regal raptor
#

mm you can say yes i guess

stoic grail
#

What's your age?

regal raptor
#

im learning in the hebrew university

#

im 22

stoic grail
#

Oh

cinder vector
#

oh

stoic grail
#

lol

regal raptor
#

rank 91 in the world lol and 24 in math

stoic grail
#

i'm a kid for you

cinder vector
#

i also

stoic grail
regal raptor
#

what?

stoic grail
#

rand 91 in what?

#

rank

regal raptor
#

go check the shanghai ranking list

#

in general

#

91

stoic grail
#

oh you mean you are in a good university>?

regal raptor
#

yh?

#

idk if its a good number

#

91

#

but atleast rank 24 in math

stoic grail
#

91 in state or country?

regal raptor
#

which is good

#

state

#

lol

stoic grail
#

It is your rank or ur university rank?

regal raptor
#

univ..

cinder vector
#

oh

stoic grail
#

oh nice

#

lol

regal raptor
#

idk if its a good number

#

x.d

#

91

stoic grail
#

I'm a kid for u,lol

regal raptor
#

but atleast 24 in math

#

which is so good

stoic grail
#

yeah

stoic grail
regal raptor
#

and you know learning computer scinece needs a high math understanding

#

its like 70% is math

stoic grail
#

Oh

#

i'm 13 so no complicated things,lol

regal raptor
#

dw lol

#

are you programming?

#

or willing to learn how to

stoic grail
#

Eh i'm learning Python rn and i'm intermidiate in Java script.

regal raptor
#

nice

#

are you working on a program or something

#

im working on one atm tbh

stoic grail
#

oh

regal raptor
#

using python

#

pycharm

stoic grail
#

Same i also use Pycharm

regal raptor
#

its the best

stoic grail
#

I made a project

#

It was an easy one

#

it was just a weight converter

regal raptor
#

which

#

well that's how we start

stoic grail
#

yup

regal raptor
#

you need to solve alot of easy question

#

in order to become better and better

stoic grail
#

Eh who will give me the questions?

regal raptor
#

and if you want i can send you like 200 + questions easy-mid level

stoic grail
#

Oh lol

regal raptor
#

there is tons on internet

#

you can ez search in 1 tic

stoic grail
#

Lemme learn first dude

#

Lol

regal raptor
#

go ahead lol

stoic grail
#

some topics are left

#

I'm confused with the bool and the boolean feature can you explain me please?

#

like ik what is does

#

but i need an explaination

regal raptor
#

what you need to know?

stoic grail
#

eh just tell me it's meaning

regal raptor
#

well if you use it you will get as output 1 of these: true or false

stoic grail
#

ohhh

#

i have done that

regal raptor
#

well here a question

stoic grail
#

wait

regal raptor
#

if i do print(bool([]))

stoic grail
#

eh

regal raptor
#

what is the output

#

i get

#

dont cheat

#

:p

stoic grail
#

Idk that's what i'm asking that

stoic grail
regal raptor
#

its false

stoic grail
#

cause its falsy

#

its not in the string

regal raptor
#

empty list and 0 and empty string will always return false

#

anything else true

stoic grail
#

yes @somber heath explained me

#

OHH THANKS

#

NOW I UNDERSTAND

#

I WAS SO DUMB

#

AAAAAAAAAAAAAAAAAAAAAAAAAAAAA

regal raptor
#

:p

#

its ez

stoic grail
#

so do we have to particulary write bool>?

regal raptor
#

ye not only str and list

#

everything empty

#

will return false

stoic grail
#

oki

regal raptor
#

for example set {}

#

empty set

#

or dic

stoic grail
#

dic?

regal raptor
#

dictionary

stoic grail
#

oh lol

regal raptor
#

{key : value, ..}

stoic grail
#

But why we use bool tho>?

#

lol

#

me need an example

regal raptor
#

well haha you will use it when solving a hard question

stoic grail
#

oh

#

You are pro

#

ej

#

eh

#

Do you have any guesses that in what time will i be intermediate in Python?

regal raptor
#

well here an example:
if i ask you to write a function that takes an lst and return true if the lst is empty else return false

regal raptor
#

do it xd

#

well not rlly

stoic grail
#

me nub

#

i never wrote an Python code myself,lol

#

like i wrote 1

#

or 2

#

idk

#

it was kinds wrong but i did gud

regal raptor
#

wait

stoic grail
#

what is def?

#

def

#

?

regal raptor
#

gonna write it on pycharm

stoic grail
#

oki

regal raptor
#

and send it

stoic grail
#

thenks :p

regal raptor
#

def return_bool(lst):
if bool(lst):
return True
else:
return False

stoic grail
#

what do we use def for?

regal raptor
#

if bool(lst) --- means if the lst is empty which is -- if false then return true

#

def to define a function

#

from defination

#

def

stoic grail
#

oh like for js we start it like setup function () {

regal raptor
#

yup

stoic grail
#

is it the same?

regal raptor
#

when we write a function we always start with def

stoic grail
#

and how we end it?

regal raptor
#

return

stoic grail
#

okay

regal raptor
#

or sometimes print

stoic grail
regal raptor
#

or sometimes we it dont end lol

#

when using loops

stoic grail
#

lol

#

i mostly end with print eh

regal raptor
#

you can use print

#

and it will works but

#

but the in the output it will print none as well

#

since you didnt return anything it will auto return none

stoic grail
#

oh

regal raptor
#

like if we do this:
def foo(number):
print(number)

stoic grail
#

foo?

regal raptor
#

the output will be the number and none

#

foo is a name

#

that i choose

stoic grail
#

ohh

regal raptor
#

you can choose what ever

stoic grail
#

yeah

regal raptor
#

you can do even x

stoic grail
#

lol

regal raptor
#

like def x

stoic grail
#

no maths pls

#

lol

regal raptor
#

haha xd

#

math= life

stoic grail
#

math= idk

regal raptor
#

if you know math you know everything

stoic grail
#

lol

regal raptor
#

okay im heading to shop

stoic grail
#

bai

regal raptor
#

im not lol

#

haha xd

stoic grail
#

lol bye anyways] ima goh

gentle flint
#

Double-clutching (also called double de-clutching in countries outside of the United States) is a method of shifting gears used primarily for vehicles with an unsynchronized manual transmission, such as commercial trucks and specialty vehicles. While double clutching is not necessary in a vehicle that has a synchronized manual transmission, the ...

#

@whole bear

somber heath
#

Kivy has cookies.

dark seal
#

whos that

somber heath
#

There are chocolate chips.

#

Kivy is a Python framework that has java as a backend.

#

Used to develop touch-based apps and things.

#

It can also run things on PC.

#

It's fine.

thick beacon
#

learning python online or in a person? which is good for beginner?

somber heath
#

In a person might be a little bit of a tight fit.

woeful salmon
#

depends

somber heath
#

But I tend to refer people to Corey Schafer's Youtube.

woeful salmon
#

some people learn better by themselves others learn better learning from other people

somber heath
#

@gentle flint I meant like Luke in a Tantaun.

#

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

thick beacon
#

like i sometimes get tired watching videos, or i need a rest to watch videos again for hours and hours.

somber heath
#

There's a name for it. "Tutorial hell".

gentle flint
#

@dark seal

dark seal
#

I drove one of those with the big wheels

thick beacon
somber heath
#

Watching tutorial video after tutorial video

thick beacon
#

ohhh

gentle flint
thick beacon
#

i just saw it, im victim of it lol

dark seal
gentle flint
thick beacon
#

anyone heard about hp victus?

#

@woeful salmon are you pro in python?

#

damn cool, so what you're doing currently

#

i see, im giving myself to python for 6 months

#

yes

#

c++ i did in my school, but was busy with gaming

#

lol

gentle flint
thick beacon
gentle flint
#

Well, they'll have economised on something

#

probably build quality

thick beacon
gentle flint
#

I don't like beasts in the house.

#

except for cats

thick beacon
gentle flint
#

ah

thick beacon
#

im going to pay to learn python to some tutor

#

anyoe know David bombal?

#

anyone*

woeful salmon
#

i've seen him on yt

#

makes ethical hacking vids right?