#voice-chat-text-0

1 messages · Page 730 of 1

teal parcel
#

oh ye it does a bit

#

just inversed

somber heath
#

There's postprocessing involved.

#

That is to say, cheating with GIMP.

teal parcel
#

ngl it does look cool af

somber heath
#

Mm. 😁

sick cloud
#

‫message ‫this is an

pure path
#

@sick cloud how u did that?

sick cloud
undone idol
sick cloud
hardy cape
#

for i in range(10)

#

0,2,4,6,8

craggy zephyr
#

!e print("Hello Opal and Rupesh")

wise cargoBOT
#

@craggy zephyr :white_check_mark: Your eval job has completed with return code 0.

Hello Opal and Rupesh
fiery hearth
#

!e print("Hello Bigbash")

wise cargoBOT
#

@fiery hearth :white_check_mark: Your eval job has completed with return code 0.

Hello Bigbash
undone idol
#

@somber heath you aren't audible

#

try to speak

sick cloud
#

‫message ‫this is an

pliant atlas
sick cloud
#

i'm a CrackedHacker ig

pliant atlas
verbal oasis
#

what is eval job?

#

@fiery hearth @somber heath

sick cloud
#

‫message ‫this is an

craggy zephyr
sick cloud
somber heath
#

Rekorderlig

hoary furnace
#

useless voice verification

#

like it

somber heath
#

@hoary furnace Hm?

hoary furnace
#

i should wait for 3 days

somber heath
#

Ah.

hoary furnace
#

server have over 3 moderators, and u need to wait 3 days?

#

it`s pyton society

#

no one going to scream

#

here very clever people

#

(i hope)

#

twice moderators warn me about foreign language per 2 minutes, and no one can`t mute one user in voice chat?

#

)

somber heath
#

@hoary furnace What do you use Python for?

hoary furnace
#

writing program for database

somber heath
#

Mhm. What sort of data?

#

Finance?

hoary furnace
#

nope

somber heath
#

Ooh.

hoary furnace
#

industry

somber heath
#

How rebellious.

balmy nymph
#

!mute @hoary furnace 4d We already told you to stick to english, and insulting moderators is unacceptable, please re-read over our #rules and #code-of-conduct

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @hoary furnace until 2021-01-15 13:46 (3 days and 23 hours).

undone idol
#

hi

somber heath
#

o/

undone idol
#

@somber heath

#

the settings that you have told

#

is causing errors

#

i can't hear my own voice

#

while testing

#

can u hear me?

somber heath
#

No

undone idol
#

HMM

#

soz caps

#

i can hear you

somber heath
#

Turning those settings off oughtn't upset anything.

undone idol
#

but you can't

#

@somber heath

#

can you hear me

#

I have reset

#

my settings

#

but while testing

#

i can't

#

Oh it worked

#

@somber heath

winter phoenix
#

hello @somber heath

undone idol
#

hi @winter phoenix

winter phoenix
#

hi @undone idol

undone idol
#

so what projects are u working on?

#

can u speak?

winter phoenix
#

Infact I am new to Python as well

undone idol
#

k

#

Go to

#

voice verification channel

#

and

#

verify it

winter phoenix
winter phoenix
#

Well is this a community for all levels of python programmers?

undone idol
#

@somber heath @winter phoenix @verbal oasis @fiery hearth would anyone like to join typing race?

#

k

winter phoenix
#

I can give it a try.

undone idol
#

@whole bear

#

Hi

whole bear
#

hi

winter phoenix
#

178 WPM?

undone idol
#

@somber heath what you have a wpm of 178?

#

huh?

#

How?

winter phoenix
#

ig average is 60 WPM

undone idol
#

lol

#

yes

#

and your voice is quite like old person how can you wpm 178?

#

Lol

winter phoenix
#

Still 78 is fast

somber heath
#

It's not 178.

undone idol
#

Ohk

#

Lol

#

haha

#

LOL

#

hahah

#

35?

winter phoenix
#

I am nearly half your age.

undone idol
#

lol I think opal is 60

winter phoenix
undone idol
#

I am jus joking Pls don't take it your heart

#

@somber heath Please don't take to your heart

#

Ohk

#

sorry i pinged you

#

cuz i thought

#

You were not looking

#

Hmm i heard the sound vibration

#

@winter phoenix link is here

winter phoenix
#

I am unable to view it

undone idol
#

ah my internet is slow

#

i can't give

#

can you

winter phoenix
undone idol
#

hmm

winter phoenix
winter phoenix
#

Here

undone idol
#

itcan be a lag

#

and i can loose it

winter phoenix
#

@undone idol got the link

#

I am miserable at typing

undone idol
#

Oh np

winter phoenix
#

40 WPM at max lmao

undone idol
#

lol

#

lag

#

I won

winter phoenix
#

Yeah

undone idol
#

Hmm

winter phoenix
#

Whats your WPM?

undone idol
#

i think

#

like 40

#

cuz of lag

#

it's 28

#

try again

#

Now my internet is fine

winter phoenix
#

here

undone idol
#

@verbal oasis

#

would you like to join

#

?

#

@celest jackal

#

Hhi

winter phoenix
#

@undone idol What you doing? as in profession?

#

i was not ready

undone idol
#

I used to help people

#

and

#

build projects

#

not in company

#

rn a Discord bot

#

AI powered

#

Would you like to join?

winter phoenix
#

oh nice i am pursuing my bachelors in AI

winter phoenix
#

Have no experience

undone idol
#

ohk that's cool

#

but i am younger than you

winter phoenix
#

@undone idol you there?

undone idol
#

but ya a dev

#

I am coding past 4 years

winter phoenix
#

If i may ask are you an Indian?

rugged root
#

I'm always surprised how many people we have from various parts of the world

#

It's amazing to me

winter phoenix
#

Yeah. These platforms have done an amzing job when it comes to connecting people

rugged root
#

Actually I'm curious...

#

!server

wise cargoBOT
#

Server information
Created: 4 years and 3 days ago
Voice region: europe
Features: WELCOME_SCREEN_ENABLED, DISCOVERABLE, PREVIEW_ENABLED, VIP_REGIONS, RELAY_ENABLED, BANNER, NEWS, VANITY_URL, ANIMATED_ICON, MEMBER_VERIFICATION_GATE_ENABLED, PARTNERED, COMMUNITY, INVITE_SPLASH

