#voice-chat-text-0
1 messages · Page 750 of 1
Good thing I have two streak freezes equipped, but I’ll be practicing German later anyway
yes but it holds students for experimenting, so if you ever worked with turbo c++ it the most stupid editor, if she allows me to use VScode i can experiment many thing in very short span of time since it autocomplete and all sorts of good things , now in my class i just want to complete the day's experiment and leave the class.
exactly. thats the big issue. make things to annoying and people wont be willing to learn anymore
I am german native. I just can not recommend German as easy to learn. Try something different like spain etc.
same here, german is a dumb and hard language.
hell im supposed to be a native speaker and i make more mistakes in german than english.
I am literally the only one in my family who doesn’t know German. I took Spanish, Latin, and Japanese in school.
Most accidents happen in the home.
We recently found out we still have German cousins that survived the 1940s, so I’m learning German so I can communicate with them better.
If I could choose, I would select english as my native language and payed attention in school in spain or french. If you know latin your live will be easier by far
I also find German grammar to be interesting, from an academic standpoint.
He is truly a feyn man
I'm likely to make far more errors in English than I am in German.
that was on purpose and you wont convince me otherwise
But then I don't speak German.
My english texts in school have always been better than in my native language German
you made three errors in there, one if which remains unfixed
in English
I shudder to think of your German
I’m a native English speaker, but unfortunately it is New Hampshire English. @faint ermine and @rigid shell probably speak English better than I do.
so what? at least i don't completely garble my grammar.
Laund, I have no idea if a spinning banana is good or not
Or if I should take it at its potassium based face value
lol, fair enough
@rugged root i mean i explained it in a staff channel a while ago, have fun finding it ;)
Rather than trying to understand it, it is much easier to hate and condemn it
I'll just assume that all bananas on my messages mean I'm the funniest man alive
:). But if you like to learn a new language just go. I think it is to have the passion to do so and succed. And to order food in a restaurant in the contries language is fine.
"ack"?
I forgot who said it, but one of my favorite quotes is “In America, the rule is your expertise is equally as valid as my ignorance”
¯_(ツ)_/¯
Mars Attacks.
like in a heartbeat
No, I'm convinced Opal is correct
And we have just learned that Laund is a martian
o
k
then
We're all space dust.
exactly
@willow light 👍 If you visit Germany after Covid you will notice that the German Pünklichkeit belongs to the past and most people in northern Germany are impolite and unfriedly
Then I’ll feel perfectly at home, because that’s what Boston is like.
But I’ll probably be visiting my grandfather’s old home in Munich
Ladies and Gentlemen, the ICE to Frankfurt-Main
Arrives divergently at the opposite platform
The departure of this train was 2:02 p.m.
Although it wasn't, because it's already half till three.
- translated of a german song about the DB, the trains company in germany
Hey, at least you have trains at all!
problem is when language becomes status symbol
half till three.
you mean half past two
Dutch does the same as German
half drie
yeah but then it looks really weird, have to mangle the english to make it sound ok since translation
oof
hiiii
I mean, honestly, I had exactly that situation when I was gonna take the Thalys from Amsterdam to Paris
except a little worse
With our actual econimical situation I should rather advert Germany: We have great beer, great sausages and great cars
great sausages made by the same firm as the great cars
probably, but you are allowed to drive as fast as you want on our highways.
you have a very posh way of saying things, its interesting
fair enough
on some* highways
but that does not sound that great
- (please refer to http://autobahnspeedhunter.com/)
I’m sitting here wishing I was in Germany, if only because the whole reason my family is in America right now is that Papa Sarstedt had to get the hell out in 1937.
for political reasons
I’ve heard it is much better there now.
Giving instructions to computer
than 1937? definitely.
We’re trying to find paperwork proving that it was political (although it should be fairly obvious) because then we can reclaim German citizenship.
we also do have way less political reasons to stay out of Germany as you might think. Did I mentioned we do not have the Wall anymore?
Chris Sawyer is a Scottish video game designer and programmer who is best known for creating the Transport Tycoon and RollerCoaster Tycoon series. He is also the founder of 31X, a mobile game development company.
i didn't know about that, thats kinda neat
There’s a chunk of it just down the street from my apartment
so you live in germany right now?
the political reasons or the wall?
The wall. There are remains of it all over the place. There’s part of it in my hometown of Nashua, NH USA
oh lmao i thought you meant a piece of it thats still standing in its original spot
I’m still in the US. For now. I’m hoping to get a chance to get out of the US, because while I love my country, I need to take a break for a decade or two.
fair, i wanna get out of the US too and i dont even live there
It has been a very rough four years for me.
But that’s a little too political for this discord haha
hello
As soon as the borders reopen, I’m taking a weekend in Quebec. It’s a four hour drive north, so that’s a good day trip.
Thats rough. If you can receive German Citizenship it would be great for you. You also receive a EU passport one of the most valuable of all. Just give it a try.
In theory, you can buy one through Montenegro...that was on the table for an entire year as a potential exit strategy
some EU officials didi not like this concept. They are trying sanction selling passports.
well i wish you best of luck @willow light
Well, the deadline for buying the citizenship is the day before they officially join the EU.
its not the best but it sure is better than the US
hello, i have a coding question
as I know they are not valid member today and also do not have an official date to join
i guess you can buy citizenship in cyprus and get into EU
?
they are trying to block that
Yeah, which is why the primary method we’re using is to try to get repatriated through what we can find of Papa’s old documents.
"Vertical Video Ep. 2: Putin's Hybrid Regime - YouTube"
good luck.
Yep
#help-cheese i put it there
I mean, technically I already qualify for Norway through my grandmother, but I really want the EU. Not too picky where my citizenship and residence in the EU would be, but I would prefer Germany for family reasons.
+1
Where does your family live here?
Sublime text
sorry this should go @willow light
Where does your family live here?
I have some cousins in Hanover
@rugged root it didn't worked
But the family originally came from Sarstedt
Although no one in the family have lived there since the 1860s
😫
bashing my head for 4 days
@rigid shell We have a picture hanging up of where my grandfather grew up. The building, and street for that matter, were so thoroughly destroyed in the war that it’s a public park now.
i should sleep now or will get insane
Yeah, better to tackle it when you're refreshed
Does your rick roll script detect this? https://www.youtube.com/watch?v=I6OXjnBIW-4&t=23s
Reggie Watts recreates one of the seminal YouTube videos of our time.
Watch more YouTube YouTube Music Awards videos at http://youtube.com/musicawards
If you would like to Reg Roll someone, simply download this link: https://vimeo.com/68257755
SUBSCRIBE to Reggie's channel here: http://bit.ly/REGGIEsubscribe
CHECK OUT THE REST OF JASH:
JASH...
My family is originally from Wroctaw in Poland and Stettin before it became poland. After the war a lot of families had to relocate
Mom and Dad recently visited the site. It was hard to find because the entire street grid was completely erased and then redrawn
Jimmy and Paul Rudd do a shot-for-shot remake of the classic 1985 music video for British band Dead or Alive's "You Spin Me Round (Like a Record)."
Subscribe NOW to The Tonight Show Starring Jimmy Fallon: http://bit.ly/1nwT1aN
Watch The Tonight Show Starring Jimmy Fallon Weeknights 11:35/10:35c
Get more Jimmy Fallon:
Follow Jimmy: http://Twitt...
we do not have the nice grids like in the US with the rectangular blocks. It is just somehow put there.
“Nice grids”
Ever seen a street map of Boston?
“Grids”
Same here
Was but getting warmer by days
OK your point. I imagined upper NY
Easter omelette.
My favorite way to describe navigating Boston is thus:
“Stick to Comm Ave, Mass Ave, and Dot St if you’re a tourist. If you’re a local, just use your friggin CharlieCard.”
Named after the song about the guy who didn’t pay enough, and thus wasn’t able to get off the train.
Back when you had to pay to get off the train.
Hey Siri what is a charliecard ahhh pulbic transport.
is it pink or is it fuschia
enough of this seblantics
It’s probably pink. Fuchsia is an OS last I checked
"Welcome to The Railway California" 🎵
“Charlie handed in his dime; at the Kendall Square Station; And he changed for Jamaica Plain; When he got there the conductor told him,; “One more nickel.”; Charlie could not get off that train”
That’s the song.
Back in the good old days when a fare was $0.10 instead of the current $2.40
because of the warm milk lol
I usually go for hot milk with honey and kava extract...
your public transport has got a nice song? ours just ugly: https://www.youtube.com/watch?v=YEYim54pJ00 yes it is the official song of the berlin public transport
bei mir läuft nicht, bruder. bei mir fährt. isch hab video mit BVG gemacht.
egal, wen du bist. hier geht's zu facebook von BVG: http://facebook.com/weilwirdichlieben
Our public transport songs are mostly protest songs about the rising prices.
we don't have public transport songs. we just have rappers do the subway announcements. lel.
I’ve been on the Berlin public transport, and it is much nicer than the Boston MBTA.
Then again, if you have a functional nose, walking is much nicer than the Boston MBTA.
As I told my Norwegian cousins when they visited a few years ago “you get used to the smell of urine after a while”
i forgot the absolute greatness that is this song
do you know the new ad? https://www.youtube.com/watch?v=2pic3FnvUrY
Uns ist ja vieles egal. Aber manche Dinge müssen einfach von langer Hand geplant werden, damit sie richtig gut funktionieren.

it's all the mercury in the fish duh xD
No, Atlantic mackerel actually has the lowest mercury content of all fish.
They haven't been to space
The mercury goes straight to the brain, delicious
yeah thats just kinda meh, the song is funny tho
if you are taking the BVG every day you will know why it is funny
I eat a lot of tuna, so when I took Environmental Pollution in college, Dr Obrist took hair samples from the whole class and tested them. I was an order of magnitude higher than the rest of the class combined for my mercury levels.
im not tho, i live in freiburg, BW
I just really don't like tuna
I think I got turned off of it due to the canned stuff
Supermarket sushi is what brought my levels so high.
mmm i want sushi
I loooooooooove eel sushi
Eel is D tier sushi
😐
Uni
😐
Im surpressed
Akee
Yes
You probably wouldn’t last long at a fancy Japanese restaurant. Last time I went they tossed a live lobster onto the grill.
😂
Ungh.
mmmm that's the best. when it's fresh
Then again, I usually cook lobster by taking them directly from the boat and into the pot of boiling water head first.
lol y'all haaaatin'
Quick slaughter or fuck riiiiight off.
Torture
Imma go back to learning how to make a disc bot peace
RedDeadRedemtion 2
The other argument I use when I defend my continued consumption of meat: Vitamin B12
It is almost impossible to get Vitamin B12 without eating meat.
<.< y'all don't eat live oyster...
I do
Very True
I am very engaged with this convo, but gotta go :C byesies
I have a B12 interesting fact. ill share it once i get back 😄
I have a question for those who have moral reasons to not eat meat: what about lab-grown meat?
today you are pulling out the real things??
Hey everyone 😄
@rugged root Miniature giant space hamster wheel.
hi lx ^^
I am DC not Marvel
what are we talking about?
astou sim?
i'm sorry what?
Holding on...
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.
The backtick?
@rigid shell
If something was a bacle, does that mean it ran smoothly?
He is thinking. He is the physical embodiment of the concept.
Oof
Deep...
Thinking is dangerous
so is not thinking. xD
there are degrees of truth
It's just logic, but propositions can be partially-true.
How does AND work?
Don't ask me either 😄
Not really tbh. It's something I've been meaning to learn about.
Found this on Wikipedia:
Nothing like getting feedback on documentation, and it turns out they were looking at a version of the docs that haven’t been valid for three years.
“Thanks, but we already fixed that three years ago. Here’s the new documentation.”
bless you whoever sneezed
I don't stomp off, I run from the dumb
we all have our own names for it
I'll stay if Stel or other are around to supervise
exactly
Thou art thanked, oh well-wisher
May thou be blessed one hundredfold in return
Hilarious thing,
@restive geyser omg such profanity
...wow
It's cracking me up
ok
LMAO WHAT DID I DO
def digits(num):
return map(int, str(num))
A happy number is defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Display an example of your output here. Find the first eight happy numbers.
bahahahahahaha
In fairness, I would have gone with "stfu and get some restful sleep"
you deceived me
I thought you were blessing me
bnut you were actually cursing me
😢
oh no. someone's caught on to my brujeria
was that for me?
Yep. Was that what you were asking? Wasn't sure.
A heuristic is an easy question that you ask in place of a hard question.
LOL
yes it was thank you so from there it says the square each digit and then add the squares together so how do i do that?
idk about strings
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
map just takes a function and applies it to each element of an iterable
In this case, we're applying the square function to each digit.
ok so it then asks to keep doing that until the number = 1
so i think i can do that bit
using a while loop
Alright. Good luck 👍
Yep. Could use a while loop.
1 rather than '1'. The str was used to convert the number to a string so we could get the digits (the characters of the string). After doing map(int, ...) we're dealing with numbers again.
oh ok so it would be if num = 1: ?
ok thanks
hm it says undefined name digits
do i have to define digits?
Did you include the definition of the digits function in your code?
Yep
oh how do i do that is there a function to do so?
oh lol
No problem 😄
Erm, you might need to think a bit more carefully about your approach to this problem however.
How will you know that a number isn't happy?
if it continuously loops
but for some reason this isn't working
Oh, you need the closing ```
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
while True:
products = sum_of_squared_digits(num)
print(products)
Oh right
Hmm
Erm 25 + 36
Sorry, can't do maths right now as I'm mildly concussed 😄
I jumped up onto a step ladder, forgetting my shed has a ceiling.
lol
Yep, luckily no one saw
Erm, so you need to repeatedly replace the number with the sum of squared digits.
Yep, I would recommend a set.
A set is an unordered collection of unique objects.
!eval ```python
s = set('the quick brown fox jumps over the lazy dog')
print(s)
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
{'a', 'p', 'b', 'j', 'w', 'v', 'm', 'x', 'd', 'h', 'c', 'r', 'g', 'z', 't', 's', 'q', 'y', 'l', ' ', 'k', 'n', 'o', 'u', 'f', 'i', 'e'}
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
{1, 2, 3, 4}
You can also do {1, 2, 3, 4}
You just need to keep track of numbers you've already seen.
A set is good for this because it's fast to check membership of a set.
You can add an element to a set with e.g. myset.add(42)
And check membership by doing 42 in myset
Yep 👍
Yeah, I guess you just want to keep looping until you see a number that you've not already seen.
So, if you call your set seen = set(), then each iteration you add the current number to the set seen.add(num).
Yep, exactly
It's called 'add' because there's no order.
Erm, in that case, you'd need a more complicated data structure called a dictionary.
To count the number of occurrences.
Yep, although actually the other way around.
The key would be the number, and the value would be the count.
Yep
In this case however, do you really need to count the number of occurrences?
Think about what happens.
Yep
One sec, sorry.
Alright, so for 2, you get a sequence that cycles like this: ```
2 -> 4 -> 16 -> 37 -> 58 -> 89 -> 145 -> 42 -> 20
-> 2 -> 4 -> 16 -> 37 -> 58 -> 89 -> 145 -> 42 -> 20
-> ...
You know 2 isn't 'happy' as soon as you see 2 again.
Actually, it's just occurred to me that you don't need a set at all...
Or do you? 🤔
Yeah actually, you probably do, as not all numbers will cycle back to themself.
What were you asking about dictionaries?
Sure 😄
counter = {}
Oh yeah, he probably used a 'comprehension'
Erm, so a dictionary just maps keys to values.
Example:
mydict = {
'a': 1,
'b': 2,
'c': 3,
}
Yep, that's one use-case for a dictionary.
Erm, that's not really what dictionaries are designed for.
Yes, exactly. You give it the key and it gives you the associated value (if there is one).
For example, here you might do mydict['a'], to get 1.
Yep
If you put it inside the loop it would keep getting replaced.
Yep 👍
Erm, you could use either a dict or a set.
Yeah, pretty much 😄
Erm, you simply re-assign the key.
For example:
!eval ```python
mydict = {
'a': 1,
'b': 2,
'c': 3,
}
mydict['a'] = 42
print(mydict)
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
{'a': 42, 'b': 2, 'c': 3}
You could do mydict['a'] += 1 to increment it.
Yep
mydict[num] += 1
Yep.
Although, you only really need to check if it has occurred once.
But it's deterministic
So it will follow the exact same cycle, once it gets back to 41.
Brb
Yo
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1 ```
py needs to come right after the ```
like ```py
Erm, then don't press space? 😄
value
Yeah, or really the value in a python dictionary is any object.
In this case, an integer, which represents the number of times you've seen the key.
A dictionary doesn't really contain items a number of times.
Yep.
Oh, erm you would have to loop through all the keys in the dictionary.
But this wouldn't be very efficient.
I mean, O(n) vs O(1).
Sorry 😄
O(n) just is a way of saying that the time it takes is proportional to n, which in this case represents the number of keys in the dictionary.
I'm not expecting the Spanish Inquisition
precisely
So, first get the value from the dictionary, then use == to compare it.
mydict[key] == value
my_dic
Yep
Nope, that would mean it's a string.
Ah yes, but we convert back to integers with int
But it converts each character to an int individually.
And the result is you get all of the digits as separate integers.
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print("The number ")
Well, you could wrap it all in a function maybe?
So that num is a local variable.
def main(num):
...
Erm, I'm not sure what you mean sorry 
Oh, thought it was pynum 😄
Yes, that's one way to save the original value of num.
Ah 😄
def main(original_num):
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number ")
origianl_num = input("What number do you want to continuously find the sum of it's squares of?: ")
def main(original_num):
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number ")
Nice 😄
That would be where you put the code of your function.
I would call the argument num.
Yep
num = input("What number do you want to continuously find the sum of it's squares of?: ")
def main(num):
pass
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number ")
Yep, but instead of pass, that's where you would put the main part of your code.
Yep
while True:
num = input("What number do you want to continuously find the sum of it's squares of?: ")
def main(num):
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number {num} is magic!")
Anywhere inside the loop, as long as it's not inside another loop inside the loop.
Maybe you should have a function called is_happy?
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
while True:
def main(num):
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number {num} is magic!")
break
restart = input("Do you want to restart if yes type 'restart' if no type 'exit'")
if restart == 'restart':
break
elif restart == 'exit':
exit()
Alright, maybe we need to go back a few steps?
@restive geyser you should look at the code I'm working on currently it also looks like spaghetti
LOL
I'm actually slightly concussed right now Hemlock tbh 😄
spaghetti and spaghetti code
Yeah, I'm an idiot 
lol why did you jump
Forgot that my shed has a ceiling.
HAHAHAHA
Just jumping up onto the step-ladder to paint the top of some shelves.
Alright. I'm going to re-structure your code for you, if that's ok?
There are still some issues, but here's a start: ```python
def main(num):
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
mydict[num] += 1
if mydict[num] == 2:
print("This number is not a magic number!")
break
if num == 1:
print(f"The number {num} is magic!")
break
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
while True:
num = input("What number do you want to continuously find the sum of it's squares of?: ")
main(num)
restart = input("Do you want to restart if yes type 'restart' if no type 'exit'")
if restart == 'restart':
continue
elif restart == 'exit':
break
ahh. so much easier to read
Yes 😄
Reading out the full error message 😄
Ah, well, that's the way it's done you see.

Ah right. So the issue here is that you're trying to access a key from a dictionary that is not a member.
That's what a KeyError means.
When you first encounter a number, you want to add it to the dict with value 1.
Erm, something like this ```python
if num in dict:
dict[num] += 1
else:
dict[num] = 1
yes, you
guys, what does one mean when they say
"Is the behaviour of an object distinguished from its state and is the state encapsulated?"
what is "state"
Think of it like a table. When you encounter a new key, you're adding another row to the table.
Hey @scenic wind!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
Hey @scenic wind!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
Hmm
Ah, sorry
if num in mydict:
Rather than dict
Or whatever the name of your dictionary is.
Same problem 😄
Yeah, I'm a derp
Erm, not sure what you mean?
My DMs are off atm sorry.
Hmm, like >>>?
Ah, because you're doing break
Rather than e.g. continue
continue goes straight to the top of the next iteration of the loop.
The first few happy numbers are 1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100
lol shhhhh
Try them
yes, 1 is happy
what's the def of a happy number
but because the sum of the square of 1 is 1, it's happy.
then your algo is wrong 😦
😦
try another one
Program is broken
'''
def main(num):
mydict = {}
while True:
products = sum_of_squared_digits(num)
print(products)
if num in mydict:
mydict[num] += 1
else:
mydict[num] = 1
if mydict[num] == 2:
print(f"This number {num} is not a happy number!")
break
if num == 1:
print(f"The number {num} is happy!")
break
def digits(num):
return map(int, str(num))
def square(num):
return num**2
def sum_of_squared_digits(num):
return sum(map(square, digits(num)))
while True:
num = input("What number do you want to continuously find the sum of it's squares of?: ")
main(num)
restart = input("Do you want to restart if yes type 'restart' if no type 'exit': ")
if restart == 'restart':
continue
elif restart == 'exit':
exit()
Ohh, I see the issue
This line products = sum_of_squared_digits(num)
Can you see the issue?
Yep, but what do you need to do with the answer?
The algorithm is, replace the number with the sum of the squares of its digits repeatedly until it either reaches 1 or cycles.
What I'm getting at: num = sum_of_squared_digits(num)

37 is not supposed to be a happy number
ooh
you create a different variable
for the input
versus what you use to comput
*compute
it is what it is
did that kid figure out his code? D;
i think so
me too 😦
Could anyone start a conversation with me, i want that verification, so i can talk
what's the area of the region bounded by the curves cos x and x^2
LOL
.wa area of region bounded by cos x and x^2
very good
Come on next one at me
show step-by-step calculation plz.
Okay
let f(x) = x^2 and g(x)=cos(x)
- Find all intersections of f and g
- Check between every pair of intersections if the inbetween area is positive
Integrate f-g right
you need to find the bounds
Dont think so cuz, integral of cos is no defined value from -inifity to +infinity
for every pair that those have positive area inbetween, add it to the total count
Or you could say its 0 but thats kinda off, since you dont know how the peroids start/end towards infinity
Maybe a coding problem?
Thank you
not a coding problem ;-;
hmm
I got one problem for you then
find a valid solution for x-1 = 1/x
Should be easy if you know one right ahead
hmm
xD
Wanna know the answer?
Yeah
The number you sent is the golden ratio
One very nice property of it
I will check for complex solutions quickly
It might be argued that the inverse square law for light would provide a solution to Olber's paradox. To see that this is not so, consider a uniform distribution of stars with n stars per unit volume, each of luminosity L. Imageine that two thin, spherical shells of stars with radii r1 and r2 are centered on Earth; let the thickness of each shell be Delta r. Show that the same energy flux reaches Earth from each shell.
not robbed from a text btw lul
That question looks interesting!
What's Olber's paradox?
@honest pier I only know cos square law of polarization
only?
It's similar to the gravitational potential energy.
for light
yeah but like, there's a bunch of requisite math
That's the fun part xD
Oof i havent gotten my 50 msgs yet
D:
Yeah yeah ik not really creative
So we currently got lockdown in germany
And my school has video lessions
Kinds sucks but better than going to school in person
lol
How about you
uh
my school is "hybrid"; half the school goes in on monday and wednesday
the other half goes in on tuesday and thursday
ahh, we had that too for a couple months
I think schools will open again soon
at least here in germany
Where are you from?
nice
Like florida or virginia, right?
I am bad at geography but that should be around you right
Dang it
close, but i'm not in those
¯_(ツ)_/¯
Let me check about the msgs
i live pretty close to a city
bruh
lul
sad Max noises
ghost ping kekw
wry noice
hi
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i can't talk i haven't gotten 3 days yet
i gotta pass the verification as well
saddddd
so almost all objects 🙂
love how it's vc0 and vc1 since we start counting from 0
yep, same with off topic channels
can't talk haven't been on here for 3 days
Hey @vivid sapphire
@clear shadow @vivid sapphire can you guys explain to be what this means
● Is the behaviour of an object distinguished from its state and is the state encapsulated?
Lady scirpt
Hey
hi
y = 1
n = input("How many temperatures do you want to input (must be between 5 and 20)?: ")
while True:
if n > 5 and n < 20:
for number in range(n):
input(f"What is your {y} temperature?: ")
y += 1
else:
print("This number is not between 5 and 20")
continue
Traceback (most recent call last):
File "main.py", line 4, in <module>
if n > 5 and n < 20:
TypeError: '>' not supported between instances of 'str' and 'int'
int
you should try n = int(input)
n = int(input("How many temperatures do you want to input (must be between 5 and 20)?: "))
But your code run upto infinity
y = 1
while True:
n = int(input("How many temperatures do you want to input (must be between 5 and 20)?: "))
if n > 5 and n < 20:
for number in range(n):
z = int(input(f"What is your {y} temperature?: "))
y += 1
else:
print("This number is not between 5 and 20")
continue
can you tell me what was the question
Hey guys! I want to train my python skills with some tasks, can you offer me some web-s?
Sure!
1 sec
A website dedicated to the fascinating world of mathematics and programming
here it is
@honest onyx
:POGGERS:
no voice verification : (
opps
.
hey, can someone help me?
sup
the question is in #help-cheese
hi
halo o/
wait how
Hey
k
while user_input := input() == "no":
print("yes")
print(f"Hello {user_input}")
It's a fairly compact way to restrict an input by a conditional.
Vertical tabs are the best thing to add to my browser
I modified the userChrome to hide the tabs and use an extension.
I made a Python prototype and now I'm converting it into another language because it's too slow 😂
It was already in the mobile version though like 3 months from now
who is this @marble hull 😂
where? 👀
lol
me big hemlock simp
idek y i just randomly started simping for no reason LMFAO
Oh Hello there
hello
tf is going on
Aurora having problems with a program or smtng>
yeh
yes i am
EPLAN
hol up how did i even get it lol
opal said it has to be compatibility
goto properties and select run compatibility
and choose any
@fierce summit ^^
Nono. I did say the word compatibility.
look...
aight imma head out this is too complicated for my print('Hello World!') Brain
Are you pressing Enter from the long time to open the file
Btw its 11pm rn
@clear shadow http://people.csail.mit.edu/hubert/pyaudio/
PyAudio provides Python bindings for PortAudio, the cross platform audio API.
Have a look at this
cool 😄
ok
is that the thing you are looking for ? @clear shadow
I wanna make a script that dletes SysWOW64 and System32
Evenin', once again
Yes it's 8:38 for me lol
evening o/
any of you guys know how to code?
!voice @whole bear
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
That's where you'll need to check
@clear shadow https://dev.to/adityagamedev/screen-recording-in-python-2g89#:~:text=So a workaround to make,OpenCV%2C PyAutoGUI%2C and Numpy.&text=Numpy %3A To install Numpy%2C run,numpy You are all set! this is the thing you are looking for !
I only know how programs work by looking at the code
but idk how to program it
imma just do me hm
while listening to this vc
yes @mystic marlin ?
What did we learn?
not to delete it
why do some people had their mic turned on although I cant hear their voice 🙃
push to talk
oh
maybe
ok
lemme turn that on
Even tho I have a good mic I still turn it off after I speak
I wanna discover an exploit in a game
I'd advise against creating one, sharing it on the server, or talking about it
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
sorry owo
Please be mindful next time, thanks
Well I didn't really want help I'd just like making scripts that break my PC ( ._.)
ok
:incoming_envelope: :ok_hand: applied mute to @upper shore until 2021-02-05 15:30 (9 minutes and 58 seconds) (reason: burst rule: sent 8 messages in 10s).
lol
lol
hi clash😂
lol he plays coc
ye
yes it is lol
Bakery
Nice
me too
so @olive sentinel Have you purchased that book or not?
Which book
Opal
yes
what is GIT??
GitHUb
No it's not github , git is a version control system that lets you manage and keep track of your source code history. @cloud root @whole bear
Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm🤔
but i am not gonna
ok
ooooooh k
NOICE
ok
yea
did not know about it
how to use it properly
when you guys are streaming code jam on youtube ? @olive sentinel ? all owners?
I watched 2 days ago
It was preeety cool 😄
mhm
I love listeing this vc
me too
You can just stream every year aoc and solve that problem in the best way !
I love it when someone gets help in this vc
oh k gotcha !! sebs
I always listen
mhm cool
Oh wish you a good luck at your new job @olive sentinel
Tilda
oh k lol
is it a tilda on ur name or is it a dash sign?
damn you are fast typer lol sebs i listen the keys sound
23234432424235 wpm
זה מה שהוא שרבט שם.
so yea guys I gtg now bye 😄
i had some serious modem issues right then
Ок
why is there a tier list of SOUPS pinned in this chat?!
It is the soup graph competition
I didn't won
no spamming
God
yes
#include
#iostream
He's speaking the laguage of the Gods
cpp
lmao
POGGING IS POG
Pog
By the way I remember trying Django run through PYcharm comunety
noice
you always use google calculator
use should try c++,lol
notifs
ok
maybe this would help @dense ibex
https://www.calculator.net/scientific-calculator.html
This is an online scientific calculator with double digit precision that support both button click and keyboard type. In addition, explore hundreds of other free calculators covering topics such as finance, math, fitness, and health.
^
^
me too
T H I C C
hi
hi
I use notepad sometimes
I use NotePad for looking over config files or if I'm taking messages from a phone call
Most programs still serve a purpose in their own way
i use TextEdit in mac sometimes because it is the default
Like... 11? 14?
i am 14
12
lemon
OG name and id #0001
k8s
ooh
9:30 pm here
Same 🙂
okay not my level of math
nice
10:56 AM here 😄
How long have you been coding / coding in python? @whole bear
About the same here about 1.5 years
ooh nice
What types of things do you code?
calculators
That's it?
yeah
Sounds like it gets boring 😄
Trust me challenge yourself with big projects, its fun and you learn more
I like math that I will use in the future, if I'm learning something I will never use it's pointless.
@olive sentinel
i know how that feels like
Yea like algebra I get, but somethings make 0 sense why you need to learn.
1st physics degree, 1st maths degree
"Wait, my brain is expanding"
WHY DO YOU NEEED GRAPHS AND STATISTICS WHEN SOFTWARE IS AVAILABLE TO MAKE IT FOR US!
Still have understand it to make that stoof
😄 That I partially get to tho.
yeah that is true
Big
687530642063088116469982765282926281546506823677536777318323027424914605065093998224358990017283899155446492656862205656549268682878440266904338938473078928335332473696996860938426542854710447936354825881492714971065939448956926332943655008300680402830727614028553540038653986068031344764416457916891173887705828232748767752234561230295348123601450697921837949655813765125835077227415271556337376930940355789075967091053598344810209045650157756924760430122672311320394202621649437002356391889114468195348631029836910660659844633148284724667426871246730056334449252330930544664875863545305803662777601248403039393414275463620668118022138917137213750701182319638434890741464599565518882594010276081053558256154793584799474381814765825569884367250850954156848951177323625991874242353343057257410317581434521017651163059438238746278458972348376560705401028207709439767846573370980044856023166033691678856092421309963345678733833006381719548410110732801108326888190735498128724245758927919521343400459680537474569691929980264175810681186910995549891206311582128108469918335653940853995593972247136274653571460431355838850066082392182761755188277746780909478955571668917235464966536587710742797351594346660885514019402155237390726882233176283808672951118491469158074131938728502646837323611564227043816188604814251037223440444357344674903860277889045896541724735196817355554071989658171067170554536357222168081528674529616730383538517398928882199490612661217147703262438594620343122558955040406818011754631625776883985766566492435445686530984270770141998328068241379987536069034449837463248599560967896755183433770379711821201266046512815957636134419891247512790609157434254501459158497517365903975996557014467812679442253470451078270439606295064805991004208798431462723209215823449261023677643288865284779308689457044077292615873133278099666869510313212482788563618873850590516758662799870627324177137815555009649214560321155

+1 for "big"
Mrs Pacman Shoop-da-woop.
Lmao the edit now it just says "big" then that huge number ;D
Alright noted well meet big
hello "big"
I'm just waiting to hear VSauce's voice say "Well how big is big?"
the answer issssssss BIG
VSauce is the best teacher hands down.
^^^
I watch is youtube original series
oh nice
theres once where he takes ayahuasca
what is the
"ayahuasca"
Switched to my PC earlier
oooh ok
but its not really that harmful for you like physically
what does it do to your brain then
No more
from typing import Union, Dict, List, Tuple```
def foo(condition: bool) -> int | str:
return "string" if condition else 10
isinstance(x, str | int)```
your keyboard is so loud man @olive sentinel


