#voice-chat-text-1

1 messages · Page 82 of 1

warm tendon
#

ip -> python?

woven wagon
#

i thought this was the booting software python

#

now i see im on the wrong discord

warm tendon
#

it's not even the wrong discord

#

you're on the wrong platform entirely

woven wagon
#

no im looking for a discord server about ips ;p;

#

lol

last cove
#

@short oracle where you go

short oracle
#

what where i go?!

pale mesa
#

hello

sweet holly
#

19

lyric crow
#

22

stoic bluff
#

not good

sweet holly
#

say woomy

ornate vortex
#

16

sweet holly
#

lol

stoic bluff
#

your voice

lyric crow
#

damn

stoic bluff
#

voice suppression

lyric crow
#

I have depression.

#

20

#

what the hell old are you? 42?

sweet holly
#

17

lyric crow
#

21

#

18

#

15

sweet holly
#

wat

#

really

lyric crow
#

15

sweet holly
#

14.5

lyric crow
#

fucking 15

sweet holly
#

14.25

lyric crow
#

14.0000000

sweet holly
#

14.05

lyric crow
#

11

#

13

#

What the hell.

ornate vortex
coarse hearthBOT
#

@ornate vortex :white_check_mark: Your eval job has completed with return code 0.

14
ornate vortex
#

Keep it like that

lyric crow
#

Why dont I have man voice

#

at 13

sweet holly
#

man i dont think i started coding till i was like 16 maybe

lyric crow
#

I like how we are rating voices.

sweet holly
#

depression comes and goes for me

#

i associated with boredom

#

oo look a bemis

#

haha funny

#

like a cat

#

@zinc shoal kitty kitty kitty

#

no

#

that wasnt funny

stoic bluff
#

gigi

sweet holly
#

papa

#

always wanted to make my own games

#

thats how i got into coding

#

hahaha lol

#

a peeper

lyric crow
#

lol

#

😩

sweet holly
#

@zinc shoal how many programming languages do you know? I know some rust c++ and python

#

@ornate vortex sounds terrible im allergic too

#

there are hypoallergenic cats that dont bother the nose

#

same with our dog

ornate vortex
sweet holly
#

ah shortcuts

zinc shoal
sweet holly
#

but its hard to get viruses on macos ive heard

lyric crow
#

I need help for some reason when I run my code

#

it didn't work it's weird.

stoic bluff
#

what books do you read often?

pale mesa
broken stag
#

!e print(1.0 + 2.0)

coarse hearthBOT
#

@broken stag :white_check_mark: Your eval job has completed with return code 0.

3.0
broken stag
#

hm

#

wait

#

what

#