Channel counts
Category channels: 26
News channels: 8
Text channels: 151
Voice channels: 13
Staff channels: 61

Member counts
Members: 130,392
Staff members: 86
Roles: 85

Member statuses
status_online 37,227
status_offline 93,165

frozen oasis
#

tru dat

rugged root
#

130k and growing

#

So wild

frozen oasis
#

dayum

undone idol
#

Oh ye

#

@frozen oasis how do u jus send messages when Mr.Hemlock send messages and even jus join vc

rugged root
#

I'll be hopping on in a moment. Getting some stuff prepped here at work

frozen oasis
rugged root
#

Which one?

frozen oasis
#

maths

rugged root
#

Could be worse

frozen oasis
#

mhm

undone idol
#

LOL

#

Hemlock do u know Dhruv?

rugged root
#

At least it's not history or social studies. Those always messed with me. Lots of memorization.

rugged root
#

So yeah

undone idol
frozen oasis
#

i just used google to pass in those this whole yr

rugged root
#

As in during tests?

undone idol
frozen oasis
#

im not supposed to be studying those anyway

rugged root
frozen oasis
#

well one last yr and i can hopefully get rid of em

frozen oasis
rugged root
#

Via the /tenor command and using the key words shame shame shame

frozen oasis
lunar pendant
#

let's do this

undone idol
frozen oasis
lunar pendant
#

hello noob coders

winter phoenix
undone idol
#

@frozen oasis are you preparing for JEE

frozen oasis
#

started from 9th actually

lunar pendant
undone idol
lunar pendant
frozen oasis
#

im done with like more than half of jee syllabus

frozen oasis
undone idol
frozen oasis
#

thats cool tho

undone idol
lunar pendant
undone idol
#

But i am in class 7th

undone idol
#

hey

#

guys

lunar pendant
undone idol
#

Have you heard of PRERMO

undone idol
#

what are you working for there>

lunar pendant
lunar pendant
#

yaa man

#

it's ok

undone idol
#

Jus crying >/

#

huh?

#

lol

lunar pendant
#

my job?

rugged root
undone idol
#

are you serious? @lunar pendant

undone idol
lunar pendant
rugged root
#

Am I? I have to tell my boss at my accounting firm that I've apparently been missing work at my actual job, then

frozen oasis
lunar pendant
undone idol
#

hmm yes

rugged root
#

Hard to tell if it's a joke or not at times

frozen oasis
#

hm yes

rugged root
#

It's a bit different when it's folks you've been talking to for a while

#

Hard to get a read on people otherwise

undone idol
#

For how many years are u in this server? @rugged root

frozen oasis
rugged root
#

!user

rugged root
#

Um

wise cargoBOT
#
Mr. Hemlock#2740

hypesquad_balance early_supporter

User information

Created: 5 years, 3 months and 13 days ago
Profile: @rugged root
ID: 98195144192331776

Member information

Joined: 2 years, 8 months and 8 days ago
Roles: <@&463658397560995840>, <@&764802720779337729>, <@&295488872404484098>, <@&267630620367257601>, <@&797891034906099752>, <@&587606783669829632>, <@&267629731250176001>, <@&267628507062992896>

Infractions

Total: 9
Active: 1

rugged root
#

That many

undone idol
#

lol

lunar pendant
undone idol
#

hmm

rugged root
#

Well shit, if that's all it took...

undone idol
#

same

rugged root
#

Back in a bit, getting some papers from the other side of the office

undone idol
#

Hemlock Join vc

#

shall we interact

#

cuz i wanna know your life

rugged root
#

Just sat back down, one sec

undone idol
#

journey

#

Ohk

frozen oasis
#

ill be in in like 10 min hopefully class is a bit extended

undone idol
#

k

#

lol

#

enjoy

#

Try to speak

rugged root
#

No worries

undone idol
#

Hmm

#

Your voice

#

Is quite low

#

Volume

lunar pendant
#

Oh man my voice criteria isn't fulfil yet

undone idol
#

Ohk

#

Np

lunar pendant
#

It's 8 at night in india, and you say good morning, lol

undone idol
#

Lol

#

Ya

lunar pendant
#

Plz don't be racist bro, lol

undone idol
#

??

lunar pendant
#

I am just kidding bro

undone idol
#

Lol

#

Ohk

#

Can u tell me you r python journey

#

??

#

@rugged root

#

Like Python journey

#

So where do u began??

lunar pendant
#

@undone idol you are asking some weird stuff bro

undone idol
#

Hmm no

lunar pendant
#

ok, he agree

undone idol
#

Ya

lunar pendant
#

@undone idol why you need it right now first focus on jee exam

undone idol
#

Hmm

#

I don't

#

I m interested

lunar pendant
#

@rugged root ok, you are also a good story teller.

undone idol
#

Lo yes

#

He is

frozen oasis
lunar pendant
frozen oasis
lunar pendant
#

I like that american accent.

rugged root
#

Which one, mine or Reg's? There's actually a few different accents in the US

lunar pendant
#

In general

#

all

frozen oasis
#

texan is one ive tried to mimic many times but failed miserably

lunar pendant
#

We have chicken tikka masala😂

#

Did anyone tried that?

#

But it quite spicy for all of you , isn't?

cloud stratus
#

Sinkhole - Drive by Trucks is pretty good :D @rugged root

lunar pendant
#

China have covid-19 soup , did anyone tried that?

rich cloud
#

🤮

rugged root
rich cloud
#

sticking to on thing get kinda boring, agree

#

one*

cloud stratus
#

This one is pretty cool

lunar pendant
#

@frozen oasis bro you're indian right, then how you get american accent?

rich cloud
#

interesting.

lunar pendant
#

maybe he is faking

rich cloud
#

just by accident? xD

lunar pendant
#

Lol

#

I can talk in that accent too

rich cloud
lunar pendant
rich cloud
lunar pendant
#

ok, You are not

rich cloud
#

why is this so important to you? lol

lunar pendant
#

ok, I get it

rugged root
#

Just an odd question is all

lunar pendant
#

Burra is typing.....

cloud stratus
#

Hemlock, is it possible for to follow you on Spotify?

cloud stratus
rich cloud
wooden hornet
lunar pendant
lunar pendant
#

And now discord became more than 10B dollar company

cloud stratus
rugged root
#

