#voice-chat-text-0
1 messages · Page 668 of 1
Yup, it's nasty
I can tell you however, that a bank in Italy stores its currency in the form of parmesan cheese wheels @somber heath
Source: https://www.euronews.com/2020/09/23/the-italian-cheese-that-is-so-valuable-it-s-stored-in-a-bank
The cheese is anglicised as gold in this bank
And the cheese itself is worth alot of money
Sorry for the misinterpretation btw
@somber heath have you heard abt flutter?
It hasn't been on my radar.
Okay
not really
not done something gr8, left my python-deepdive course beind, cuz of exams
would be getting back to it
vaaay
bu dc de
huh?
rule 4
what are you guys upto
• channeling-my-inner-hemlock
• diesel-powered-hemlock
• hemlock-demoted-for-the-lulz
• hemlock-needs-more-comments
• hemlock’s-beard-garden
• hemlock’s-biological-mail
• hemlock’s-dungeon-dreams
• hemlock’s-earless-adventures
• hemlock’s-fussy-butt
• hemlock’s-morning-deliveries
• hemlock’s-motivational-posters
• hemlock’s-pipe-dreams
• hemlock’s-second-rodeo
• hemlock’s-tiny-roasts
@hushed elm braces ?
nah just a tooth removed because it had cavities
Alright
i still have a ps2
Hi @ALL
it has no audio and works in black and white
i use it once in about 2-3 months
Yo Shep
lol
@fierce summit Hey Aurora. How's it going
@rugged root I'm good, thanks
Doing alright. Working at work
😄 we might need a few bunch of OFF topic channel temporrary ones for multi topics
Eh, maybe
@hushed elm İts allright , Tired but ı will rest
Works well enough so far
And I really don't like the idea of having to moderate another channel
u sure ? we kind doing second one but typing it
if we use temp channels
or sub channel
@rugged root can i have screen ahre prems for like 5 mins i need to show this file
@scarlet drift bs4
@whole bear I need help with scrapy lol
Is it the web scraping lib?
hi!
Hey Fallest
how are you, calmconquerer?
Doing great, how about you?
oh
i am sleepy u.u
same
hahahhaha I'm lazy right now
i understand u.u
I'm stuck and don't know what to do about it lmao
ohhh...
@left blaze If you're wondering why you can't chat, take a look at the #voice-verification channel. That'll tell you what you need to know
@tribal solar
import pyttsx3
import datetime
engine = pyttsx3.init()
def speak(audio):
engine.say(audio)
engine.runAndWait()
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(time)
time()
import pyttsx3
import datetime
engine = pyttsx3.init()
def speak(audio):
engine.say(audio)
engine.runAndWait()
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(time)
time() # this was over indented```
it is not working
hey
What isn't working about it
I'm just,want to tell me clock and date
@old elm @echo estuary If you're wondering why you can't talk, take a look at the #voice-verification channel. That should tell you what you need to know.
@tepid ingot See above
yeah, I saw, but thanks anyway!
No worries!
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(time)```
needs to be
```python
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(Time)```
Force of habit at this point
@whole bear If you're wondering why you can't talk, take a look at the #voice-verification channel. That should tell you what you need to know.
thanks babe
hurrah, what fun
Fsck fixed it, tried to run something after it was fixed, then it stopped working again
hurrah, what fun
@gentle flint big oof
Yeah I think there's something wrong with my internet connection
@whole bear What's up
Our @wise cargo bot or the language itself?
the language
Guido van Rossum
oh ya how did i forget haha thanks
I'm gonna head to bed, Gnight yall
night
night
There we go, now I am sufficiently ready for Christmas
!resources @whole bear Take a look at A Byte of Python and Automate the Boring Stuff
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@rigid nest #algos-and-data-structs
@rugged root How to stay motivated while learning to code
@whole bear and also how do you choose one course
@whole bear I personally don't use courses. I've always found I learn better using books or guides. I like going at my own pace. And regarding staying motivated, try making something that you'd want to see, even if it's really simple. Think about the other kinds of things you're interested in, like playing games, sports, stamp collecting, etc. Then try to find something related to that that you can make. Doesn't have to be super useful, doesn't have to be cutting edge.
Pushing yourself to just code and do stuff, that'll be the best way. Even if you're not doing a big 'ol project, just playing around with other libraries or just testing things so you can understand them can go a long way.
depth first search, breadth first search, graph algorithms (like least common ancestor), dynamic programming (coin change problem)
@rigid nest
directed acyclic graphs come up sometimes too
Read that as acrylic
@rugged root I dont have many ideas for apps that interest me, I feel l used to be astonished at first seeing what computers can do but now its just like okeh ya computers can do that. Any ideas you think would interest any individual. I am 12 btw.
!projects You might look over these as well
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.
Ok thank you for all the help sir
Tech Hour with Rabbit!
Angry Tech Hour
Dude my brother's friend used to work for microsoft, hulu and then facebook. The guy was a total geek when it came to brain teaser questions. He quit facebook and wrote a book on how to crack coding interviews and the dude makes more money than what he was making at facebook lol. Forgot the name of the book will ask my brother.
It's so fucking crazy how people are going on the FANG bandwagon
Dude my brother's friend used to work for microsoft, hulu and then facebook. The guy was a total geek when it came to brain teaser questions. He quit facebook and wrote a book on how to crack coding interviews and the dude makes more money than what he was making at facebook lol. Forgot the name of the book will ask my brother.
@scarlet drift oh so you mean the TechLead lol
There is, roughly in January/February
@scarlet drift oh so you mean the TechLead lol
@whole bear lmfao
and, apologies, but what're the pre-requisites for taking part?
lol
The guy is freaking cancer
There will be a sort of "qualifier" where you submit code just to check you know the basics of python and then you get placed into a team
Let me grab the link to the summer jam qualifier
wicked
This was the qualifier: https://github.com/python-discord/summer-code-jam-2020-qualifier/
You only needed to pass the Basic Requirements to qualify for the code jam, the intermediate/advanced is more just for the flex
much obliged, thx
I'm not that great with a lot of stuff but I would love to be in part of a team lol (that is if anyone takes me in LMAO)
you'll get placed with other people in the jam, so everyone who qualifies gets to take part
I didn't know a lot going in, but it's a great event and you learn a lot. I had a great time
@rigid nest learn something like fastapi or flask too
He did join a bit for the CPython Core Dev Sprint, but he hasn't been back since that event.
oh cool
@amber raptor should have a podcast channel
Disconnect and then reconnect? Have you verified you hear other desktop sounds?
restart discord
hmmmm, I'm unsure then
😦
If I'm not voice verified does it mean I can't hear ?
or is it just to do with the mic
No you should be able to hear
@granite crescent Check your output devices. Settings (the little cog in the bottom left) -> Voice and Video
@whole bear I'm from pakistan lol
Nope, that just means you need to be verified to see it
close enough
You are verified if you have the Developers role
yeah
You are verified if you have the Developers role
@hollow haven are u sure I have?
Yes, I am very certain that you have the Developers role and have accepted the server rules
Voice verification is just for speaking, you should still be able to hear
try joining the server with the actual discord app
I'm on linux
linux doesn't have the discord app?
Discord has a discord app for Linux
deb and tar.gz
Discord is the most popular chat sortware among gamers. Here's how to install it on Linux.
I'm snapping it rn
@granite crescent


finally
Voice Gate failed
Voice Gate failed * 50
am I allowed yet
Voice Gate failed
Voice Gate failed
what's that 43 more messages to go?
Keep in mind, it has to be 50 messages across three 10 minute blocks
what does that mean
It means you can't get all of you messages at once
Helps prevent spamming
Just have a normal conversation
that's a bit unnecessary imo
Wingman in what game?
You can always help in one of the help channels, ask for help, look at the topical channels to see if there's one that you might be interested in, talk in one of the off-topic channels
Plenty of options
@granite crescent why don't you join in with the conversation in one of the off-topi...
Got there before me 😄
Whatever 
Wingman in what game?
@amber raptor CS GO
Hey, guess what... Red Bull doesn't "give you wings" after all. The famous energy drink slogan has been found to be false after a US lawsuit and the company has agreed to compensate customers who bought it in America between 2002 and 2014
@fierce summit One sec
Yeah sorry, talking with a co-worker about something he needs help on
The GDELT Project
@fierce summit Yeah sorry, I have to get off of here for a bit. This issue with the co-worker is going to take longer than I thought
Okay
That try block is a bit big, don't you think 😄
You should probably move most of that to the else block of the try.
Erm, I think x in mydict is pretty standard?
@olive hedge that font is atrocious
Have you not seen Grease ONJ?
hi
Hey
i can't speak lol
Ohh
Sqlite3
platformer
working on enimies colliding with the bullets
yup
tech wit tim
yeah im going along with it and changing small things
he is very handy
im gunna go
ttyl
checker = re.compile(r"[A-Za-z]")
input = #what the varible name for the input bar in tkinter was
check = checker.search(input)
if check:
print("Value Error")
else:
print("resizing screen...")
import re
checker = re.compile(r"[A-Za-z]")
checked_size = checker.search(ScreenSize_Var)
if checked_username:
print("Value Error")
else:
pass
hi guys
hi
talk
ok
i have won ze vocie verify
its quite good
not really
im more friendly than that one
annoying orange isnt very cool
and annoying orange isnt a python beginner
which makes citrus already better
orange has to go for now
talk soon
@noble osprey you can write messages here
@noble osprey what did you learn about OOP? and you can write messages in this chat
I not have permission for speak
@livid marlin the reason for that is explained in #voice-verification
@cold stag sorry; I didn't know you were typing in this chat.
Ah
😔
Yes
I just wanted to show my beautiful voice
Its not that good
Not 😔
kkkkkkkkk
How are you?
I am Brazilian
I do not understand english very well
but it’s not that difficult
It's only hard to hear, but I think it's the accent, I don't know
It's different from English classes
@noble osprey no
@noble osprey getters and setters make me sad 😦
why tho
Js make me sad
in Python, you're allowed to mess with instance variables no matter what, and it's your job not to break stuff.
in Python, you're allowed to mess with instance variables no matter what, and it's your job not to break stuff.
@tidal salmon oh dont know abt this
@noble osprey what direction do you want to go with programming?
But I wanted to do it in python
@livid marlin yay
hmmm i want to focused in AI things but the math materials is something that my school didnt taught,bcs im in highschool rn
do you have any references for learning before dive in AI
?
you'll need to learn some advanced math before diving in to AI
but you can still use this time to get the programming fundamentals down
one of our staff members has a list of project ideas
!kindling
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.
i dont have much time for learning the math things
@noble osprey I didn't calculus or linear algebra until college.
oh maybe my school will taught the basic of calculus in thr 11 grad
my high school taught calculus to advanced math students
but at the time that wasn't me 😄
😆
if i cant learning AI now,what is your advice for me
should im learning the algorithm or the data structure
?
tkinter too?
in my uni, data structures is how OOP is taught
and then you take the algorithm course the semester after that
i c
tkinter is for guis
@tidal salmon I hate tkinter
hmm if u are at ur leisure can u give me the smstr schedule of learning python?
Make a ugly interfaces
why tho?
but it’s good for simple things
@noble osprey my uni doesn't teach python
ohh
hmm if u are at ur leisure can u give me the smstr schedule of learning python?
@noble osprey Search roadmap python bro
thanks mate
If anyone can call me in private to chat and improve my English, I appreciate it
👉 👈
If anyone can call me in private to chat and improve my English, I appreciate it
@livid marlin you don't want a brit to come and improve your English for sure
Zing.
Who would have thought it, though? An Englishman teaching English? Perish the thought!
You guys gotta check this meme out man lmfao
https://www.facebook.com/126000117413375/posts/4016944094985605/
See posts, photos and more on Facebook.
!code
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.
You're calling time twice. Once as time() under def time and again as a part of wishme().
Also, as time is the name of a native library module, you should consider renaming it.
hey @somber heath how's it going?
It is going.
hahahahaha
Noted.
memoisation/memoization
memoization
elif message.content == "!img":
dimensions = ['800x600', '1920x1080', '3840x2160']
await message.channel.send(f'https://source.unsplash.com/random/{dimensions[random.randint(0,2)]}')
i am trying to send a random image
@somber heath make sure you send the image here 🙂
and yeah, since i am gtg now, make sure you ping me with the image of your algo
yeyuuuh
JSON
who's JSON?
@elder sable https://realpython.com/python-json/
x = ["cheese","chicken","pasta"]
print(x)
y = input("what item do you want to replace: ")
z = input("what item do you want to replace it with: ")
x.replace(y,z)
print(x.replace(y,z))
the replace function
does not work
ive done something worong
i dont know what
Last line should just be print(x)
What's the full error
Ah well yep, it doesn't have it
oh
def naivesearch(a, b):
al = len(a)
i = 0
p = []
while i < len(b):
if b[i:al+i] == a:
p.append((i, al+i))
else:
pass
i += 1
return p
x = ["cheese","chicken","pasta"]
print(x)
y = input("what item do you want to replace: ")
z = input("what item do you want to replace it with: ")
x.remove(y)
x.append(z)
print(x)
what about now
!e
@lusty marsh :warning: Your eval job has completed with return code 0.
[No output]
!e
!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!*
!e
print (list[3])
Im quite sure that prints the 4th thing in the list
not 100% on that tho
it does
!e
_='_=%r;print (_%%_)';print (_%_)
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
_='_=%r;print (_%%_)';print (_%_)
!eval [1,2,3][2]
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
from operator import itemgetter
sorted_time = sorted(waitlist, key=itemgetter("time"))
!eval print([1,2,3][1:])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[2, 3]
what if its firs 50
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]
what does that do
print the first 50 of list
but i thought :50 does
oh ok
you can do that your ways
what if i want to print the last 40
!eval print([i for i in range(100)][-40:])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
ohhh 21 people
[i:j] is used to slice list from i to j
if i is not gives its 0 , if j not given its len(list)
it's most likely because u are streaming @elder sable , stream attracts people
hey guys what's going on?
oh so 20;40 will print the numbers inbetween
@rugged root
[{"username":"test", "time":1605104786},{"username":"best", "time":1605104789}]
!e
import json
j = json.load(open("test.json", "r"))
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: 'test.json'
yo why do I not have voice right to speak in the channel 🤔
what, when did they add this
yo why do I not have voice right to speak in the channel 🤔
@sly light you need to have at least 50 messages
@rugged root u use ipython?
!e [-1 for i in range(1015151251251252)]
@whole bear :warning: Your eval job timed out or ran out of memory.
[No output]
mb
code.work(now, like I intend it to)
[{'username': 'test', 'time': 1605104786}, {'username': 'best', 'time': 1605104789}]
One moment
nah lol
factorizing
skip one
@frozen oasis go from 2,sqrt(number) if numer %i ==0 , i , number/i is one pair
because think greater than sqrt(n) can never divide number
take int
@rugged root when ur done I'll be in code help one since I dont want to innterupt the ppl getting help in general
@frozen oasis sorry I disconnected , 1,number is always a pair and this is for int
do you care about negative numbers too
yeah you can do 2 loops
but there might be duplicates
you can use some kinda hashmap
oh why do you want 52 , 22?
5 square , 2 square
Oh I gotcha you need to see how many times a number divides other number
its more easy
!e
def factorize(number):
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
return i
else:
continue
else:
continue
print(factorize(4))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
2
!e
!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!*
!e
def factorize(number):
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
return i
else:
continue
else:
continue
print(factorize(5))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
None
just loop from 2,sqrt(number) and keep multiplying i*i till it divides the number
!e
print("hello")
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
hello
!e
!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!*
!code
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.
!e
def factorize(number):
factors = []
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factors.append(i)
else:
continue
else:
continue
return factors
print(factorize(4))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2]
num = 300
for i in range(2,300):
j = i
while num % j==0:
print(j)
num/=j
the i loop is redundant kinda
go till sqrt(300)
I gotta dinner brb
!e
def factorize(number):
factors = []
factor = 0
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factor = i
break
else:
continue
else:
continue
ans = 0
while ans <= factor:
ans += factor
factors.append(factor)
return factors
print(factorize(4))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2, 2]
@lusty marsh :warning: Your eval job has completed with return code 0.
[No output]
!e
def factorize(number):
factors = []
factor = 0
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factor = i
break
else:
continue
else:
continue
ans = 0
while ans <= factor:
ans += factor
factors.append(factor)
return factors
print(factorize(5))
@lusty marsh :warning: Your eval job timed out or ran out of memory.
[No output]
!e
def factorize(num):
for i in range(1,num):
for j in range(1,num):
if i*j == num:
print(i, j)
else:
continue
factorize(5)
@frozen oasis :warning: Your eval job has completed with return code 0.
[No output]
!e
a = set()
print(a)
@pure path :white_check_mark: Your eval job has completed with return code 0.
set()
!e
def factorize(num):
for i in range(1,num):
for j in range(1,num):
if i*j == num:
print(i, j)
else:
continue
factorize(4)
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
2 2
!e
a = {'a', 'b'}
print(a)
@pure path :white_check_mark: Your eval job has completed with return code 0.
{'b', 'a'}
!e
a = {'a', 'b'}
a.add([])
@pure path :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: unhashable type: 'list'
!e
a = {'a', 'b'}
a.add([])
print(a)
@pure path :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: unhashable type: 'list'
!server
Server information
Created: 3 years, 10 months and 3 days ago
Voice region: us-east
Features: COMMUNITY, NEWS, MEMBER_VERIFICATION_GATE_ENABLED, WELCOME_SCREEN_ENABLED, VANITY_URL, VIP_REGIONS, BANNER, INVITE_SPLASH, DISCOVERABLE, ANIMATED_ICON, PARTNERED, RELAY_ENABLED, PREVIEW_ENABLED
Channel counts
Category channels: 32
News channels: 8
Text channels: 176
Voice channels: 28
Staff channels: 72
Member counts
Members: 107,510
Staff members: 89
Roles: 72
Member statuses
31,999
75,511
!e
def factorize(number):
factors = []
factor = 0
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factor = i
break
else:
continue
else:
continue
ans = 0
if factor < 1:
return []
else:
while ans <= factor:
ans += factor
factors.append(factor)
return factors
print(factorize(5))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[]
!e
def factorize(num):
for i in range(1,num):
for j in range(1,num):
if i*j == num:
print(i, j)
else:
continue
factorize(10)
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
001 | 2 5
002 | 5 2
Server information
Created: 3 years, 10 months and 3 days ago
Voice region: us-east
Features: WELCOME_SCREEN_ENABLED, COMMUNITY, PREVIEW_ENABLED, VANITY_URL, ANIMATED_ICON, PARTNERED, RELAY_ENABLED, MEMBER_VERIFICATION_GATE_ENABLED, DISCOVERABLE, VIP_REGIONS, NEWS, BANNER, INVITE_SPLASH
Channel counts
Category channels: 32
News channels: 8
Text channels: 176
Voice channels: 28
Staff channels: 72
Member counts
Members: 107,510
Staff members: 89
Roles: 72
Member statuses
32,219
75,291
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2, 2]
bruh
!e
def factorize(num):
for i in range(1,num):
for j in range(1,num+1):
if i*j == num:
print(i, j)
else:
continue
factorize(5)
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
1 5
!e
def factorize(num):
for i in range(1,num):
for j in range(1,num+1):
if i*j == num:
print(i, j)
else:
continue
factorize(10)
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
001 | 1 10
002 | 2 5
003 | 5 2
!e
def factorize(num):
for i in range(1,num+1):
for j in range(1,num+1):
if i*j == num:
print(i, j)
else:
continue
factorize(10)
@frozen oasis :white_check_mark: Your eval job has completed with return code 0.
001 | 1 10
002 | 2 5
003 | 5 2
004 | 10 1
!e print ("Hello")
@frosty bobcat :white_check_mark: Your eval job has completed with return code 0.
Hello
!e
def factorize(number):
factors = []
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factors.append(i)
else:
continue
else:
continue
return factors
print(factorize(8))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2, 4]
!e def factorize(num) for i in range (1, num+1)
@frosty bobcat :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | def factorize(num) for i in range (1, num+1)
003 | ^
004 | SyntaxError: invalid syntax
!e
def factorize(number):
factors = []
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factors.append(i)
else:
continue
else:
continue
return factors
print(factorize(800))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 80, 100, 160, 200, 400]
!e
def factorize(num):
for i in range(1,num+1):
for j in range(1,num+1):
if i*j == num:
print(i, j)
else:
continuefactorize(10)
@frozen oasis this is not what you want
you are calculating factors
you need to keep dividing
its complexity will be sqrt(n)*n
fastest ig not sure tho
ye inclusive
num = 300 for i in range(2,sqrt(300)+1
):
j = i while num % j==0: print(j) num/=j
@whole bear .
!e
def factorize(number):
factors = []
for i in range(number):
if i > 1:
r = 0
while r < number:
r += i
if r == number:
factors.append(i)
else:
continue
else:
continue
return factors
print(factorize(1600))
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
[2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 64, 80, 100, 160, 200, 320, 400, 800]
also dhruv you don't need 2 loops its complexity is n**2
you can do it in sqrt(n)
no for finding pairs I mean
your code does that
.uwu also dhruv you don't need 2 loops its complexity is n**2
awso dhwuv yuw don't need 2 woops its compwexity is n**2
if number%i==0, i,number/i is one pair
no not again and again
for pairs you don't need that
division one is for finding prime factors "prime factorizing" and this ^^ is for finding pairs "factors"
np
saw-memes
@whole bear @hushed elm
ooh, very interesting! Thank you 😄 I am actually learning list comprehensions right now as we speak
I was actually about to be asking a question in one of the help channels regarding list comprehension
I am working on making a list comprehension testing out my newly gained knowledge, I wanted to see if I could shortcut a step with a smartly coded list comprehension
say I have a set of numbers which is my "correct" list of randomly generated integers
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(!e [y for y in range(100) if y % 2 == 0 if y % 5 == 0])
003 | ^
004 | SyntaxError: invalid syntax
!e print([y for y in range(100) if y % 2 == 0 if y % 5 == 0])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90]
and I want to compare via intersection between the values of a library which are my test cases, is there some way to check the len(test) and only print the greatest len in some shorthand way?
basically, I want some short way of comparing the list comprehensions of each and then only store the values of the one with most matches
yep 🙂 that's what I was planning to use
but I have multiple test cases in a single library
Oh I didn't post it for you, guess you needed the same
I wanted to test each set of values
@thorny epoch @earnest hollow If you're wondering why you can't talk, take a look at the #voice-verification channel. That should tell you what you need to know
and then whichever is the best match ie greatest len of set intersection only give that result
50 msgs to go
I am sure I am totally overcomplicating things but I want to try and explore what a list comprehension can do 😄
got you! So it would be computationally slower than other methods you think?
ooh okay, that is really good to know
so sets almost universally > lists
I will write that down 😄
oooh, what is the reason for that speed difference?
oooooh that is much better then! Hash I assume would be in memory so it can traverse faster presumably
I will have to look up hashable datatypes
There are many implementations of it but hash map generally does lookup in O(1)
so as a general rule can I consider that hashable datatypes are faster than non hashable?
yay 😄
thank you!
Depends on what do you need it for? Do you even need it
I love the Python community, such incredible knowledge and great people
so you can't rely on x[] targetting in a set
cool 😄 I sense I still have a lot to learn
even still, I am having a great time learning
where above?
I don't see any code snippets posted by you
just do i%len(list)
oooh
i%len(list) will wrap around
that's cool, how would you go about overwriting a method like that? Is that a class thing?
Shorter for me
ooh, very cool 🙂 I love how much functionality there is lurking beneath the surface in Python
yep 🙂 I was going to ask if magic methods == dunders
that's so cool
I am really excited to continue to learn
Perhaps one day I will speak with such a wealth of knowledge as you 😄 Thank you!
That is very cool, I feel like that is the curse of learning in any sufficiently complex undertaking
I mean tbh I agree with his pronunciation and I am from North East US 😄
Duh-ning - Kroo-Gur
how would you pronounce it Wispers?
Whispers.
I mean how would he pronounce Dunning-Krueger
😛
since he commented on your pronunciation
Colour vs color. 😐
haha
apparently I don't have 50 messages for voice verification
I swear I did, I have been in multiple times asking coding questions, apparently that did not count
@oak sorrel go blossom in the offtopic channels
I am participating in the discussion with the great people in voice
Bold of you to assume I'm great
I just passed the gate a few minutes ago....
Good job
alright 🙂 enjoy your food Opal!
I am going to mess with that list comprehension I was wondering about above
what is BDMB?
Hello.
Holy shit
Hi!
So for reference, keeping ears on, but I'll be on bluetooth and afk, so speaking would be shit.
okay 🙂
Ah yes, Opal is probably pissed right now
well they are trying to challenge it in the courts
there is a lot of really shady stuff
Did you hear about the Dominion software that was used in 30 states?
It's not
It was software used for vote tabulation
and it had a "glitch' wherein 3-6% of Trump votes were being converted into Biden votes
agreed! Mr. Robot is an excellent show btw
agreed!
we need to resolve the blatant flaws in the previous vote and do a revote imho, if it were feasible to do so
Bluetooth uncoorperative. bbiab.
is there any way I can turn off that in and out sound xD
look into that Dominion software though
and float storage of ballots
haha fair enough, either way we shall all see how it develops
have a great day!
Bye
is there a way to query server to see how many messages I have for voice verification at present?
Just search for your name in the server
wats with the logo
:0
The diwali celebration
Why is the number of messages that high? 50 seems like a lot.
@whole bear international
I definitely have the 50
50 will pass on a whim if you talk in the ot
I already counted 24 and it was the tail end of our conversation
do messages in the help channels etc not count toward that?
I just started so 50 looks like a lot from here. 😉
Nope
since I read the requirements, one is three different sessions, which I definitely have if help section counts but don't if it doesn't
it's still better to not have a lot of spam. so yeah....
@chilly mural some user named gdude has 382k messages if I'm right
I'm not sure if I have 50 messages of stuff to say.
It's quite because no one can talk. 😂
Yes it is @rugged root good observation
I am @whole bear
fin=open("test1.txt")
for line in fin:
word=line.strip(e)
print(word)
my limitation is the 3 instances, I have been in the server for at least a year and have been on many times doing stuff in the help section both asking/answering but those apparently don't count toward the 3 :p
~grab
sorry macrokey
@vagrant skiff So how did you mean about the experience bit?
Ah I gotcha
i passed that step
is e a variable you define elsewhere?
I'd say like... beginner is likely like you know how to do for loops and functions
i assume knowing the if statements and like while loops?
or is that supposed to be the letter e?
yeah
Intermediate would be stuff like understanding classes and more
And expert would be more than that I guess?
i understand those
It's hard to classify, really
@rugged root expert is probably Ctypes
Ctypes?
The bridge between python and C modules
oooh
You can segmentation faults
I assume it is stuff like Cython
That's the good bit of it
cya'll
enjoy dinner 🙂
thanks
Or maybe expert level is compiling CPython and customizing it.
@chilly mural there's no expert level in terms of modules
Is it true that 3.9 is slower than 3.8? And does that matter?
It's how effectively your code runs
Oh you meant Cpython
Still not expert level though
Unless you meant understanding memory compilation
CPython is dfferent from Cpython? I don't think I've ever seen it without the capital P.
@foggy tulip I didn't specify the customization, so 🤷
e
I was stung by a wasp it is was shockingly painful. The sting left a wound.
I was sung by a bee, in 1st grade
Anyone buying a new ARM Mac? Or will you stick with Intel?
@rugged root is !voiceverify a command?
ohhh, would making it a listener fix the issue?
I loved Automate the Boring Stuff with Python
Just one of many brilliant scenes from the epic comedy "Life of Brian" by Monty Python.
PS: Subtitles is the originals from the blu-ray.
PS 2: Yes, we know about the guards!
All rights belong to Monty Python.
@rugged root
@subtle orchid which book are you reading?
Who made modmail ?
Ohh okay
😮
the discord icon changed, interesting
watched a video on hashable datatypes and now I get it more 🙂
HTTP POST toast
well IMA head to bed cyall
@oak sorrel They're so cool
It's amazing what you can do with them
Like tuples as dictionary keys
you can do that???
Hell yes you an
that's really cool
@rugged root can you tell me about the codejams held here ?
what would an application for that be?
They're great for like x, y coords
@somber heath just write a python script to press the button for you, ezpz
😄
oh wow
oof haha, are they sure the disaster was related?
@whole bear So twice a year or so, we host a CodeJam. We pick out a theme (like the last one as Ancient Internet) and a library to use (Django was the last one). We set people up in teams (I think it was teams of like... 4 or 5 last time?) and they're given a week to make the coolest thing they can within that time
@whole bear So twice a year or so, we host a CodeJam. We pick out a theme (like the last one as Ancient Internet) and a library to use (Django was the last one). We set people up in teams (I think it was teams of like... 4 or 5 last time?) and they're given a week to make the coolest thing they can within that time
@rugged root is there a channel for that ?
like how are the teams made ?
random ?
So there's a qualifier that gets set up before every jam, and you have to complete it to qualify
ooh, sounds cool
We then randomly group up folks
Alright, when is the next code jam ?
Previously we haven't had a limit on the number of teams - January or February, give or take - as we had 50 teams last go 'round, which was just far too many. It took us forever to review all of the projects
So we'll likely have to put a cap on the number of teams or number of participants.
Oh actually, I've got a link for you
send the link
what are the requirements for the code jam?
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Just completing the qualifier for it
how high is the skill requirement?
Depends on the event. I'll track down the qualifiers for past Jams, I'm pretty sure they're still in our org's repos
Thank you! I'd love to participate and learn but I don't want to weigh down my team too much as well, I'd say I'm somewhere around intermediate skill
@oak sorrel We do a stream when we judge the projects
I'll hunt some down, they're on our YouTube page
woooooo! That is cool, is there any sort of code review or inspection involved?
Yep! So we do a general code review of the Python code, but if they require another language like how the last one needed HTML, CSS and JavaScript since it was a Django project, we don't look at those. We also do functionality tests on the top 10 to make sure that they won't break when we try to stream them
https://www.youtube.com/pythondiscord @oak sorrel Yeah they're all on our channel
Had my forehead glued after I ran into the corner of a cabinet at IKEA
what's goin on today folks
Probably explains a lot about me...
Had my forehead glued after I ran into the corner of a cabinet at IKEA
@stuck furnace lol
I was playing some stupid game with my siblings.
same
Holding hands and swinging around.
Hey @scarlet drift 🙂
Yo
Have a deformed little finger now 🙁
Developing*
Very cool, calm
Yeah
@stuck furnace You say that and all I can think is lemon's hand
What happened to lemon's hand?
He's missing a few fingers on one hand
Ohh right.
Oh man
It's been that way since like.... really young I think
He still kicks much ass, so it doesn't seem to have affected him
Still a great guy
Still types hella fast
He still kicks much ass, so it doesn't seem to have affected him
@rugged root that's freaking great man
One typically doesn't kick using hands, so that would be expected.
Being unaffected.
i kick with my hands what are you talking about
Did you have a beyblade phase?
They got banned by my school
I think I was at the tail-end of the beyblade phenom.
They were so cool-looking to 10 year old me 😄
Erm Hemlock, I've been taking a bit of a back-seat with the help channels as I was getting stressed out by it 😄
And not giving great advice at times...
@rugged root
Yo the ps5 is launching without a browser wtf
They say that 51.5% of console traffic came from the ps4 on PornHub. That's crazy
wtf
51.5% good god
Yeah, it's crazy
I mean I would have understood if it was coming from the vita
Or something hand-held?
Some other*
@somber heath We get sand storms all 4 seasons
we live in a fucking desert
We get gas masks
bad idea @rugged root
I usually wear a full face mask when I saw wood
lol
Wait, does the API still have a long response time?
Fun fact
You can edit file sizes inside the recycle bin
wait, @rugged root does windows have WSL?
holy shit
Well, I found out a way how to access the recycle bin and trace back the deleted files using useraccount SID inside the recycle bin
I love this
@rugged root I need your opinion on something
Shoot
I'm about to get a project in which I'll have to create a web app that has multiple small sub apps (if that makes sense).
Yep
I'm kinda confused between what stack to pick for the backend
would django be a good idea?
Are these all going to be on the same machine?
and keep in mind this will scale massively
Hmm
yeah on a vps
I think #web-development would be able to answer that way better than I could
I just know the basics
Yep! Sorry I couldn't be of more help
np man
@rugged root
@amber raptor I want to go back to school
@scarlet drift You won't have much to do after school
wait, @rugged root does windows have WSL?
@foggy tulip duhh
huh?
U need to use windows @foggy tulip
@frosty wind Why are you being sassy about it?
Just let people use what they want to or have to use
Toxic sassing doesn't help anyone
I agree with mr hemlock there
I used to be like that but then realised that it doesn't do anybody any good
I mean
@rugged root Uh oh

@rugged root Uh oh
@foggy tulip what are you doing btw
@amber raptor I broke the explorer, it's reading garbage from the memory
hahahhaha
i must go deeper
Not only is it garbage, but it's hot garbage
well shit, boys
