#voice-chat-text-0
1 messages Β· Page 692 of 1
becoz i have people who buy products
i will know what they do and what they like
yeah but amazon ads play on youtube
becoz google has data
to find potential customers
and also we can use data for research
i may sound stupid but when i saw the potential of ml,deep learning
National Diet of Japan
sounds so melodic
Erm, the hat?
Ah, the dragon fractal
from turtle import Turtle
from colorsys import hls_to_rgb
from itertools import cycle
shelly = Turtle()
shelly.screen.colormode(1.0)
shelly.screen.bgcolor('black')
shelly.screen.tracer(0, 0)
rainbow = [
hls_to_rgb(hue/1000, 0.5, 1.0)
for hue in range(1000)
]
F, R, L = 'forward(5)', 'right(90)', 'left(90)'
path = [F]
for i in range(13):
path = path + [R] + [
{F: F, R: L, L: R}[command]
for command in reversed(path)
]
shelly.speed(0)
for command, color in zip(path, cycle(rainbow)):
shelly.color(color)
eval(f"shelly.{command}")
shelly.screen.update()
input()
Yep, change 13 to a higher number.
That's the number of 'folds'.
Opal's stuff is more impressive π
I was merely imitating
A Christmas message from the Foxy Ladies of Fountain Lakes
Yo
Im working on this code and i keep getting an error.. anybody can check it out? I would highly appreciate it
!paste
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.
all the way on top
yes
That is where imports live, conventionally.
ok it runs now
Now catch it.
Hey, I think the section where you select five players could be simplified π
There is elegance in simplicity.
There is a random.sample function.
I see
Unless, of course, said simple ends up being really awful. This is a quip and not to be considered with seriousness.
Also when it asks for the team can i give options?
Because i feel like when a person runs it, it leaves them hanging if they dont know to put warriors
Thoughts?
Could print the potential list of options ahead of time
How?
You can print them.
You could probably make use of the str.format method. I'd normally suggest f-strings, but if you're dealing with escape characters, which you might want to use to do multiple lines, f-strings get huffy about them.
that sounds intersting... id like to learn the str.format
im n ew to this... mind walking me through it
Hey hey.
I would suggest you pick up f-strings first. It's an easier concept to grasp. I'm approaching when I'd sleep, so I'm of limited use.
oh man
You can look up tutorials on youtube, however, and there is always the help() function.
anybody else here that helps?
>>>help(str)```
f"This is my {name}"```
name = input('What is your name? >')
print(f'Hello, {name}.')```
"This is my {}".format(name)```
how can i change that to fit my code and what im trying to do?
is there a site to check an encoding of something?
or that can autodetect an encoding and decode it?
You may like to look into feeding starred parameters into functions that take more than one argument, list comprehensions and str.join.
@digital jackal
how would it look?
yes
i wanted to give the user the option to choose from a set of teams
@broken kestrel The more basic building blocks you can add to your palette, the ways you'll be able to imagine, yourself, how to fit things together.
so use this??? name = input('What is your name? >')
print(f'Hello, {name}.')
and replace whats in the codes
quotes*
dir winword.exe /s
That was an example of how you can use input to take text from a user, = to assign the object/data on the right of it to the variable, nsme on the left.
To then take that variable and give it to another string, an f-string in this case
Which looks at things inside curly brackets{}
so i would put {choose a team from below}
and tries to resolve them. So give it name, well, we assigned the return of input as name
so change name to teamname?
!e
print(f'Hello, {name}.')```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, Pete.
Oh like a macro @digital jackal?
Did you try this command from the article? dir winword.exe /s
opal im stilll confused becaus emy example is kind of different regarding asking something and providing options..
yes
Ah right.
Erm, I'm not a Windows user π
@broken kestrel If I suggest something that seems unrelated, it's not unrelated to one solution or another.
@broken kestrel In understanding the elements I'm suggesting, you may then go on to seeing how you might think about solving the problem on your own.
I can certainly help you with those basic elements. Project logic, that's your foe to vanquish, though I might be able to suggest strategies.
Show the error messages.
I'll try to explain them.
~complete_path\Word 2016.lnk
.
~complete_path\Word 2016.lnk
n = int(input('Please enter the number of iterations:'))
for i in range(0,n):
print('Enter 1 for choice 1\n')
print('Enter 2 for choice 2\n')
print('Enter 3 for choice 3\n')
choice = int(input('Enter your choice:'))
if (choice == 1):
....
....
else:
print('Invalid choice')
i did the numbers just to simplifiy it
but im ganna changethe numbers to team names
u know????
can you run my code and youll understand
range can just be range(n). (choice == 1) can drop the brackets.
Erm
def open_word():
subprocess.run(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Word.lnk")
open_word()
int will break if you feed it letters. You can look into def, while, try and except to combat that.
Unicode for space? Like the code point?
n = int(input('Please enter the number of iterations:'))
for i in range(n):
print('Enter 1 for choice 1\Warriors)
print('Enter 2 for choice 2\Lakers)
print('Enter 3 for choice 3\Heat)
choice = int(input('Enter your choice:'))
if (choice == 1):
....
....
else:
print('Invalid choice')
so like this
oh int will break???
If fed letters.
Oh, just put it in quotes?
!e int('e')
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'e'
Word\ 2016
so how do i change it
C:\ProgramData\Microsoft\Windows\Start Menu\Programs> Word.lnk
@broken kestrel Reread what I've recently said. π
OSError: [WinError 193] %1 is not a valid Win32 application
is it simply replacing int with def
ya im reading about it as we speak
Australian "Little Raven".
No talk of cracking software please π
We call them crows.
import os
os.system("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Word.lnk")
import os
os.popen("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Word.lnk")
@broken kestrel I am not really strong on thinking at the present moment. Double-starred parameters can be a lesson for another time. They're the dict of parameters.
i wasreading about it and it sees simple
for my project i have to use dictionaries thats one of the requirements... so dont you think i should take that route
def GetStringChoice(prompt, options):
so like this
def sum(**args)
def sum(x)
prompt = "Which Team do you want?"
input_options = {"a":"Warriors", "b":"Lakers", "c":"Heat", "d":"Clippers"}
>>> response = GetStringChoice(prompt, **input_options)
Which Team do you want?
- 'a' for 'Warriors'
- 'b' for 'Lakers'
- 'c' for 'Heat'
- 'd' for 'Clippers'
ya no i understand
so thats what i have in my code, u wouldnt suggest that
seriously tho i appreciate you guys sitting here elping me
should i eraseall this ???
i really dont know what to change
here
did u guys try running my code?
ya what did u put for the team name
did it give you an error
thats what im saying i need to fix that
i wnat to give the user to provide options
like to choose there team name
!e
v = _dict['a']
print(v)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
apple
With the !eval command.
!eval
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
_dict = {'a': 'warriors', 'b': 'lakers', 'c': 'Heat', 'd': 'clippers'}
yourteamname = _dict['a']
print(your team name is)
i followed your example
@broken kestrel are you able to voice-verify yet?
_dict = {'a': 'warriors', 'b': 'lakers', 'c': 'Heat', 'd': 'clippers'}
team = _dict['a']
print(team)
no
this is my first time here
gtg
team = {'a': 'warriors', 'b': 'lakers', 'c': 'Heat', 'd': 'clippers'}
name = team['a']
print(your team name is)
See ya @tranquil barn π
im sorry im losttt lol
'This is a string'
please put me in the right diresction
wait so ill still need this in my code right???
team_name = input('Tell me the team name: ').strip()
team_01 = Team(team_name, 5)
#team_01 = Team("Warriors", 5)
team_01.make()
this is a free project im just doing random stuff to make a project
...
im starting my first class this semester
ya
i will for sure
i like basketball so i just want to finish this
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
can u walk me through it... like my example
just because i already started it
im learning as i go
yup
Anybody on to help with my errors??
cool project
what's the op voltage of a USB type c? google's confusing me on this
55 volts
google said from 5 up to 20, now u say 55 π΅
true
had to google faraday cage. Any of u seen movie transcendence of Jhonny Depp, they use some copper sheilding, its the same, right?
cause em waves always stay outside on the surface of the closed metal containers
no 5g where I live, for the time
in india, they just blow stuff up cause they connect it to the mains, 220V 50Hz direct, to save electric bill
yeah,
sparks fly outside homes, when their thin wires burn down
people aren't engineers, they're just brave and don't care
there's a video from smarterEveryday, he does something like this, with tesla coil, makes a tesla gun or something
Here, people tie a chain's end with a lock and throw em on these towers wires, and they short ckt & melt down cause super high voltages flow in them, and they collect the wires & sell em (these kinda wires r expensive too). Nice place India, u should visit π
this camera reel canister?
its for photo film
if u hear any noise please tell me, my mother just came, & she can b loud
yeah, she's doing dishes now
powerpoint presentation
π
I'll do Merge sort with multiprocessing later today
@whole bear what did you make? with microcontroller? I mean, what does it do?
hmm, never seen anything like that, on youtube or anywhere
nice
neat
future salt levels?
soil salinity changes on its own? or can change on its own?
no trees, no human intervention needed
srry, want to stay, but can't, have a class, right now, just realized it, bye π
encrypted text:
Code: 21
Text: Hello, World.
Output: -378--315--462--462--525--1176--1260--693--525--588--462--294--1197-
no
any sports
no
F
@severe pulsar hello
hey
welcome back
Check out the #voice-verification channel. That should tell you what you need to know
brb
WTF xd
is there any discord.event when someone enters the server?
I don't have games that big lol
I only play apex legends, I am a good man
heyhey, btw is there any discord.event when someone enters the server?
what it is ?
no i dont think so
There is, we have a log that watches it
oh srry
Just got to remember the event
on_member_join
oh cool, thanks!
no problem
hmm
omg
import discord
@bot.event
async def on_member_join(member: discord.Member):
pass
@neon sleet
thanks @severe pulsar
java is completely oop i think
and im glad for that
python is also a good oop language
what do you mostly code in @whole bear
Yeah it takes some getting used to if you're used to the C's and what not
And Java, yeah
MyHugeClassName object = new MyHugeClassName(params);
dont enjoy this syntax lmao
thats just personal though
like why am i repeating this one huge class name twice
niiiiice
i mean it reduces ambiguity so thats cool
yeah
no static typing > dynamic typing always in my opinion
that repeating is because of java's static nature
thats why i enjoy typescript
hey btw why isn't my on_member_join() function working?
it does work on bot join aswell ?
ah ok
the function isn't working on member join aswell?
@bot.event
async def on_member_join(member: discord.Member):
print(member)
aint printing anything
yep
hmm
I made my test account join
hello
ok this is sure
but...
looks pretty good!
bruh you did this in java? respect
a
thats actually pretty nice man
I saw something on some programming subreddit where someone made a webapp where you can simultaniouly watch videos w/ your friends with one url. There's w2g, but this was just some project someone made and it worked so much better than w2g
omg....
you need to go to developer portfolio
and then app/bot/intents?
something like that
is this js or java ?
i love how you know the method will throw an error, and you're just like "aah yeah just ignore that ;)"
thx
heyo
what is awt
I got into programming python again.
also quick question
c++ or c and java or javascript
I like dynamic langs
all
in 3 years ?
oh yeah that ASUS one is dumb
but maven uses xml(>:( personal preference lmao) ;-;
it also probably has TabNine
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
i only have pandas: https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS
do u prefer tabnine or kite ?
I am missing two screens
Kite?
freeware is restricted
IDE suggestions are more than enough for me in pycharm
yep
i use ||VSC|| so i use both of of the ||autocomplete||
what ide do you guys use for python bois
.disable-select {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}```
isn't there any framework in python similar to electron.js?
what does discord.Role() takes in as parameters?
are you creating a role?
hmm if it is an existing role
then just get it
I don't wanna get it from the user
i assume you were referring to the getter/setter pattern? python has it in the form of properties, not methods
I want to learn java sometime later, just for minecraft modding
I know only the basics as of now
SUUUP!
I cannot talk, cuz I'm new))
looking it up thx
what does String args[] means in public static void main(String args[])?
i dont understand why getters and setters are features though
is it just for clean code?
you can directly change the property in both python and java
given the property is public
maybe you do person.name = "somename , and say name is a property but instead of saving it as somename, you wanna modify it and save it @severe pulsar
thats when you write a custom setter
Where r u from, guys?
turkey
hmm ok
I'm from Ukraine
btw, I just finished my University admission today
finally entering uni
lets see
I am more of an introvert, and its online classes
uni starts from jan
I go out only to play sports
I just feel so uneasy when extroverts jump around me shouting
Not a big fan of partying or shopping
I am a kinda of person where, instead of going out to eat, I would order food and spend time watching a movie or playing UNO
SAME
Unless there is UNO
Sometimes, me and my friends spend the whole night playing UNO
and minecraft takes a lot of my time
I play on a minecraft server, I have been with them for over an year
amazing community
closed community
we got secret santa event coming up soon
One of the server members made this christmas skin
do you play minecraft with rtx on?
how can I? I am poor :/
i have a 1650 super, got it recently
I got a 1650 π¦
laptop?
pc
oh
would buy a new one soon
cool
I wanted a better processor
compared to the GPU
so went with intel i5 6 core processor
I still have to buy windows, lol
I am using the organization version
which lasts for 180 days
haha yeah? I didn't even buy win 10, I used win 7 product keys and it activated that trial version
I haven't done day 2
was busy with uni admission stuff
Understandable
and I was on my school stuff
but challenges were easy and took only around 1 hour or so
1 hour is still a lot, lol
it wasn't 1 hour tbh
I just did some weird things and got confused between my own loops
and so wasted way more time
could have done it in 20 mins or so
rderp
thought u said rdr2
what is rderp?
Rabbit's sound have a techno vibe to it
btw, red dead online is available for 5 USD on steam, till feb
Yeah he's driving
Honk honk.
Sorry, didn't mean to goose you, Opal
I will be back after dinner
see ya!
I heard "plebian" rather than "debian"
Well...
does cloud computing mean, you write the code but it you run it on some different computer somewhere else in some server?
cloud computing services are used for building, testing, deploying, and managing applications and services through data centers.
Pretty much.
so If i want to learn more bout it, where to begin?
AWS, Azure etc? something like this to study up?
does there exists some link or some book, which contains all the info for beginners like that if they want to learn something new where should they begin, and how to go bout it ?
they cost money to use?
ok
ok, so like pro versions of them cost money
do you guys know MS Excel? is it a good skill?
Rat, take a break, you've gone too deep into this stuff π
what in the blazing hell he's talking about in this video?
its a joke, its just a lot of technobabble to confuse the viewer
Rat, take a break, or you'll be talking that sh** in your sleep, & then family's really gonna ......
π π π π π π
π
don't do it, I have exams from 11, & I just do one class per week now
for extra credit π
i'm in high school
no you're at home, you high school life's going past you
Rat, all u need now is a youtube channel, & put all you're doing right now in those videos, & make some money off of it as well
finally i made a code which would automatically log into my gmail and discord account
no
one major change in education I see is:
my father didn't see a computer untill 14-15 year in his job, his little brother didn't see till post-grad
now they have to start teaching programming in elementary
ok, I'm gonna go learn more about missles from that video, bye π
comment
-_-
awesome
@somber heath thanks for the suggested tutorial
Hey guys, can anyone tell me how to convert Numpy array to list????
var = list(numpy_array) would probably work.....
@faint ermine true
Thanks
π
@whole bear Yes my friend
lel
some times its too loud in there
what is sypder module
@rugged root I got a question, do you know what is __future__ module is because i'm confused about what it's?
Huh
what is its use in python 3?
!e ```py
from future import braces
@faint ermine :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
__future__ is a real module, and serves three purposes:
To avoid confusing existing tools that analyze import statements and expect to find the modules theyβre importing.
To ensure that future statements run under releases prior to 2.1 at least yield runtime exceptions (the import of __future__ will fail, because there was no module of that name prior to 2.1).
To document when incompatible changes were introduced, and when they will be β or were β made mandatory. This is a form of executable documentation, and can be inspected programmatically via importing __future__ and examining its contents.
Can I use a meta class to check if any of the instance attributes are None? is it possible?
yea
My attempt at a branchless conditional I mentioned earlier.
def outcome_a():
pass
def outcome_b():
pass
condition = True
{True: outcome_a,
False: outcome_b}[condition]()```
vs
```python
if condition:
outcome_a()
else:
outcome_b()```
dictionaries for if statements
is the true gamer move
i feel like its much more dynamic and clean this way
hi
hi
not really lmao
pretty cool
i used to be in the summer
how come you're muted
background noise
say something
i unmute with keybind whenever i need to talk
say something NOW
-;-
bothering is too much mean
who's greg
interrupting is also bad
to kill a mockingbird
oh
woah whoa
im more of a non-fiction fan myself
right
yeah you read huge comp science books in a day right
uhh, no...?
college advantage
everyone get down
get DOWN
cower in fear
he's flexing on us
FLEX
im trying not to make any sounds
AP PHYSICS
lol
he's got us
hes got us good
@whole bear whats emancipation
"It's either maths or no maths." 2b or not 2b. Because algebra. Laughter may now commence.
HAHAHA π π π€£ π€£ π π LOLOL lmao
lmfaoooo
you just posted cringe bro
i always post cringe
you are cringe
please dont ping me for obvious things ;)
too much
i will :)
alright
thats awesome
bye! @odd raven
(also we're playing around)
for anybody reading/moderating
@severe pulsar 
lel
Non-obvious duck is non-obvious.
is that allowed
Best to not.
I know your pain, with report, I have to make PPT, cause teach refuses to take viva from report
going to python general π
ok, they're not helping
how can I make all dict's values equal 0? i mean, is there a built in function for it?
sample i/o?
input/output?
dictionary = {
"key1": 1,
"key2": 2,
"key3": 3
}
dictionary= make_zero(dictionary)
and now dictionary should become?
dictionary = {
"key1": 0
}
?
(with all keys, just using 1 for shorthand)
def make_zero(dictionary: dict) -> dict:
for key in dictionary.keys():
dictionary[key] = 0
return dictionary
_dict = {'a':1, 'b':3}
for key in _dict:
_dict[key] = 0```
this works too
so I have to iterate over it
yup
Or... python _dict = {'a':1, 'b':3} _dict = {key: 0 for key in _dict}
ONE LINER OPTIMIZATION FOR THE WIN
also wouldnt it be?
_dict = {'a':1, 'b':3}
_dict = {key: 0 for key in _dict.keys()}
It does create a new object, which may or may not be desirable in some cases.
Iterating over a dict gives the keys.
my bad
immutability is always better in my opinion
so new is better lol
If you want to be explicit about the keys, you can do .keys()
Dropping it is tidier, imo.
I'm saying it's key with the variable name, so it's clear enough.
ok, thank you opal, u can stop now, I iterated it
no but we're being esoteric about it
there are multiple ways to achieve the same thing
;)
even if it reaches the same efficiency
so its up to the coder
to "paint a picture" with their "words"(code) ehh opal? ;)
do u guys have back pains
Mhm.
why wouldn't this work?
_dict = {'a':1,'b':2}
_dict = dict(map(lambda x: x=0, _dict.keys()))
lambda x: x=0 this part
yeah
not very knowledgeable about lambda functions
i would rather make a fully different function
and just pass that in
@rugged root whats going on mate
lolol
Right.
many times i got bullied
I was bullied once, was kinda fun, really
for what indratej
yeah but online bullying should be taken with a grain of salt
wait, i might have confused bullying with ragging back there
it was ragging, kinda fun
can we trade lives
CS:GO for life
Hey π
Just popping in...
Erm, I don't actually know
π₯
Ah, there's no cymbal emoji
Who is? π
Nah, I don't have mod powers π

Only thing we can do is close a help channel...
whats happening

what are you playing @graceful grail
add me DSK6969, for rocket league, I will join you tmw
I always thought Opal was on staff
accepted
no, you cannot use code help 1
I am not playing now
I can play in about 30min after I got some work done
@wise glade You have not been alone in such assumptions.
we all can play among us instead
Does rocket league run on Mac?
yea it does
I cannot play now, maybe later @graceful grail
ok
come here, let me defeat u all https://papergames.io/en/r-S1ZCkAgdjw/564
π no one's gonna come?
jst come here#voice-chat-text-0 message
so someone came & left
the hell is ultimate tic tac toe?
also it wasn't dragon_, it was me in your link laundmo
i think my intervention broke it for u guys
i came, i saw, i did something, and then I left, cause I didn't get anything
π
i just clicked the link, it asked me who r u laundmo or dragon_
i picked dragon_
now' I' wont come
don't worry
ok, I'm gonna sleep now, next day started for me
We should give you a greeter role.
@tranquil barn hello
NOOOOOOOOOOOOOOOOO
lol
and gave authority to those 3 ppl
idk Mr Hemlock told us that
just a sec
Yep
@whole bear do u play chess ?
Sorry, I was in another channel.
yes
Join the challenge or watch the game here.
it's been some time
also what she said
im deadd
wanna play another one ?
another game?
yessss
or another match?
sure
don't worry about it
lets play skribble
do i have to signup?
no
play me then
guys come and join
@faint ermine bye
fokin ?
what is fokin
U wot?
@normal hinge What comes before sponin.
@whole bear bro
sponin
where are you from?
@whole bear u can only use teams ?
yahoo
anyone watch anime
watch ya doing sir ?
yea
brb
keep it fam
@whole bear what is ur favorite?
HΔ°
it's my childhood fam
try roblox
i felt bad , becoz i can't buy dragon ball new games
i need to updgrade my pc :I
@whole bear i'm ||14 if u were wondering what my age is||
i'm a gamer/programer/pcbuild enthusiastic
@tranquil barn ||stuff||
||hi||
||hi||
i am 17 XD
we typed the same thing lol
loving games doesn't make me under 18
yup, tell me ur specs
what do you mean by specs mate?
..
i have knowledge i can help u
for buying pc
make me your disciple, senei XD
well gimme knowledge first
or some souce
i want to learn you now :DD
ummm, u know that i made a program which automatically log me into gmail and discord ?
haha
lol
jk jk
π
weed bruh
tru dat
open his fridge
hes dead :(
#9999
what about chick.com
haha
no
i just randomly
use it
thank god it is not porn site
@gentle bough Hi AslanΔ±m