Can't think of why I wouldn't be

#

Just music, right?

cloud stratus
#

Some folks don't ¯_(ツ)_/¯

lunar pendant
#

Did anyone do cp here?

rugged root
lunar pendant
#

because i mostly do cp and try to learn and didn't get started with development yet

versed island
#

i know this is a python server
but can any one point me towards some really awesome book / lectures for ☕ related web development, writing server software , server side encryption service etc

rugged root
glass kettle
#

hi

versed island
lunar pendant
rugged root
#

Oh enterprise grade, I have no idea

versed island
#

yeah

rugged root
#

@lunar pendant Okay, you and I need to have a talk

#

Why do you keep pointing out someone's nationality?

#

You've done it consistently

faint ermine
glass kettle
#

umm i am looking for some projects to do can you suggust

lunar pendant
rugged root
#

Really? Because it doesn't feel that way. It feels bizarre

glass kettle
#

pls dont

lunar pendant
rugged root
#

!projects

wise cargoBOT
#

Kindling Projects

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

rugged root
#

We've got a good batch of stuff on this link

#

Okay, my Discord keeps hanging

glass kettle
#

ok

glass kettle
#

or unistall and reinstall

rugged root
#

I can't use global push to talk using web

glass kettle
#

ah

#

why cant i tak

#

talk

rugged root
#

Aryan

lunar pendant
versed island
glass kettle
#

how

rugged root
glass kettle
#

ok

lunar pendant
#

just go to the voice-verification channel

faint ermine
glass kettle
#

You have sent less than 50 messages.

#

bruh

lunar pendant
glass kettle
#

lol

#

why tho

rugged root
#

@whole bear Please remember to mute whenever you're going to make loud noises like that

lunar pendant
mortal burrow
#

echo $DISPLAY returns empty string

glass kettle
#

what

lunar pendant
#

college

glass kettle
#

no

lunar pendant
#

Oh you are in school

glass kettle
#

yes sir in 9th

river river
#

Woah didnt know win + v was a thing :o

glass kettle
#

lol

faint ermine
glass kettle
#

its a good shotcut

glass kettle
wooden hornet
neon sleet
#

Oh I just noticed, there is no developer role anymore?

pure path
#

HI!

rugged root
neon sleet
#

why tho

lunar pendant
neon sleet
#

yes I am

pure path
#

Hemlock i thought you were contirbution lead, since when did u become voice lead

hollow haven
#

We did some internal shuffling of lead roles after discussion and clarification of what we want the roles to be

#

so this past week

#

Contribution lead is now split into two better defined roles: Triage Lead and Open Source Lead

neon sleet
#

oh, some major roles changes I see

lunar pendant
hard wyvern
#

hey what's guys

neon sleet
#

yes

rugged root
#

Majorish

pure path
#

Well ima go to sleep in 10 min

lunar pendant
pure path
#

11

gentle flint
#

Where do you set the limit?

hollow haven
#

They are a private company and not a necessary service, they have the right to do that

versed island
#

has anyone agreed to whatsapps new privacy policy 🕵️

#

EU is shielded by GDPR

whole bear
#

Hi guys

hollow haven
#

... what??

rugged root
#

I feel like this came out of nowhere

#

Hey Plus

whole bear
#

Hey

versed island
#

we dont have as strong data protection laws as EU

rugged root
#

Okay, sure

faint ermine
#

thats not a racial issue though

versed island
#

having different privacy standards

#

they can read your messages

#

in asia starting this february

hollow haven
#

That's because of different country laws... not because of anything racial

faint ermine
#

again, privacy standards/laws are not a racial issue. how does racial discrimination play into this?

whole bear
#

lol

winter phoenix
#

Contact Tracing using Bluetooth can be used to effeciently track covid patients.

versed island
#

i agree its not racial ... im saying that they know that they are serving two different privacy standards to different parts of the world

rugged root
#

I'm more bothered why it went straight to the racial thing. Like... as soon as someone states something is racially biased, it starts to get into a really polarized thing that can get messy

rugged root
#

They have to abide by certain requirements or lack there of

faint ermine
#

i agree its not racial
why then did you say "racially discriminated"

rugged root
#

Let's steer away from it

winter phoenix
#

Contact Tracing to track covid patients...

faint ermine
winter phoenix
#

So its for them

faint ermine
rich cloud
#

deg, min, sec

hollow haven
#

@faint ermine they are online converters that'll convert the different formats to decimal degrees, which is what you want

winter phoenix
rich cloud
#

this involve spherical trigonometry

#

geometry*?

rugged root
#

One of the ometrys

rich cloud
#

oww

faint ermine
#

7°30´ E

hollow haven
#

@faint ermine convert to decimal degrees via a smart online converter that'll identify the format, find the difference between the two lines, half it, and then do the math

rich cloud
#

only 60

winter phoenix
#

1 degree = 60 mintes

rich cloud
#

70 become 1 deg 10 min

winter phoenix
#

yup -180 to 180

rich cloud
#

lol

#

ahh

hollow haven
winter phoenix
#

@amber raptor to be able to pinpoint a pin point on land you need at least 15 digits after decimal

winter phoenix
rugged root
#

Can't. Stop. Yawning

faint ermine
rich cloud
#

xD

versed island
faint ermine
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @rugged root.

amber raptor
weary zephyr
#

tf

rugged root
#

Don't ask

rugged root
#

!paste

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

somber heath
rugged root
rugged root
#

@umbral lotus Sorry, I'm completely at a loss

#

Only thing I can suggest is trying to ask again either in #discord-bots or trying a help channel, see if someone else knows

grave osprey
#

yo so im tryna use OpenSSH Client on windows10 to ssh, but after installing the 'optional feature' the cmd ssh is still not recognized ? any ideas? (tryd admin/powershell/cmd)

#

yessir

#

where is it installed? like cud i add it to path maybe

#

hmm

solar tide
#

You can also install putty and go from there

grave osprey
#

i dont want to use putty or anything i want to use the native windows client

solar tide
#

It'll automatically add it to path

#

Ahh, gotcha

grave osprey
#

the windows edition matter? (im on home)

solar tide
#

nah

#

Its on home too

tiny seal
grave osprey
#

i checked my path after and it didnt add anything so maybe thats the issue?

tiny seal
#

C:\Windows\System32\OpenSSH\ssh.exe