!e print(float(float(1.0) + float(2.0))

#

!e print(float(float(1.0) + float(2.0)))

coarse hearthBOT
#

@broken stag :white_check_mark: Your eval job has completed with return code 0.

3.0
true elbow
#
class rgb:
    def __init__(self,r,g,b):
        self.r = r
        self.g = g
        self.b = b
    def toWave(self) -> float:
        ''' HUE calculation '''
        r = self.r/255
        g = self.g/255
        b = self.b/255
        
        Cmax = max([r,g,b])
        Cmin = min([r,g,b])
        
        Delta = Cmax-Cmin
        
        if(Cmax == r):
            Hue = 60*((g-b)/Delta % 6)
        elif(Cmax == b):
            Hue = 60*((b-r)/Delta + 2)
        else:
            Hue = 60*((r-g)/Delta + 4)
            
        ''' HUE map to mavelength '''
        return 650 - 250 / 270 * Hue
        ```
@stuck bluff is similar to the code you got?
stuck bluff
#

Mine was wavelength to rgb.

true elbow
#

ah, give me a sec

stuck bluff
#

The first function has bitshifts in it.

#

I think I got it from a stackoverflow answer.

random minnow
#

(*objPhysics).velocity; == objPhysics->velocity;

random minnow
hallow anchor
coarse hearthBOT
#

🤢 Not emojicode

hallow anchor
#

Do you guys not have phones?

misty sinew
#

@random minnow Same man

#

lmao

#

4 exams

#

yearly

#

per season

hallow anchor
#

!otn a Video helper Griff

coarse hearthBOT
#

:ok_hand: Added 𝖵ideo-helper-𝖦riff to the names list.

charred creek
#

omg

#

I made it

hallow anchor
#

!otn l

coarse hearthBOT
#
Known off-topic names (`1026` total)

• 2000-year-old-pasta
• 2223-if-statements
• 24-screenshots-per-second
• 3-spaces-for-indentation
• 307-is-302-but-better
• 4-borat-rock-band
• 404-coffee-not-found
• 5-star-lemon-hotel-server
• 5-weird-ways-to-grow-your-code
• 50-shades-of-lemon
• 6ǃ-is-a-recursion-error
• 7-is-random-number
• 95-shaved-ice-flavors
• a-bit-more-ibsiidis
• a-colonel-of-truth
• a-day-at-the-zoo

hallow anchor
#

!otn s arch

coarse hearthBOT
#
Query results

• arch-anonymous
• arch-btw
• i-use-arch-btw
• oligarchical-aspirations
• safesearch-off

hallow anchor
#

!otn s chris

coarse hearthBOT
#
Query results

• christmas-in-australia
• christmas-vester
• guidos-christmas-project
• zig-stole-christmas

hallow anchor
#

!mute 126811506632294400

coarse hearthBOT
#

:x: According to my records, this user already has a mute infraction. See infraction #29988.

hallow anchor
#

!unmute 126811506632294400

coarse hearthBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @hallow anchor.

hallow anchor
#

!mute 126811506632294400

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied mute to @hallow anchor until 2021-03-14 23:56 (59 minutes and 59 seconds).

charred creek
#

Mod Abuse

hallow anchor
#

!warn 165023948638126080 stupid joe

coarse hearthBOT
#

:x: There was an error adding the infraction: status 500.

random minnow
#

🧆

misty sinew
#

Griff to Jake

hallow anchor
#

you will learn ablobhammer

charred creek
#

!docs random.choice

coarse hearthBOT
#
random.choice(seq)```
Return a random element from the non-empty sequence *seq*. If *seq* is empty, raises [`IndexError`](exceptions.html#IndexError "IndexError").
charred creek
#

!e

>>> import random
>>> random.choice(["cool", "story", "bro"])
... cool
coarse hearthBOT
#

@charred creek :white_check_mark: Your eval job has completed with return code 0.

cool
hallow anchor
#

!e ```py
import random
print(random.choice(['python', 'python', 'python']))

coarse hearthBOT
#

@hallow anchor :white_check_mark: Your eval job has completed with return code 0.

python
hallow anchor
#

Oh will you look at that

coarse hearthBOT
#

Python it is! py_strong

charred creek
#

!e

from itertools import repeat
import random
print(random.choice(repeat('python')))
coarse hearthBOT
#

@charred creek :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 |   File "/usr/local/lib/python3.9/random.py", line 347, in choice
004 |     return seq[self._randbelow(len(seq))]
005 | TypeError: object of type 'itertools.repeat' has no len()
charred creek
misty sinew
raw wren
autumn raft
golden marsh
#

video of jakes dog

raven orbit
#

two call methods

#

one provides up-to-date results

#

one provides cached results

#

yet I am not caching

#

c o n f u s i o n i n t e n s i f i e s

hallow anchor
#

print('here')

#

debugging 101

#

!unmute @hallow anchor

coarse hearthBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @hallow anchor.

hallow anchor
#

!e ```py
print(repr('lаundmо'))

coarse hearthBOT
#

@hallow anchor :white_check_mark: Your eval job has completed with return code 0.

'lаundmо'
hallow anchor
raven orbit
autumn raft
#

.fo

ocean orbitBOT
#

Form of a frozen jack of water!

hallow anchor
#

.fo

ocean orbitBOT
#

Form of a bucket of water!

hallow anchor
#

.fo

ocean orbitBOT
#

Form of a very small crane of ice!

hallow anchor
#

.src f

ocean orbitBOT
#
In the future, don't do that.

Your input was invalid: Unable to convert f to valid command or Cog.

Usage:
.source [source_item]

hallow anchor
#

.src fo

ocean orbitBOT
#
Command: formof

Command to send a Wonder Twins inspired phrase to the user invoking the command.

Source Code
hallow anchor
#

sir-lancebot#617

raven orbit
#

good night

golden marsh
#

friendship ended with @raven orbit

hallow anchor
#

!user

coarse hearthBOT
#
Chrisjl#2655

hypesquad_brilliance

User information

Created: 5 years, 2 months and 26 days ago
Profile: @hallow anchor
ID: 126811506632294400

Member information

Joined: 6 months, 15 days and 11 hours ago
Roles: <@&542431903886606399>, <@&764802720779337729>, <@&295488872404484098>, <@&267630620367257601>, <@&267629731250176001>, <@&815701647526330398>

Infractions

Total: 13
Active: 0

hallow anchor
#

oh no

#

!e ```py
i=0
while i<100:i+=1;print('FizzBuzz'[i%~2&4:12&8+i%~4]or i)

coarse hearthBOT
#

@hallow anchor :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/iqaciduniv.txt

merry mica
#

!e ```python
"""This is a simple test that plays fizz buzz."""

for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print("Fizz Buzz!!!")
elif number % 3 == 0:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
else:
print(number)

coarse hearthBOT
#

@merry mica :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/ohedegecah.txt

misty sinew
#

nvm

hallow anchor
#

My IP is 127.0.0.1

#

pls no ddos

merry mica
#

!voice

coarse hearthBOT
#

Voice verification

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

raw wren
#

!voice

hallow anchor
#

!tag

coarse hearthBOT
#
**Current tags**

» repl
» return
» round
» scope
» seek
» self
» star-imports
» traceback
» voice-verification
» windows-path
» with
» xy-problem
» ytdl
» zip

hallow anchor
#

!t voice-verification

coarse hearthBOT
#

Voice verification

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

raw wren
#

!t voice-verification

merry mica
#

!t voice-verification

raw wren
#

!t

coarse hearthBOT
#
**Current tags**

» args-kwargs
» class
» classmethod
» codeblock
» comparison
» customcooldown
» decorators
» defaultdict
» dict-get
» dictcomps
» empty-json
» enumerate
» environments
» except
» exit()

hollow laurel
#

!voiceverify

hallow anchor
raw wren
hallow anchor
hollow laurel
#

what projects have yall done?

hallow anchor
hollow laurel
#

what if i use python to spam this discord lol

autumn raft
hollow laurel
#

dang

#

no way to study

#

they interview off concept

#

lol

#

yall saw the dount code?

#

u smart bro

hallow anchor
#
import time
import re

def has_shiny(bag):
    return "shiny gold" in formulas[bag] or any(map(has_shiny, formulas[bag]))

def count(bag):
    return 1 + sum(n * count(inner) for inner, n in formulas[bag].items())

def part1():
    return sum(map(has_shiny, formulas))

def part2():
    return count("shiny gold") - 1

with open('2020/inputs/day7.txt') as f:
    bags = re.findall(r"([a-z]+ [a-z]+) bags contain (.+)", f.read())
formula = re.compile(r"(\d+) ([a-z]+ [a-z]+) bag")
formulas = {bag: {inner: int(n) for n, inner in formula.findall(contents)} for bag, contents in bags}

part1_total = part1()
part2_total = part2()
print(f'Answers:\nPart 1: {part1_total}')
print(f'Part 2: {part2_total}')
hollow laurel
#

whats this vade

#

code

hallow anchor
hollow laurel
#

lol did yall do the google online interview? i did and failed it

#

<insert smart ai code>

#

lol

#

c plus plus better

#

yeah

#

flappy birds

#

i learnerd eveything off codeacademy is there any better advanvced sites?

#

nice

vocal thistle
#

What's going on over here?

hollow laurel
#

c pp compiler

#

yeah it is

#

yeah

#

tf keras

#

tensorflow

#

see you

#

im leaving too night guys

mild hill
#

@iron jungle sometimes its like this

#

@iron jungle C# is a good language and its well structured

candid nest
#

could anybody please help me in channel help-bread?

mild hill
#

@iron jungle

#

so its personal but i think its easier

#

it may be cause it was my first language to learn but i feel better with python

#

whats with rust that everyone is talking about ??

grand prawn
#

pounds1 = 7
ounces1 = 8

pounds2 = 9
ounces2 = 11

final_ounces = ounces1 + ounces2
final_pounds = pounds1 + pounds2

if final_ounces >= 16:
added_pounds = final_ounces // 16
final_ounces = final_ounces % 16
final_pounds += added_pounds

print(f"Your total is {final_pounds} pounds and {final_ounces} ounces") and got Your total is 17 pounds and 3 ounces, however i need to get 7 pounds and 8 ounces
added to
9 pounds and 11 ounces
is equal to
17 pounds and 3 ounce. and 3 pounds and 4 ounces
added to
5 pounds and 6 ounces
is equal to
8 pounds and 10 ounces
[11:46 PM]
how do i fix it? :((

sleek parrot
#

freaking children 😄

digital cradle
#

Val is a rootkit

#

lol

#

vangaurd*

cursive rover
#
def dataCollector(msg):
    lst = msg.splitlines()
    coin = lst[0]
    lst.pop(0)
    print(lst)
    for el in lst:
        el.replace('*','')
    msg = ": "
    msg = msg.join(lst)
    lst = msg.split(': ')

#

why that isnt woking for my

#

its not removing the *

random minnow
#
    for el in lst:
        el = el.replace('*','')
cursive rover
#

ty

random minnow
#

np

cursive rover
#

@random minnow still nothing happens

warm tendon
random minnow
#

ah i see

#

so you could enumerate it?

#

and edit the index

cursive rover
#

so

#

I have to go with index?

#

inrange of 1 to length

random minnow
#

you could do

lst = [el.replace('*','') for el in lst]
cursive rover
#

thank you

#

but y is that working?

random minnow
#

oh, its a list comp and overwrites the list variable

cursive rover
random minnow
#

its the same as doing this:

cursive rover
#

i get the solution u sent last

#

its make sense

random minnow
#
tmp = []
for el in lst:
    tmp.append(el.replace('*',''))
lst = tmp
#

oh thats not working because your editing the list but not the actual variable, as pasta man said "this does not work, becauseel is a reference to the element in lst, but not the actual element"

cursive rover
#

because el is a reference to the element in lst, but not the actual element"... Can you explain sorry for my bad english..

random minnow
#

come to voice chat 1

verbal fjord
#

@sudden stump here is smth:

#

whaaaatt ?

#

nahhh, not rly

random minnow
#

C:\Users\{USER_NAME}\AppData\Local\Programs\Python\Python37\Scripts>pip --version

misty sinew
#

python --version

random minnow
#

python3 --version

formal orbit
#

@charred creek i cant speak

#

i know how to do that

random minnow
#

c:\users\{your user}\appdata\local\programs\python\

formal orbit
#

I am not able to speak at that voice chat

#

where griff is

#

I know how to solve the problem @south sluice is having

random minnow
#

c:\users\{your user}\appdata\local\programs\python\python39

#

python get-pip.py

#

pip list

misty sinew
random minnow
raw wren
#

@charred creek we werent leaving you dont worry

charred creek
#

@raw wren ik, i'm gonna sleep

#

look how nice this is

#
fn warn_the_sheep(queue: &[&str]) -> String {
    let wolf_pos: usize = queue.iter().position(|element| element == &"wolf").unwrap();
    return match wolf_pos {
        _ if wolf_pos + 1 == queue.len() => "Pls go away and stop eating my sheep".to_string(),
        _ => format!("Oi! Sheep number {}! You are about to be eaten by a wolf!",
                     queue.len() - (wolf_pos + 1))
    }
}```
raw wren
#

that looks clean

#

well gn

charred creek
#

Rust OP

raw wren
hearty heath
#

Oh dear 😄

#

Seems sensible...

warm tendon
#

!charinfo Chrisjowl

coarse hearthBOT
hearty heath
#

You would have got me

#

if it weren't for the others 😄

#

I'm pretty gullible tbh lemon_pensive

#

Yep

peak frigate
#

JK

lime grove
#

whoa how did jake's intellij load so fast

hearty heath
#
warm tendon
hearty heath
#

Bit of advice for teachers: don't tell your students you have no idea what you're doing 😄

lime grove
#

i guess "a" and "aaaaaaaa" are anagrams

hearty heath
#

Jake, is there something you can do to two words to make them equal only if they are anagrams?

raw wren
hearty heath
#

!eval ```py
for i in range(10):
...
print(i)

coarse hearthBOT
#

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

9
hearty heath
#

I'm pretty sure that was Kristen Schaal

lime grove
#

hi @final folio 👋

final folio
hearty heath
#

@raw wren figure out how to do it for one word

#

nvm

peak frigate
#

i realized i don't understand the task

rancid tide
#

memory manipulation

#

yes, he is

#

haha

#

no, he cares

#

he enjoys it

#

like 99% useless

warm tendon
#

closer to 100%

rancid tide
#

if you're not doing system programming

#

there're jobs out there that pay quite a lot

#

better than big X

hearty heath
#

Honestly, a large part of it is learning how to quickly comprehend the questions.

rancid tide
#

yes

hearty heath
#

They're also kind of test-wise

proud rampart
#

convert to sets and subtract

warm tendon
#

don't just give out the answer 😄

rancid tide
#

haha

#

there're multiple answers

#

though

hearty heath
#

If you look closely at the test cases.

warm tendon
#

lol he's right

lime grove
#

hmm

rancid tide
#

haha

lime grove
#

[1, 1, 3] and [3] would return [1, 1] right?

rancid tide
#

correct

proud rampart
#

@hearty heath Not much more than that tbh

warm tendon
proud rampart
#

ooo ok sorry, guess you just have to do it the old fashioned way

lime grove
#

although, sets could be beneficial for this problem

hearty heath
rancid tide
#

numpy?!

proud rampart
#

asktelling

rancid tide
#

in

proud rampart
#

@hearty heath were you thinking of a set difference + a list comp using IN?

rancid tide
peak frigate
#

i see you tmrw baiiiiiiiiiiiiiiiii

lime grove
#

!e

l = [1, 2, 3, 4]
for i in l:
  l.remove(i)
print(l)
coarse hearthBOT
#

@lime grove :white_check_mark: Your eval job has completed with return code 0.

[2, 4]
warm tendon
#

!zip @raw wren

coarse hearthBOT
#

The zip function allows you to iterate through multiple iterables simultaneously. It joins the iterables together, almost like a zipper, so that each new element is a tuple with one element from each iterable.

letters = 'abc'
numbers = [1, 2, 3]
# zip(letters, numbers) --> [('a', 1), ('b', 2), ('c', 3)]
for letter, number in zip(letters, numbers):
    print(letter, number)

The zip() iterator is exhausted after the length of the shortest iterable is exceeded. If you would like to retain the other values, consider using itertools.zip_longest.

For more information on zip, please refer to the official documentation.

hearty heath
#

Maybe it's best to figure it out with pen and paper first?

#

I agree with SPM

#

Also, what petri is getting as is that modifying a list while iterating over it can cause some unexpected behaviour.

#

Can we just make sure that you understand the question?

#

Like, if we give you some example inputs, can you predict what the output should be?

proud rampart
#

Just tell him to stick to append

#

give him the building blocks and let him piece it together

hearty heath
#

If py a = [1, 2, 3, 4, 1, 2, 3, 4] and ```py
b = [1, 2]

proud rampart
#

try to only use list.append()

hearty heath
#

I mean, putting the code aside for the moment, can you figure out the result by hand?

shrewd star
#
>>> for value in [1,2,3],[0,1,2]:
...   print(value)
[1, 2, 3]
[0, 1, 2]
hearty heath
#

I feel like we're going to have a too-many-cooks situation here 😄

rancid tide
#

you can do a new list

#

.remove()?

#

yep, that'd be easier for him

#

get want you want and return

shrewd star
#

it's hacky time

def array_diff(a,b):
  def raw_array_diff(a,b):
     for value in a:
         if value not in b:
            yield value
  return [*raw_array_diff(a,b)]
raw wren
rancid tide
#
array_diff :: Eq a => [a] -> [a] -> [a] 
array_diff a b = filter (\x -> notElem x b) a
shrewd star
#

:>

rancid tide
#
def array_diff(a,b):
  return list(filter(lambda x: x not in b, a))
warm tendon
#

🤢

hearty heath
#

Hey Fisher

warm tendon
#

@autumn raft

rancid tide
#

codegolf it

warm tendon
rancid tide
warm tendon
#

at least spoiler it

shrewd star
hearty heath
shrewd star
#
array_diff=lambda a, b:[d for d in a if d not in b]
warm tendon
#

hope cpython optimizes it into a constant :P @hearty heath

#

which i think it will

#

time to dis.dis 😔

shrewd star
#

why cant you spoiler code blocks?

warm tendon
warm tendon
hearty heath
warm tendon
#

oh come on

lime grove
#

lol the lack of spoilered code blocks was kind of problematic for advent of code

warm tendon
#
  2           0 BUILD_LIST               0
              2 LOAD_FAST                0 (.0)
        >>    4 FOR_ITER                20 (to 26)
              6 STORE_FAST               1 (e)
              8 LOAD_FAST                1 (e)
             10 LOAD_GLOBAL              0 (set)
             12 LOAD_GLOBAL              1 (b)
             14 CALL_FUNCTION            1
             16 COMPARE_OP               7 (not in)
             18 POP_JUMP_IF_FALSE        4
             20 LOAD_FAST                1 (e)
             22 LIST_APPEND              2
             24 JUMP_ABSOLUTE            4
        >>   26 RETURN_VALUE
#

so yeah, constant :)

rancid tide
#

yep

warm tendon
#

@hearty heath :) cpython did something!

proud rampart
#

sooooo close

#

reallly close

hearty heath
rancid tide
#

yes

warm tendon
#

shh

rancid tide
#

anonymously

warm tendon
#

hmm, maybe frozenset lol

#

😔

#

nvm

#

what if i use a normal loop 👀

lime grove
#

or define set(b) before the listcomp

rancid tide
lime grove
#

or rather, assign it to a variable

proud rampart
#

plot twist he's just teasing us

rancid tide
#

syntactically yes

hearty heath
warm tendon
#

😔

rancid tide
#

array_diff($a, $b)

proud rampart
#

Take an example input and run through it mentally

#

and then turn that into code

#

there is a pattern

lime grove
#

ok i'm heading out 👋

proud rampart
hearty heath
#

@shrewd star can you turn on PTT?

shrewd star
#

not really im on browser

leaden flare
proud rampart
#

Please have him run it in the visualizer

#

it will help him a lot

#

its really helpful

#

just concentrate of line 4, you got this!

raw wren
#

i have no idea what to change it to lol

proud rampart
#

paste youre code in here and see what your code is doing

raw wren
#

I cant it doesnt work like that

proud rampart
#

The guys can help you set it up

autumn raft
#

@raw wren you wanna go to code help channel so we can finish it?

raw wren
#

Sure

warm tendon
#

@autumn raft drag me in 🥺

#

@autumn raft 🥺

#

😭 @autumn raft

raw wren
#

we are leaving in a sec

warm tendon
#

😭

hearty heath
#

Keep at it Jake, you'll get there eventually!

fringe gust
hearty heath
#

!eval ```py
print('one two three'.split())

coarse hearthBOT
#

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

['one', 'two', 'three']
hearty heath
#

@raw wren "past solutions"

warm tendon
#

¯_(ツ)_/¯

hearty heath
#

Tbh, I think the zero case should be undefined.

warm tendon
#

¯_(ツ)_/¯

#

in the context of the problem though, it would be 0 points per game

hearty heath
#

Like, how can you extrapolate from zero minutes of data 🤔

warm tendon
#

¯_(ツ)_/¯

hearty heath
#

(╯°□°)╯︵ ┻━┻

warm tendon
#

!or @raw wren

coarse hearthBOT
#

When checking if something is equal to one thing or another, you might think that this is possible:

if favorite_fruit == 'grapefruit' or 'lemon':
    print("That's a weird favorite fruit to have.")

While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.

So, if you want to check if something is equal to one thing or another, there are two common ways:

# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
    print("That's a weird favorite fruit to have.")

# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
    print("That's a weird favorite fruit to have.")
hearty heath
#

I think try/except is alright.

#

It's actually the preferred way in python.

#

Wait, so is smaller harder?

warm tendon
#

yeah

hearty heath
#

@warm tendon ||eval|| 😄

warm tendon
#

😔

mint isle
#

looks like stack

warm tendon
#

hm?

#

yeah, just doing shunting yard

hearty heath
#

@warm tendon Do you want this tokeniser I just wrote? 😄

#
def tokens(expression):
    WS  = re.compile(r'\s+')
    NUM = re.compile(r'\d+(\.\d*)?')
    OP  = re.compile(r'[-+*/]')
    pos = 0
    while pos < len(expression):
        if m := WS.match(expression, pos=pos):
            pass
        elif m := NUM.match(expression, pos=pos):
            yield float(m.group())
        elif m := OP.match(expression, pos=pos):
            yield m.group()
        else:
            assert False
        pos = m.end()
warm tendon
#

o

#

🤔

#

wack

hearty heath
warm tendon
#

😔

hearty heath
#

I didn't get top 100 on any day lemon_pensive

#

Those people are superhuman 😄

#

Salt-die has really nice solutions 😄

warm tendon
#

yeahhhh, salt is also big brain

hearty heath
warm tendon
#

:(

#

i wish i could be as cool as saltdie

final folio
#

I think you’re pretty cool

hearty heath
#

What is going on, people coming in and out?

final folio
#

They could be join trolling

#

like when they leave and rejoin really quickly over and over

raw wren
#

@autumn raft hey thanks again for the help even though I got a bit frustrated in the end haha

warm tendon
#

i think it is time for bed ;-;

#

my brain is no longer working properly

hearty heath
#

Cya 👋

raw wren
#

Cya

signal eagle
#

#Create a function to combine the values of the important columns into a single string
def get_important_features(data):
important_features = []
for i in range(0, data.shape[0]):
important_features.append(data['Actors'][i]+' '+data['Director'][i]+' '+data['Genre'][i]+' '+data['Title'][i])

return important_features                                                                                              #Create a column to hold the combined strings

df['important_features'] = get_important_features(df)

#Show the data
df.head(3)
This is my code although i am getting below error: Traceback (most recent call last)
<ipython-input-10-50d23e3e0015> in <module>()
1 #Create a column to hold the combined strings
----> 2 df['important_features'] = get_important_features(df)
3
4 #Show the data
5 df.head(3)

3 frames
/usr/local/lib/python3.7/dist-packages/pandas/core/internals/construction.py in sanitize_index(data, index)
746 if len(data) != len(index):
747 raise ValueError(
--> 748 "Length of values "
749 f"({len(data)}) "
750 "does not match length of index "

ValueError: Length of values (1) does not match length of index (1000)
Please help

wide ivy
#

!code

coarse hearthBOT
#

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.

frank ferry
#

supp

raw wren
#

!voice

coarse hearthBOT
#

Voice verification

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

normal swan
#

my bad

#

can u help me real quick tho?

#

so i need help me with my code

#

where do i sent it

raw wren
#

!format

normal swan
#

so have u ever heard of mutiplicative and additive persitience

#

i just need my code to loop one more time

fluid pumice
#

supposedly Im not allowed to ask for help to understand homework

#

last time I ask someone shot me down

#

oh lol it was HW

#

what if it has a PDF to understand what to write

#

if its not a line of code, rather a prompt to follow from a pdf, how can i get help

#

and whats the command to type code in disc?

#

ope, wont let me paste a pdf in the discord help servers

#

are there any other active python discord servers that could help?

coarse hearthBOT
#

Hey @fluid pumice!

It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

fluid pumice
#

aight

halcyon notch
#

ðelˈfi

raven orbit
hearty heath
#

Yeah, folders confuse me tbh

#

I like that you included that information 👍

raven orbit
#

*directories

hearty heath
#

"API interface" RAS syndrome

raven orbit
hearty heath
#

Oh yeah, Sebastian posted a picture 😄

raven orbit
#

nice lol

#

I must be off

#

cya

hearty heath
#

Try nim

#

One day I will convince someone to use nim...

#

Similar to Rust I think

#

laundmo is typing 👀

golden marsh
#

i think someone in the staff team uses nim

charred creek
#

me

#

rn

#

brb

hearty heath
#

Hello

#

Yeah, please no more talk about that 😄

#

I can't take it

charred creek
hearty heath
#

We can have at most 676 members in the gang...

#

They talking about guns again? @golden marsh lemon_pensive

#

Nice 😄

#

So, is this parser for a compilers class frederik?

#

Oh right cool

#

I keep a thing of floss on my desk at all times...

#

Btw: a post-it note works really well as a tooth pick 😄

golden marsh
hearty heath
#

Bad aerodynamics

#

Apparently top fuel dragsters go "from standstill to 100 mph (160 km/h) in as little as 0.8 seconds"

charred creek
#

The Tillamook County Fair is an annual event that takes place August in the city of Tillamook in Tillamook County, Oregon, United States. The county fair was established in 1891. The fairgrounds have the largest facility in the county for conventions, meetings, receptions, and other gatherings. Fair attendance continues to grow with attendance t...

hearty heath
#

brb

golden marsh
hearty heath
#

Or a Henry Hoover

peak frigate
random minnow
hearty heath
#

Yeah, I want to pick up music again

peak frigate
golden marsh
hearty heath
#

That scanner sounds really beautiful 😄

raven orbit
golden marsh
hazy crown
#

@raven orbit hi

raven orbit
#

hello

hazy crown
#

can you help me ?

raven orbit
#

A scripting or script language is a programming language for a special run-time environment that automates the execution of tasks; the tasks could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted, rather than compiled.
Primitives are usually the elementary tasks or API calls, and the language al...

#

Thessaloniki (; Greek: Θεσσαλονίκη, [θesaloˈnici] (listen)), also known as Thessalonica (English: ), Saloniki or Salonica (), is the second-largest city in Greece, with over 1 million inhabitants in its metropolitan area, and the capital of the geographic region of Macedonia, the administrative region of Central Macedonia and the Decentralized A...

hearty heath
#

Hello 😄

#

Nice!

raven orbit
hearty heath
#

Oh right. What was the topic?

raven orbit
#

none in particular

hearty heath
#

Group theory is pretty cool. Have you heard about Galois?

raven orbit
#

I haven't

hearty heath
lime grove
#

btw @hearty heath monchi and psvm are in vc at the same time 👀

hearty heath
lime grove
#

i don't think so

#

pretty suspicious

hearty heath
#

Anyway gtg 👋

open osprey
#

here

#

I'm having trouble configuring apache spark

#

trying to convert a postgres table of 16m rows and load it into python for machinelearning

#

pyspark

#

I like that I'm talking to myself

#

until i get 50

#

pandas would be ideal

#

another solution would be converting the table into a parquet file

#

yes but with so many rows it takes a long time

#

thus apache spark

#

🤷‍♂️

raven orbit
open osprey
#

for 16M rows?

raven orbit
#

well, it's built into python

#

thus has a c library

#

iirc

#

makes it a lot faster

open osprey
#
#

I

#

see

#

This package provides a way for adapting the different datasets (currently supports CIFAR-100 and ImageNet) to the iirc setup and the class incremental learning setup, and loading them in a standardized manner.

#

I understand it's out of your guys' scope

#

I appreciate the help

raven orbit
#

ye idk sorry

#

I'd just use direct postgres to python

open osprey
#

thanks

random minnow
frigid isle
#

What's this for

raven orbit
#

testing publishing to pypi

frigid isle
#

🤓

raven orbit
#

do I have to activate my windows server

sage cloud
#

MOVE 😄

raven orbit
#

I refuse to relocate

#

I shall cling to my native channel!

sage cloud
lime grove
#

lol lx and kutiekat were talking about how they couldn’t distinguish your voices earlier

warm tendon
#

🤔

peak frigate
warm tendon
#

👀

#

you make me feel special~

#

🤔 jake and mina sitting in a tree 😔

peak frigate
#

pub

#

no

warm tendon
#

in a vc*

raw wren
#

😦

lime grove
peak frigate
#
def positive_sum(arr):
    sum = 0
    for number in arr:
        if number > 0:
            sum += number
    return sum```
raw wren
#
def positive_sum(arr):
    result = 0
    for i in arr:
        if i > 0:
            result += i
    return result
sage cloud
#
positive_sum = lambda arr: sum(filter(lambda x: x>0, arr))
sage cloud
peak frigate
#
def get_count(input_str):
    num_vowels = 0
    vowels_list = ['a','e','i','o','u']

    for letter in input_str:
        if letter in vowels_list:
            num_vowels += 1
    return num_vowels
#
def getCount(inputStr):
    num_vowels = 0
    for char in inputStr:
        if char in "aeiouAEIOU":
           num_vowels = num_vowels + 1
    return num_vowels
sage cloud
#
get_count = lambda s: sum(s.lower().count(c) for c in ["a", "e", "i", "o", "u"])
raw wren
#
def get_count(input_str):
    num_vowels = 0
    for i in input_str:
        if i in ('a', 'e', 'i', 'o', 'u'):
            num_vowels += 1
    return num_vowels
sage cloud
#
string.count("aeiouAEIOU")

Thats why ruby is better than python 😄

peak frigate
warm tendon
#
from collection import Counter
def get_count(input_str):
  C = Counter(input_str.lower()):
  return sum(C[e] for e in "aeiou")
peak frigate
#
def get_count(input_str):
    num_vowels = 0
    for letter in input_str:
        if letter in "aeiou":
            num_vowels += 1
    return num_vowels```
#

@warm tendon a string basically works as a list when iterated thru it?

warm tendon
#

uhh, sorta?

#

iterating over a string gives you characters

#

!e

for char in "hello mina ✯✩✯":
  print(char)
coarse hearthBOT
#

@warm tendon :white_check_mark: Your eval job has completed with return code 0.

001 | h
002 | e
003 | l
004 | l
005 | o
006 |  
007 | m
008 | i
009 | n
010 | a
011 |  
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/mapoconone.txt

warm tendon
#

oh the stars are gone 😔

peak frigate
#

lolllll

raw wren
warm tendon
#

how poetic

peak frigate
warm tendon
#

ye

misty sinew
#

return that

#

return your result @raw wren

raw wren
#

Please let me do this on my own as its code wars and I am trying to learn. Thank you 🙂

misty sinew
#

oh ok sry

raw wren
#

no problem you had no idea I appreciate the help though!

#

🙂

warm tendon
#

@raw wren are you still doing the one you posted

raw wren
#

yes but I have been distracted lol

warm tendon
#

it's just algebra

#

set up an equation

raw wren
#

ye ik

warm tendon
#

son_age * 2 + x = dad_age + x

raw wren
#

can you do algebra in default python?

warm tendon
#

that's your job :P

raw wren
#

okie

#

fml

peak frigate
warm tendon
#

i just solved it

peak frigate
#

isn't it smth else

raw wren
#

yeah

#

I am not doing algebra

#

and its working fine

#

just 1 bug

peak frigate
#

son_age * 2 = dad_age - x

warm tendon
#

the son ages at the same rate as the dad

#

oh wait

#

it's not 😦

#

it's 2(son + x) = dad + x

#

which is what you have yeah

#

😔

peak frigate
#

hm wait

warm tendon
#

yeah

#

you're right

#

i was wrong 😦

peak frigate
#

no mine's wrong lmao

#

iiiiiiiiiii be back

warm tendon
#

hm?

#

wait what

peak frigate
#

idk but mine's wrong kek

warm tendon
#

🧐

#

you have to account for negatives

raw wren
#

yes

#

here unmute on the call

warm tendon
#

@peak frigate did you listen to the song 👀👀👀

#

what did you think 👀

peak frigate
#

i've heard it before

#

i'm neutral?

fluid edge
#

what song 😮

peak frigate
#

i can't remember the last kpop girl group song i liked

warm tendon
#

we have to change that 😔

peak frigate
#

checking my playlist. i like korean female soloists? sunmi, swja

#

baek yaerin, ahn ye eun, lee hi

#

iu

warm tendon
#

iu 👀

fluid edge
#

oooo lee hi 💯

peak frigate
#

i cry she's so good

fluid edge
#

word. i'm so glad she signed with AOMG

peak frigate
#

i found out recently thru a yt video. honestly don't know her discography besides her debut but this cover of golden slumbers is so good and i only wish it were longer

lean hound
#

😐

fluid edge
#

jake, what are you trying to do? lol

#

oooo

#

no, it's the square.

autumn raft
#

you guys are just in vc all day, brings a tear to me heart rooSob

peak frigate
#

come hang

warm tendon
#

gallows

fluid edge
#

go back to werk

#

lol

autumn raft
#

let me abandon these students real fast

raw wren
#

lol is your audience still mute?

fluid edge
#

LMAO "awwww"

warm tendon
#

mina misses u

fluid edge
#

yessss

warm tendon
#

🥺

fluid edge
#

her voice ❤️

#

i like missing you on her seoulite album

#

italian or eye-talian?

peak frigate
#

why does it sound like she's far away in missing you

#

oh

#

wrong

#

song

fluid edge
#

LOL

#

i was about to ask, what are you listening to xD

warm tendon
#

fancy?

peak frigate
#

oh ok i do know this

echo tartan
#

hi yall remeber me

fluid edge
#

i have the memory of a goldfish, so no.

#

but hi

echo tartan
#

i am SpticYt

fluid edge
#

lmao who?

echo tartan
#

i am 13 now

autumn raft
echo tartan
#

i turned 13 like 2 weeks ago

#

i think

autumn raft
echo tartan
#

yh

#

@fair sierra

autumn raft
#

why the ping?

echo tartan
#

cause ik him

#

he helped me

autumn raft
#

ok, haha

echo tartan
#

i just wanted him yo know i was here

#

and i wanted to say thx

peak frigate
#

Inenrnational

#

that spelling is painful

raw wren
fluid edge
#

lol inenrnational

peak frigate
#

@fluid edge i used to love epik high

fluid edge
#

i looove epik high

#

tablo is crazy lol

echo tartan
#

what is epik high

#

????

peak frigate
#

thoughts on latest album tho? i could not get into it

#

i bought tablo's book #realstan

fluid edge
#

for sleepless in?

autumn raft
fluid edge
#

his podcast is life lmao

autumn raft
fluid edge
peak frigate
#

lolllllll yes i love tablo the person

#

but for rap i honestly prefer mithra's voice

#

and floqw

echo tartan
#

hoo is tablo

peak frigate
#

Epik High (Hangul: 에픽하이) is a South Korean alternative hip hop group from Seoul, composed of Tablo, Mithra Jin, and DJ Tukutz. They are known for having combined genres and different styles of hip hop throughout their career, which has seen the release of eleven studio albums since their debut in 2003, as well as for their coverage of diverse ly...

echo tartan
#

@round ledge sound sus

#

yh why you checking my bio???

round ledge
round ledge
echo tartan
#

so how did you know my bio

peak frigate
#

@fluid edge no they had a full studio album release this year

echo tartan
#

???

fluid edge
#

oh the one that featured rosario?

peak frigate
#

spotify put out a whole ad in times square

#

yes

#

guess

echo tartan
#

ys it does

#

jake is funny

#

haaha

#

memee

#

,eeee

#

meeeeeeeeeee

#

meeeeeeeeeeeee

#

meeeeeeeeeeeee

#

meeeme

#

mee

#

mee

#

mee

#

me

warm tendon
#

please don't spam

echo tartan
#

i know coding langieages

fluid edge
#

i just realized i haven't listened to this album yet. lol

peak frigate
#

yeah

echo tartan
peak frigate
#

i gave it 1 listen

#

and that was it

fluid edge
#

dang. that's disappointing 😦

echo tartan
#

where is @fair sierra

#

i really want him

raw wren
#

pls dont @ random ppl

fluid edge
#

born hater is one of my favorite songs of all time

autumn raft
#

he is probably busy, you do not need to ping him multiple times. He will reply if he is free.

echo tartan
#

ok thx

fluid edge
#

you don't

echo tartan
fluid edge
#

all of the letters are silent.

raw wren
fluid edge
#

exactly

echo tartan
#

it is probaly just a name

fluid edge
#

perfect.

echo tartan
#

your nice aswell

raw wren
#

when I want to be haha just kidding just kidding...

echo tartan
#

XD

#

when i turned 13 i wanted to join this server so bad

#

cause i wanted to learn to script bots

raw wren
#

Well thanks for not joining it before, and what type of bot, a discord bot?

echo tartan
#

yh

#

100 thousand people

#

omgg

peak frigate
#

@weak scaffold early albums.. do you know hon/혼? fan? map the soul. fly. fly!

echo tartan
#

yall running a hole community

echo tartan
#

100 thousnad people thats like alot of people

#

for 1 server

#

i not sure even if i make a community i wont get that much

#

thats alot of advertising

peak frigate
#

okok we speak the same language

#

what abt NELL

echo tartan
#

idk

#

@raw wren what are you developing

raw wren
echo tartan
#

ok

#

what do you do in Codewars

#

his mic is so loud

fluid edge
echo tartan
#

he be rocking the new pair of headphones

#

how did yall start scrpting

peak frigate
#

i've yet to meet anyone that dislikes NELL

#

but a lot of their music sounds similar, so it's a cohesive listening experience? but some of them definitely blend together

fluid edge
#

😮 time to listen to some albums

echo tartan
#

yh lets go

#

jake use your coding brain

peak frigate
#

arguably their best album is missing from spotify sigh

echo tartan
#

and figure the problem out

autumn raft
#

you all need to show me de way. psvm only shows me the kpop girl groups 😭

#

and before you ask: yes I am lurking

fluid edge
#

lmao which groups doe

peak frigate
#

psvm sent me 4 girl group songs and i maybe liked 1 kek

fluid edge
#

oh noooo. which ones did he send

autumn raft
#

Loona

fluid edge
#

don't tell me they were all black pink and twice

peak frigate
#

some red velvet, loona, black pink

autumn raft
#

and probably black pink, someone sent black pink

peak frigate
#

i sent HIM a twice song bc i think i can't stop me is a decent song

fluid edge
#

aw i like red velvet

peak frigate
#

i honestly never got into 2ne1 in their heyday either llolll hides

peak frigate
#

manufactured to be catchy, but i don't hate that

peak frigate
fluid edge
#

@autumn raft , depends what you're into. i like the r&b vibez. so zion t is mah jam.

peak frigate
#

yanghwa daegyo T_T

fluid edge
#

u already knowwww

lime grove
autumn raft
shrewd star
warm tendon
fluid edge
#

lmao the hype

shrewd star
#

don't ask why I named the output raw

warm tendon
shrewd star
#

what do you think of my solution?

warm tendon
#

pretty interesting

#

don't look at this if your name is jake

shrewd star
#

mine's a dual case algorithm to handle positive and negative numbers separately, then toggle the eth element of an array of zeros

#

lmao you can do that in one line:

peak frigate
#

@fluid edge are you still working?

fluid edge
#

nah. but i am taking 1 elective, so i have homework 😭

#

this NELL album is giving me v i b e s

peak frigate
#

anyone that doesn't like NELL once they listen to an album.............. idk if i can be friends with them lol

fluid edge
#

lmaooo

warm tendon
peak frigate
#

it's ok i didn't listen to the whole album and i never will, so we can be friends

fluid edge
#

LMAO

warm tendon
#

😭

peak frigate
#

this is how we can maintain our friendship 🙂

lime grove
#

friendship is overrated

warm tendon
#

join us petri dish?

fluid edge
#

is loona like snsd?

peak frigate
#

omg nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

fluid edge
#

LMAO

peak frigate
#

ok it's ok i guess i never loved snsd's music either

fluid edge
#

like how only 2 or 3 can sing and the rest are just backup dancers

lime grove
peak frigate
#

so basically TTS taetiseo

lime grove
#

nah i have school tomorrow so i should sleep soon 😔

fluid edge
#

omg maths.

#

lol

#

-puts abacus away-

peak frigate
#

abacus lmao

fluid edge
#

you're getting pasta public static void main mad

warm tendon
#

😔

fluid edge
#

<.< read the error lol

peak frigate
fluid edge
#

oh no. i was just too lazy to type mathematics

#

LMAO THAT SIGH

#

KEKEKEKEKEKEKE

peak frigate
#

^ he sounded so jaded lmfao

fluid edge
#

that would be the naive approach

#

lol

warm tendon
#

!d collections.Counter

coarse hearthBOT
#
class collections.Counter([iterable-or-mapping])```
A [`Counter`](#collections.Counter "collections.Counter") is a [`dict`](stdtypes.html#dict "dict") subclass for counting hashable objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):... [read more](https://docs.python.org/3/library/collections.html#collections.Counter)
warm tendon
fluid edge
#

it's an e

#

but aren't you honored to have witnessed jake's accomplishment?

#

lmaoooooo

peak frigate
#

is that the new pc way?

fluid edge
#

lol no. ask jake

fluid edge
#

it sounds exactly like what it means lol

peak frigate
#

"in low spirits from loss of hope or courage"

fluid edge
#

LOL

#

stop writing loops

#

lol

warm tendon
#

why lol

#

looping is awesome 😤

peak frigate
#

way too long on vc today see you guys later

raw wren
#

cya!

autumn raft
#

!otn a honored to witness jake

coarse hearthBOT
#

:ok_hand: Added honored-to-witness-jake to the names list.

cobalt idol
#

Why does voice verification need 50 messages I dont know what to write

fiery talon
#

Hey does anyone how I can get the voice verified role?

warm tendon
#

!voice

coarse hearthBOT
#

Voice verification

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

haughty oak
#

good @charred creek

#

Just learning @charred creek

#

Woah please elaborate @charred creek

charred creek
haughty oak
#

yes

#

nice

#

Is it something related to recognising deep face models?

#

using AI

#

@charred creek

#

nice

#

Do you use pytorch or tensorflow?

#

What is it that you're exactly working on?

#

It it related to voice or image?

#

@charred creek

#

nice