#

is the path

#

check if you have it

grave osprey
#

think i got it now ty

rugged root
rugged root
#

Talking to boss

versed island
# grave osprey the windows edition matter? (im on home)

I went to one of his talks and got my laptop signed.
He really is an amazing person, although a bit of an extremist.

I shouldn't be uploading this video on Youtube because "it's an enemy of your freedom", so if you care about your freedom (and you should care) watch it here: http://www.federicodossena.com/stallman.html (requires a modern browser)

▶ Play video
glass gust
#

hey

#

i need to talk

#

D:

#

where do you buy them?

#

vps with BTC where?

#

@solar tide

rugged root
#
3. offer to sell any in-game items, characters, currency, accounts or powerlevelling services in any game where such transactions are prohibited by the publisher of the game```
#
You agree not to reproduce, duplicate, copy, sell, trade, resell or exploit for any commercial purposes, any portion of the Service (including your Xbox America membership name), use of the Service, or access to the Service.```
amber raptor
grave osprey
brittle crypt
#

guys send 1 million btc to this address for FREE robux ( No scam! )

limber blaze
#

im sitting in the call for my friends integrity thing gonna text him what to say

glass gust
limber blaze
#

he will survive this

whole bear
#

My pythonian lords. I come to you but a humble, puny pythonling in request of assistance.

rugged root
#

Do you genuinely feel like telling someone what to say for their integrity ordeal is not going to, in fact, going to continue to ruin his integrity?

#

Ever thought that by you trying to do this, you're making this worse? Over and over?

mystic marlin
#

BusinessLogicTransactionPreautortizerSecurityConfirmLogIntstanceFactory

#

best seen to date

rugged root
#

@whole bear Better to ask than to ask to ask. What's your question?

mystic marlin
#

BusinessLogicAuthorizationTwoWayAuthenticationAccountConfigurationChangerConfirmationAgentByTokenInternalOrganizationFactory

amber raptor
#

I've seen Java Classes this bad

weary zephyr
#

good ol' blatwacccabtiof

whole bear
#

I do not understand await.

#

in async.

rugged root
#

Oh sure, I can try to cover that

mystic marlin
#

//fix: added @ Deprecated

rugged root
# whole bear I do not understand await.

So async works on the concept of an event loop. Anything that happens when you're doing async gets added to that loop and gets worked on accordingly. When you await something, it tells Python that it may need to set that line to the side for a little bit if it takes too long to respond. Typically, async is used for Input and Output (I/O) operations which cover things such as sending requests to web servers, getting stuff from your hard drive, etc.

await prevents your program from getting stuck while waiting to get back with the information. It lets Python put that command to the side while it waits for the response.

#

I can go into more detail if you need me to

whole bear
#

I see. Is it possible you could write the smallest example of a program that prints a counter by one every second, but simultaneously wait for user input that status is good

#

like 'status check' every 5 seconds

#

and a print a counter every second

#

it would greatly help me to see it in action

mystic marlin
#

Oh no another gold piece

#

@Deprecated
// NOTICE| This class has been deprecated, it was the intended parent class
// for all authentication operations but everybody went on their way
and did not implement what we had agreed on
Oh well
public class Authenticathor{
...

rugged root
#

@whole bear So... kind of. There are things that are considered "blocking". So if we tried to use input(), it would prevent any progress on the rest of the program, as it can't be moved to the side and wait for it. However, if you use something like discord.py, you can wait on a user's input by watching for it, which can be periodically checked for. The main difference is that it watches for an event, which is exactly one of the things that async does well. input() however is something that takes over the program and says "Until Enter is pressed, we're not going forward."

For something like doing a status check, you'd have to do something like threading, but that ends up being a bit trickier

whole bear
#

Yea. I wrote something similar to that.

#
import threading
import time

class timeThread(threading.Thread):
    def __init__(self, function):
        threading.Thread.__init__(self)

    def run(self):
        GameTime = 0
        while True:
            time.sleep(0.2)
            GameTime += 1
            print(GameTime)

class inputThread(threading.Thread):
    def __init__(self, function):
        threading.Thread.__init__(self)

    def run(self):
        input('status check')
        while True:
            time.sleep(5)
            input('status check')

thread1 = timeThread()
thread2 = inputThread()

thread1.start()
thread2.start()```
faint ermine
whole bear
#

but it doesn't work like I thought it would

#

I found there is a specific IO modules for input not stopping the entire process

rugged root
#

Did you mean print('status check') instead of input()?

whole bear
#

no, I meant input

rugged root
#

Then yeah, it's going to block

whole bear
#

Right, i'm trying to find a way for it not to.

#

Apparently that's what aioconsole is for.

rugged root
whole bear
#

Ahh there is a channel for this

#

Thanks

rugged root
#

Yep yep!

#

No problem

mystic marlin
#

/* This is not doing anything useful but removing it causes issues so it's just gonna say there. Don't try to deal with this mess please*/

rugged root
#

@tiny seal lemon_mask

tiny seal
mortal burrow
#

tkinter

amber raptor
#

PyQT5

shadow trout
#

jsfuck

elfin fractal
#

just use var everywhere

shadow trout
#

wdym by typing

#

ah

mystic marlin
#

I am gonna write here

#

The worst thing I usually face with javascript usually is callback hell

hushed elm
mortal burrow
#

Ensemble Methods

elfin fractal
#

That was a comment about java

mortal burrow
#
  • combine multiple models together
hushed elm
#

🇹 🇸

shadow trout
#

binary is really cool

hushed elm
#

knowing binary is big brain move

shadow trout
#

i remember something called bit shifting (i think)
1011 is 11 in dec
10110 is 22 in dec
1101 is 5 in dec

amber raptor
#

Sure but implicit typing is still typing

noble copper
#

for binary just know: | 2^0 | 2^1| 2^2 | 2^ 3 |... addition, division and multiplication

honest pier
digital jackal
uncut meteor
#

!e

class Sad:
  pass

me = Sad()
print("Me is", me.__class__.__name__)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

Me is Sad
honest pier
#

oh

eternal bough
uncut meteor
#

!e

def rapper(func):
    def spit_fire():
        print("The Ting Goes Scurrr Wap")
        output = func()
        print("Skiddi bop")
        print("Budum budum bop")
        return output
    return spit_fire


@rapper
def drake():
    print("Bap bap bap bap bop")

drake()
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | The Ting Goes Scurrr Wap
002 | Bap bap bap bap bop
003 | Skiddi bop
004 | Budum budum bop
rugged root
#

!server

wise cargoBOT
#

Server information
Created: 4 years and 3 days ago
Voice region: europe
Features: WELCOME_SCREEN_ENABLED, DISCOVERABLE, PREVIEW_ENABLED, VIP_REGIONS, RELAY_ENABLED, BANNER, NEWS, VANITY_URL, ANIMATED_ICON, MEMBER_VERIFICATION_GATE_ENABLED, PARTNERED, COMMUNITY, INVITE_SPLASH

Channel counts
Category channels: 26
News channels: 8
Text channels: 154
Voice channels: 13
Staff channels: 64

Member counts
Members: 130,639
Staff members: 86
Roles: 85

Member statuses
status_online 33,370
status_offline 97,269

rugged root
#

!paste

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

vestal mason
#

Hey guys 🤟🏾

whole bear
#

!pythonrank

uncut meteor
#

Why are they called Horrorscopes when they aint very scary?

#

@eternal bough

grave osprey
#

because the scope of astrological signs is horrifying

rugged root
#

See you folks!

hybrid isle
#

byebye

dire folio
umbral lotus
#
async def muteTime():
    users = await database.get_muted_data()
    mod_chat = client.get_channel(778671755115888670)
    print("muted Time")
    for i in users:
            print("Looped")
            user = await client.fetch_user(i)
            print(user)
            daily_timer = users[str(user.id)]["time"]
            print(daily_timer)
            if daily_timer > 0:
                users[str(i)]["time"] -= 60
                print("Munis 60")
                with open("muted_players.json", "w") as f:
                    json.dump(users,f,indent=2)  
                
                

            else:
            

                print("unmuted")
                getGuild = users[str(user.id)]["server"]
                guild = client.get_guild(getGuild)
                member = guild.get_member(user.id)
                mute_role=discord.utils.get(guild.roles, name="Muted")
                await member.remove_roles(mute_role)
            #  await deleteMuted(user)  
                with open("muted_players.json", "w") as f:
                    users.pop(str(user.id))
                    json.dump(users,f,indent=2) 
                embed = discord.Embed(description= f"✅ **{member.display_name} mute has run out and is now unmuted**", color=discord.Color.green())
                await mod_chat.send(embed=embed)
#
async def muteTime():
    users = await database.get_muted_data()
    mod_chat = client.get_channel(778671755115888670)
    print("muted Time")
    for i in users:
            print("Looped")
            user = await client.fetch_user(i)
            print(user)
            daily_timer = users[str(user.id)]["time"]
            print(daily_timer)
            if daily_timer > 0:
                users[str(i)]["time"] -= 60
                print("Munis 60")
            else:
                print("unmuted")
                getGuild = users[str(user.id)]["server"]
                guild = client.get_guild(getGuild)
                member = guild.get_member(user.id)
                mute_role=discord.utils.get(guild.roles, name="Muted")
                await member.remove_roles(mute_role)
                users.pop(str(user.id))   
                embed = discord.Embed(description= f"✅ **{member.display_name} mute has run out and is now unmuted**", color=discord.Color.green())
                await mod_chat.send(embed=embed)
    with open("muted_players.json", "w") as f:
        json.dump(users,f,indent=2) 

dire folio
#

!e print(help(''.join))

wise cargoBOT
#

@dire folio :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'help' is not defined
mortal burrow
#

!user

wise cargoBOT
#

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

dire folio
#
>>> help(''.join)
Help on built-in function join:

join(iterable, /) method of builtins.str instance
    Concatenate any number of strings.

    The string whose method is called is inserted in between each given string.
    The result is returned as a new string.

    Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
umbral lotus
#
{
  "725556933104238592": {
    "name": "TMNM %",
    "time": 48000,
    "server": 707763073460600884
  },
  "707824096133775382": {
    "name": "ARC Lumi",
    "time": 0,
    "server": 707763073460600884
  },
  "181873412862377984": {
    "name": "BRUH Void",
    "time": 0,
    "server": 707763073460600884
  },
  "517147203135864852": {
    "name": "ARC sage",
    "time": 0,
    "server": 707763073460600884
  },
  "710979614306205782": {
    "name": "BRUH 4th",
    "time": 60,
    "server": 707763073460600884
  }
}
dire folio
#

users.keys()

#

for user in users.keys()

pastel shard
#

for i in list(users)

umbral lotus
#
async def muteTime():
    users = await database.get_muted_data()
    mod_chat = client.get_channel(778671755115888670)
    print("muted Time")
    for i in list(users):
            print(users)
            user = await client.fetch_user(i)
            print(user)
            daily_timer = users[str(user.id)]["time"]
            print(daily_timer)
            if daily_timer > 0:
                users[str(i)]["time"] -= 60
                print("Munis 60")
            else:
                print("unmuted")
                getGuild = users[str(user.id)]["server"]
                guild = client.get_guild(getGuild)
                member = guild.get_member(user.id)
                mute_role=discord.utils.get(guild.roles, name="Muted")
                await member.remove_roles(mute_role)
                users.pop(str(user.id))   
                embed = discord.Embed(description= f"✅ **{member.display_name} mute has run out and is now unmuted**", color=discord.Color.green())
                await mod_chat.send(embed=embed)
    with open("muted_players.json", "w") as f:
        json.dump(users,f,indent=2) 
dire folio
#

!e

from collections import ChainMap

population = dict(italy=60, japan=127, uk=65)
changes = dict()
editable_pop = ChainMap(changes, population)
print('population of Japan from ChainMap: ', editable_pop['japan'])
editable_pop['japan'] += 1
print('population of Japan from ChainMap after +1:', editable_pop['japan'])
print('population of Japan from original dict: ', population['japan'])
print('changes is saved in the first dict of the chain: ', changes.keys())
wise cargoBOT
#

@dire folio :white_check_mark: Your eval job has completed with return code 0.

001 | population of Japan from ChainMap:  127
002 | population of Japan from ChainMap after +1: 128
003 | population of Japan from original dict:  127
004 | changes is saved in the first dict of the chain:  dict_keys(['japan'])
dire folio
#

!e

import os
from collections import ChainMap, defaultdict

command_line_options = dict()  # just imagine what it does
config_file_options = dict()  # just imagine what it does

options = ChainMap(command_line_options, os.environ, config_file_options,
                   defaultdict(lambda: 'default_value'))
value = options['optname']
value2 = options['other-options']
print(value, value2)
wise cargoBOT
#

@dire folio :white_check_mark: Your eval job has completed with return code 0.

default_value default_value
dire folio
#

!e

from itertools import product, starmap


size = 8

def neighbours(sel_cell):
    x, y = sel_cell
    for cell in starmap(lambda a,b: (x+a, y+b), product((0,-1,+1), (0,-1,+1))):
        if cell != sel_cell and all(0 <= n < size for n in cell):
            yield cell

print(list(neighbours((0, 2))))
wise cargoBOT
#

@dire folio :white_check_mark: Your eval job has completed with return code 0.

[(0, 1), (0, 3), (1, 2), (1, 1), (1, 3)]
dire folio
#

!d nonlocal

wise cargoBOT
#

This appears to be a generic page not tied to a specific symbol.

dire folio
#

!names

wise cargoBOT
#

Naming and Binding

A name is a piece of text that is bound to an object. They are a reference to an object. Examples are function names, class names, module names, variables, etc.

Note: Names cannot reference other names, and assignment never creates a copy.

x = 1  # x is bound to 1
y = x  # y is bound to VALUE of x
x = 2  # x is bound to 2
print(x, y) # 2 1

When doing y = x, the name y is being bound to the value of x which is 1. Neither x nor y are the 'real' name. The object 1 simply has multiple names. They are the exact same object.

>>> x = 1
x ━━ 1

>>> y = x
x ━━ 1
y ━━━┛

>>> x = 2
x ━━ 2
y ━━ 1

Names are created in multiple ways
You might think that the only way to bind a name to an object is by using assignment, but that isn't the case. All of the following work exactly the same as assignment:
import statements
class and def
for loop headers
as keyword when used with except, import, and with
• formal parameters in function headers

There is also del which has the purpose of unbinding a name.

More info
• Please watch Ned Batchelder's talk on names in python for a detailed explanation with examples
Official documentation

dire folio
#

!e print([[1]]*10)

wise cargoBOT
#

@dire folio :white_check_mark: Your eval job has completed with return code 0.

[[1], [1], [1], [1], [1], [1], [1], [1], [1], [1]]
hallow lava
#

hi

#

everyone

#

I need some help

tidal salmon
hallow lava
#

I can't write share ss ?

#

but don't working I have a no idea

tidal salmon
hallow lava
#

okey

#

one minute

#

-- coding: utf-8 --

"""
Created on Tue Jan 12 03:16:41 2021

"""
import cv2
import numpy as np

img = cv2.imread("/images/people.jpg")
print(img)

tidal salmon
hallow lava
#

value is empty

tidal salmon
#

!traceback

wise cargoBOT
#

Please provide a full traceback to your exception in order for us to identify your issue.

A full traceback could look like:

Traceback (most recent call last):
    File "tiny", line 3, in
        do_something()
    File "tiny", line 2, in do_something
        a = 6 / 0
ZeroDivisionError: integer division or modulo by zero

The best way to read your traceback is bottom to top.

• Identify the exception raised (e.g. ZeroDivisionError)
• Make note of the line number, and navigate there in your program.
• Try to understand why the error occurred.

To read more about exceptions and errors, please refer to the PyDis Wiki or the official Python tutorial.

cosmic thorn
#

can I ask stupid questions?

#

not stupid just naive

whole bear
severe pulsar
#

@earnest crag whats even happening in the conversation

#

lmao

hallow warren
#

('tuple', )

whole bear
#

Hello. @whole bear

#

Yeah.

#

I do.

#

No, never heard of that.

#

Do you?

#

Understood.

#

So they said that you can get someone to do it for you?

#

Let's not split hairs.

#

XD

sick cloud
#

‫message ‫this is an

whole bear
#

I've never heard of a zero iteration condition.

#

Let me look it up.

#

I do.

#

Yeah, not voice verified.

#

Such big conditions.

#

To get verified.

sick cloud
#

||also what he said||

whole bear
#

Spanish and Filipino is a weird mix.

#

Isn't a iteration condition just the condition at the start of a iteration?

#

while 1: <- iteration condition
print("hello")

#

That's what I would guess.

#

Is this a term your teacher just made up? I can't see it online. lol

#

Yeah.

#

He needs to define it himself because he just took that out of his arse.

#

Nice!

#

好的。

#

I'm half filipino too.

#

Australian.

#

I want to learn mandarin though. XD

sick cloud
#

i've never heard of mandarin tbh

#

‫message ‫this is a

whole bear
#

Really? @sick cloud

sick cloud
whole bear
#

Mandarin ( (listen); simplified Chinese: 官话; traditional Chinese: 官話; pinyin: Guānhuà; lit. 'speech of officials') is a group of Sinitic (Chinese) languages spoken across most of northern and southwestern China. The group includes the Beijing dialect, the basis of the phonology of Standard Chinese. Because Mandarin originated in North China and ...

#

Official language of Mainland China.

sick cloud
#

u from china @whole bear ?

whole bear
#

No, I'm from Australia.

glass gust
#

i cant talk D:

#

we

#

need

#

to

#

message

#

50

#

times

#

to

sick cloud
#

@whole bear i'm voice-verified but my mic is $hit

glass gust
#

verify

whole bear
#

f

glass gust
#

yes actually

whole bear
#

Yeah

#

,

sick cloud
#

@glass gust donot spam though

glass gust
#

i

#

m

whole bear
#

it

#

sucks

glass gust
#

django

#

developer

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2021-01-12 07:14 (9 minutes and 59 seconds) (reason: duplicates rule: sent 5 duplicated messages in 10s).

#

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

sick cloud
#

u would get muted

#

lol

#

f

#

@whole bear

glass gust
#

whats your

#

problem again

sick cloud
#

@whole bear nope, i'm gonna have breakfast rn

green bone
#

Friendly reminder:

Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community

glass gust
#

whats the gray square

#

i need to eat so

whole bear
#

@sick cloud, actually you want to go to DMs?

minor drum
#

If there is some1 who can help me please come in code help 1

gentle flint
#

idk if I can help you without seeing the question first

#

why don't you open a help channel

#

much easier

gentle flint
#
tensorflow==1.15
umap-learn
visdom
librosa>=0.8.0
matplotlib>=3.3.0
numpy==1.19.3; platform_system == "Windows"
numpy==1.19.4; platform_system != "Windows"
scipy>=1.0.0
tqdm
sounddevice
SoundFile
Unidecode
inflect
PyQt5
multiprocess
numba
#
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 48, in run
    pypi_hits = self.search(query, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 65, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/usr/lib/python3/dist-packages/pip/_internal/download.py", line 791, in request
    return self.parse_response(response.raw)
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1342, in parse_response
    return u.close()
  File "/usr/lib/python3.7/xmlrpc/client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.">
#

woohoo

undone idol
#

Hi

#

@somber heath

fresh python
#

hello guys, i know is off-topic but, perhaps any of you know a way to remove a committed .exe file from the github repository by bash CLI?

#

was searching for it but couldn't figure it out

#

git rm -rf --cached **/*.exe

#

i wanna remove that shit, i commit for mistake

whole bear
#

@wise glade Hi do you know basic python by chance?

undone idol
#

Lol

#

From docs

whole bear
#
#   a116_buggy_image.py
import turtle as trtl
# instead of a descriptive name of the turtle such as painter,
# a less useful variable name x is used
x = trtl.Turtle()
x.pensize(40)
x.circle(20)
w = 6
y = 70
z = 380 / w
x.pensize(5)
n = 0
while (n < w):
  x.goto(0,0)
  x.setheading(z*n)
  x.forward(y)
  n = n + 1
x.hideturtle()
wn = trtl.Screen()
wn.mainloop()
#

Begin a block string before the w = 6 line and end it right before the wn = trtl.Screen() line.

#

So im supposed to do that ^

urban stag
#

a = 5

#

w = 6

undone idol
#

Wait

#

What's

#

The problem

#

Hmm

whole bear
#

You can think of the block string technique as temporarily commenting out code segments. However, block strings should not become a permanent part of your code. When you want to comment your code permanently, use the comment character #.

somber heath
#
print('Hello')
"""
print('Bye')
print('Why?')
"""
print('Blah')```
viral shale
#

hello

#

everyyone

somber heath
#

Docstring.

viral shale
#

whats goin on

#

why

#

@somber heath

wise glade
viral shale
#

why shouldn't we use kali @somber heath

whole bear
#

@viral shale look at your dm

viral shale
#

ok

somber heath
#

@wise glade use the instance as a parameter to dir.

versed island
#

are you asking me

wise glade
#

no, I get it, just this was something I haven't seen in a while, and had forgotten bout it

undone idol
#

Yes

undone idol
#

So what are u working on

versed island
#

ohh ... im just trying to fish so many things

undone idol
#

@viral shale

versed island
#

i dont know what would work .. market is quite saturated

wise glade
#

python doesn't have private, public, protected encapsulation, so name mangling is one way to do it @somber heath , I think

undone idol
versed island
#

and the barrier for entry is not as low as the dot com bubble

somber heath
#

@wise glade It's...a thing.

versed island
#

@undone idol im not speaking right now

undone idol
versed island
#

i can ... but im doing some work ... just here to listen

whole bear
#

Hi

undone idol
wise glade
#

srry

#

incomplete

undone idol
#

What's your windows versions @whole bear

wise glade
whole bear
#

windows 10

#

I'm beginner level for now

undone idol
wise glade
undone idol
#

Why is it slow

whole bear
#

its currently resetting

#

it is always 100 percent disk usage

#

i think i may have installed a virus of some sortys

undone idol
undone idol
#

Haha

whole bear
#

lol i dont do computer science really, im an art major hahhaa

undone idol
#

Oh cool

whole bear
#

haha thanks

undone idol
#

Can you show me your art

#

Like one portrait

whole bear
#

yeah sure, i just finished a rough sketch

#

its pretty simple but it was just for fun

undone idol
#

Ok cool

#

It's cool

#

Jus dm me your portrait

#

@whole bear

hallow warren
#
undone idol
#

Hmm??

#

I am learning cybersecurity hi @wise glade

wise glade
#

hello

#

that's how you introduce yourself everywhere? 😂

undone idol
#

No

#

I was jus saying hi to you

versed island
#

we are losing time ... anyways

undone idol
#

Bro

undone idol
versed island
#

the simulations argument is not baseless

#

it scientific

wise glade
versed island
#

the thing is that you cant see an object in a dimension thats higher than your dimensionality

#

so its scientific

#

but without proof

#

this might be helpful

undone idol
#

Hmm

#

Good Evening Nice to meet you Again @rugged root

#

So

#

I can't talk to you yesterday cuz I had to go

versed island
#

earth sucks

undone idol
#

Lol no

#

It don't

wise glade
#

ok, gotta go, dinner time

hallow warren
whole bear
#
#   a116_buggy_image.py
import turtle as trtl
# instead of a descriptive name of the turtle such as painter,
# a less useful variable name x is used
spider = trtl.Turtle()
spider.pensize(40)
spider.circle(20)
w = 6
y = 70
z = 380 / w
spider.pensize(5)
n = 0
while (n < w):
  spider.goto(0,0)
  spider.setheading(z*n)
  spider.forward(y)
  n = n + 1
spider.hideturtle(
wn = trtl.Screen()
wn.mainloop()
hallow warren
whole bear
#

kek

hard wyvern
#

Hello @frozen oasis

pure path
#

HI!

neon sleet
#

hi

undone idol
#

Yo

hard wyvern
#

hello

undone idol
#

Sup

neon sleet
#

Has anyone of you ever worked with genetic evolution algorithm?

pure path
#

only 12 help dormant help channels

pure path
#

ye

#

i want it to be 0

#

in dormant

#

i don't it would just be fun to see 40 help channels in occupied

undone idol
#

Hmm

pure path
#

ye it pings helpers

undone idol
#

Yes

neon sleet
#

If ever there are 0 occupied help channels, I am gonna ping everyone

neon sleet
#

probability of occupied help channels getting 0, hmmm is almost 0.0539

pure path
#

I think it's disabled

#

ye

undone idol
neon sleet
#

if its disabled, try pinging lol

#

just kidding

undone idol
#

Lol

#

K

neon sleet
#

pylint is crappy

#

it shows a lot of errors while working with cv2

amber raptor
#
    rolls = options.get("rolls") or 1```
undone idol
amber raptor
#

options.get('maximum',6)

pure path
undone idol
pure path
#

11 channels left

undone idol
#

Ooo

rugged root
#

Computer is pooping itself again

undone idol
#

Ya

amber raptor
#
        "options": [{
            "name": "cardname",
            "value": "The Gitrog Monster"
        }],``` WHY DISCORD WHY?
pure path
#

😕

rugged root
#

It's going to keep screwing up while I'm waiting for the repair to finish

pure path
#

8 channels left

#

I mean i normally would but rn i won't

#

Sad help channels are being closed

#

do run an async function u do asyncio.run()

#

there is aiosqlite library for that

#

cya

#

ooooooo

#

ye

rugged root
#

Back to trying to fix this

#

Whoop de shit

#

We know that it's going to be different per region

#

Most are

versed island
#

hmm

rugged root
#

Sorry, this is frustration at the whole database bullshit, not you

#

Shouldn't have been snippy

versed island
#

haha

#

chill

rugged root
#

Plus this whole whatsapp privacy thing has been brought up over and over lately

versed island
#

hmm

spark basalt
#

hey

rugged root
#

Hello

hybrid vine
#

Hey

pure path
#

and you can see more git repos

#

in discord sense joe

rich cloud
#

xD

pure path
#

wait yes u can but with some other libbraries

rugged root
pure path
#

websites

#

Is c is made through assembly?

rich cloud
#

xD

paper rain
#

Hey there

rugged root
#
pure path
#

and there are millions of server

#

The core devs

limber blaze
#

yo i got a wallet

#

finally

dense ibex
#

ayyy

limber blaze
#

i lost my cards like hundreds of times

pure path
#

no?

#

it's pretty good

halcyon flare
whole bear
#

bruh i need to send 50 messages to speak in voice

#

wow that sucks

#

yeah i get it

#

ok thanks

limber blaze
#

why do they have to see what i type daily they don't understand i am doing stuff and then deleting a lot of stuff

#

and then doing more stuff

#

and that's how i work

halcyon flare
#

@limber blaze What are you talking about?

limber blaze
#

they want to see what i do every day

#

which i know is reasonable

#

but i'm inconsistent because i'm trying to figure out extremely advanced concepts

halcyon flare
#
while True:
  quedictionary = pandas.Series({
      1 : "How much ocean territory does India occupy?\n\n(a) 70,560,000 square kilometers\n(b) 90,000,000 square kilometers\n(c) 100,000,000 square kilometers\n(d) 23,400,000 square kilometers",
      2 : "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18",
  })
  querandomkey, querandomvalue  = random.choice(list(quedictionary.items()))
  print(str(querandomkey) + str(querandomvalue))```
limber blaze
#

dict[list(dict.keys())[0]]

#

dict[list(dict.keys())[0]]

cedar briar
#
>>> from random import choice
>>> keys = qd.keys()
>>> qd[choice(keys)]
limber blaze
#

dict[x:=list(dict.keys())[0]]

#

x is the key

halcyon flare
#
while True:
  quedictionary = pandas.Series({
      1 : "How much ocean territory does India occupy?\n\n(a) 70,560,000 square kilometers\n(b) 90,000,000 square kilometers\n(c) 100,000,000 square kilometers\n(d) 23,400,000 square kilometers",
      2 : "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18",
  })
  querandom  = random.choice(list(quedictionary.values))
  print(querandom)```
frank thicket
#

why random.sample?

sonic wraith
#

import random, pandas
quedictionary = pandas.Series({
1 : "How much ocean territory does India occupy?\n\n(a) 70,560,000 square kilometers\n(b) 90,000,000 square kilometers\n(c) 100,000,000 square kilometers\n(d) 23,400,000 square kilometers",
2 : "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18",
})
querandom = random.simple(list(quedictionary.values))
print(querandom)

eternal bough
#

sample

frank thicket
#

ok

amber raptor
#

Seems like Panda is overkill for this

sonic wraith
#

TypeError: 'int' object is not callable

#

kahoot!

eternal bough
#

user inputs number of questions to take for quiz

#

if questions executed exists in set()

#

choose another question

sonic wraith
#

import random, pandas
while True:
inputseg1 = ""
if inputseg1 == "/run" :
quedictionary = pandas.Series({"How much ocean territory does India occupy?\n\n(a) 70,560,000 square kilometers\n(b) 90,000,000 square kilometers\n(c) 100,000,000 square kilometers\n(d) 23,400,000 square kilometers", "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18"})
querandom = random.sample(list(quedictionary.values))
print(querandom)

frank thicket
#

its a single string

eternal bough
#

check if question was already displayed to user by seeing it's in the set

if question already displayed, then choose another question

question_to_be_displayed = random.sample(list(quedictionary), 2)

for example this above returns [3, 2]

your_set.add(# the random choice that was generated from the dictionary as a key, like 1, 2, or 3)

display to user

frank thicket
#

I can't understand this codes , line 2 and random.sample ..

#

How about this line : your_set.add(# the random choice that was generated from the dictionary as a key, like 1, 2, or 3)

sonic wraith
#

` import random
while True:
inputseg1 = ""
if inputseg1 == "/run" :
your_set = set()
quedictionary = {
1: "How much ocean territory does India occupy?\n\n(a) 70,560,000 square kilometers\n(b) 90,000,000 square kilometers\n(c) 100,000,000 square kilometers\n(d) 23,400,000 square kilometers",
2: "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18",
3: "Third question"
}
question_to_be_displayed = random.sample(list(quedictionary.values))
your_set.add(quedictionary)
print(querandom)

#

if querandom == quedictionary[1]:

#

quedictionary = {2: "How many countries does India border?\n\n(a) 7\n(b) 12\n(c) 20\n(d) 18",}

wise cargoBOT
#

@eternal bough :white_check_mark: Your eval job has completed with return code 0.

001 | How much ocean territory does India occupy?
002 | 
003 | (a) 70,560,000 square kilometers
004 | (b) 90,000,000 square kilometers
005 | (c) 100,000,000 square kilometers
006 | (d) 23,400,000 square kilometers
007 | Third question
#

@eternal bough :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     import random 
003 | IndentationError: unexpected indent