#voice-chat-text-0
1 messages · Page 382 of 1
I have some schoolmates collegemates living in Australia
Where do u live @whole bear
Mumbai ?
Yes
Punjab
🏃♂️
This guy is the definition of : I love animals.
How do you manage your expenses Opal?
Oh
No
@somber heath I heard that Linux is robust and efficient.
But when I use linux GNOME to copy and paste a big file it takes hours and no progress.
But when I did with the command line it copied within 3 sec.
I wonder why?
Actually I was copying an Iso file of size 5.8 GB
And the same file got copied in instant, when I used terminal
Actually I used cp
@autumn lake 👋
hi! just realized that i cant speak in the channel 😅
@autumn lake
#voice-verification
may i hop in?
Yes
yeah, i tried and seems like i cant get verified (yet)
Why?
@somber heath How was your day so far?
Simple is not easy
By the way do you use linux?
I have a system with 500GB storage.
I want to dual boot , is 500 GB enough?
Great
I mean thats all I got
I want boot using ubuntu
SSD
16GB
Ram
And I have dedicated GPU as well
2GB nowadays seems to be default
for swap
it's just so you have time to notice OOM before the system dies
"balanced"
why is it even using swap at all
@fading sparrow 👋
hello
hello
it might see cache as more valuable for quick access
what is a flag i wanted to know as a beginner
@fading sparrow I suppose you can speak
variable is container?
so we can assign variables to the size of an memory value to a data type ?
(there's also a flag in CTF sense)
can i ask another real life analogy
for flag
ooooo super
ok i get it
very good explanation
run = True
while run:
'Maybe change run to False, maybe not.'
...
print('Done.')```
Opal is good at teaching
@silk drift 👋
bookmark yeah
how to solve ?
!e py print(True and False)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
!e py print(False and False)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
!e py print(True and True)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e py print(True or True)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e py print(False or True)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
101 and 110 = 100
!e py print(False or False)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
ok ok
Hey guys, Do you mind me asking,, Is python anything like pine script or visual basic?
!e py print(not True) print(not False)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
yes i have done that while converting an expression from infix to postfix
my solution is wrong
0110
hehe
@fading sparrow Prior to python what language do you use?
Not and. One or the other or neither, but not both.
NOR?
yes
if there's an N it's just not (operator)
Trying to think of a joke involving spock, a telephone and logical operators. 🤔
howdy morning everyone
@terse rose sorry mate, I left VC all of the sudden when you joined.
I was busy at that time
I gotta go you both enjoy your time
Np
I'll probably be on in an hour or so
Getting prepped for more holiday deliveries
I would not survive without ginger pills
My stomach is a mess
!voice @thin fossil
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
breh
https://www.revouninstaller.com/products/revo-registry-cleaner-free/ To my fellow Windows users, this might be pretty handy for you
cant verify
It has some nice quality of life tweaks
Yeah you don't meet the message requirements
Just hang out, have a regular convo and you'll hit that easily
good
new and want to learn python
just trying my best
what do you do when you feel disoreiented
nah
ur human :>
"__ wow__"
i agree with u
but
yeeeaa
what is going on here ??
professional
project ?? which one
portfolio
looking for a telegram bots developer, simple task
you can share it .. maybe i can help you with it
There are helpers in the server that can help you out and maybe ask if there is one there :D
@lusty arrow ru available boss
jetpacks???
oh like an eagle
yeessss
oh no
wow
i was thinking of making a robot too
which is very distant
exoskeleton
i had this idea once
a gundam
but the more i think of relay modules, embedded code
everyhting hits me hard
o-o
gone ?
yup
so what you upto ?
why .. don't you follow any tutorial
no it's a state that whether you say something apart from coding too i can't comprehend
maybe i need sleep or rest or exercise or something
algorithms .. are you studenting the dsa ?
yes
ok.. i am also trying to study it .. but i use the C++ for it
no ..no ..
it's for python
voice chats are offtopic
i am know where i am
okk ill follow that
offtopic.. ?? what is the topic ?
i am trying to learn python for my .. new project ..
my pc red light is blinking and automatic turn off and on
o maybe ur ram is disconnected
or ur harddrive
but i do that and same
it can be ..you pc power supply have some issue
yes i think
mob
.. again master .. why don't you handle this time
how are you gonna learn let's handle em
ok .. i sense some spirit here?
where's dimple
seee your back
he is with my brother
where's ritsu
isn't it too personal master
mob follow my principles
hello @tulip dove
Hey
somewhat expected follow up question: "why not C?"
c++ = oops
riveting conversation
its easy
its goddam cold
c++ is cold
wait a minute
REIGEN ARATAKA, THE GREATEST PSYCHIC MEDIUM OF THE 21ST CENTURY????
LET'S GOOOOOOO
Python is Slower than C++\
how about english
isn't that obvious mob
Yeah but python is easy to learn
just use both ¯_(ツ)_/¯
C++ have more control over the code
how can I help you exorcist spirits
you have equal amounts of control over the code in every language: you're the one writing it
OK u win
that's not always true
you're the one writing it
allegedly
Python wrote in C++ 😅
just C
python is commonly implemented in C
but there are plenty of other python interpreters written in other languages
its best language for general purpose and ml stuff
or attempts at it, at least
Yah but I'll choose python
ok ok .. it time for me to go sleep
as opposed to making a CRUD app in C, which would count as unjust C
Go to sleep?
mob meet me at 5' tomorrow
I thought C was frank?
What time is it at your country?
bye mob
1 am midnight . so bye now .. see you all tommow
Ok
brb
Brb
back
and everyone left already
I guess
I don't participate in AoC
(I'm reading through the FAQ on that matter)
better DM than share here
(which is quite explicit on not sharing it anywhere in the server other than specific channels)
Understood.
guys can u help me on this coding part
ohno
@lethal shell we are discussing some code in DMs (though not very actively)
@lethal shell Q#
?
maybe google just wants another thing that they technically don't yet have a monopoly on
yahoo search attempted to compete
I think duckduckgo still uses that as a backend
that and Bing
afaik it's a wrapper around two other search engines
(ddg)
not an entirely independent search engine
using Google to find Bing: just works
using Bing to find Google:
(that big search bar in the middle is obiously not Google)
they also used to do that for Google Chrome
Imagine a sign next to it "Suit yourself.".
"no need to get a different browser" or something like that
and IBM is just attempting to have anything relevant
Google will not be able to compete with IBM, Quantinuum, nor Amazon.
including the Hashicorp acquisition
IBM has Qiskit, Aer, and their own line of hardware. You can't find a single package that doesn't use qiskit or Aer.
They are the dependency. Plus, they're oxidizing their codebase to be written fully in rust, so their package is gonna be even faster with 2.0.
IBM has the software market. Quantinuum started exploring more novel ideas to reform them into SaaS, and IBM countered by introducing qiskit-addons.
... and Red Hat
Google is still trying to fix bugs in their library for the very basic stuff. They won't be able to keep up at the current state.
Besides, if we're talking about newcomers, Nvidia will likely be the one. They're the first team to incorporate MLIR architecture into circuit compilation.
As in circuit to hardware instruction, not high level operation to circuit.
IBM had a massive head start as well. Google is still getting their bearings.
By 2030, we'll likely see some proper results from each side. Qiskit-addons seems promising. Quantinuum's fault tolerant hardware seems promising. They're also working on a rust-based compiler, so that'll be interesting.
Nvidia will also become a lead for classical simulation I imagine by then.
I've just realised what Zig's equivalent of "Rewrite it in Rust" would acronymise as and I don't like it
Riir?
RIIR -> RIIZ
Hah.
@lethal shell yes (allegedly)
I've left the academia quite a while ago
small startup
Did you make any publications during that time?
there's a total of 1 unfinished paper and 0 publications
Love it.
I have this one paper I've been working on on and off for a good two years now.
Stuck on this one equation for more than a year.
Have to derive this normalization equation for this general propagator, and it's rather hard when there are no similar works since 1940s.
They won't know where to begin.
I took sth that was physical, and extrapolated it to be mechanical. With that, I traded the ability to experiment and derive normalization adhoc with generality.
Which means now I need to derive the normalization from scratch for each system. To make it worthwhile, it needs to be consistent, and that is why it's so difficult.
I'll have to get back to it once I finish my current research.
better in what sense?
It wasn't really revolutionary or anything (at least compared to my current research) but it's a really fun one.
Company will own your research.
But you get paid.
depends on the contract
You are being paid to make an IP for them.
You get credited.
You just can't say you own it, or use it unless they permit it.
You are hired to make IPs for them, that's the job. If you want more freedom, more control, then you'd have to get a job as a researcher at a university or research center, and essentially farm papers.
You're getting paid.
Money buys most things.
You can always do independent research.
As long as the you don't violate the NDA (and non-compete if you signed such a clause) you're fine to do independent research.
Write a paper, and put it on arXiv. Done.
He hires smart people to make IP for him.
He pays them more, so they are inclined to work for him.
He knows when to get into a field, so in that sense he's smart from what I can tell. He's not technical, but he's a good businessman.
idk if anything of what I do qualifies as research
Does it make an attempt to solve a problem or improve a current solution which is not done before in its entirety?
ig in programming that separation doesn't make as much sense
blurrier lines
since it's fundamentally mostly research anyway
so maybe the qualification lines are shifter somewhat
In programming, you can't really say you invented this style of coding. You can do research and then implement it.
@soft axle Sun (was)
I mean, you program sth to implement it, right? If that thing is trying to solve a problem that's not solved thus far, or improving a solution beyond what's available now, then it's research. Research is essentially a condition
if novel(paper) and valid(paper):
return True
survived long enough to be an example
It has to be correct, and it should be novel, otherwise it's a review article.
"be successful or be honest" is a thoroughly false dichotomy
Being the best is not feasible. Being valuable is.
"In the pursuit to do great, we failed to do good." Common mistake ambitious people make.
It's temporary.
Others will build upon your work, and now they're best.
You can't be the best unless no one contributes to your work and you are the only person leading the work. Infeasible.
Look at community projects vs solo or corporate projects. Brilliance is about experience and perspective and passion. You may have two of the three, but you need others for the last one.
Ambition is not tied to narcissism. Ambition is just the lack of belief in limits. Can be good. Can be destructive. There's many good stories about this, like Icarus.
Ambition is a good driver, but only when kept in check. It's like a stud. Let go of the leash and you'll fall on your arse.
Thinking how to lamda this up for lazy evaluation.
dag = {a: {b for b in val if b in ordering[a]} for a in val}
Is there a builtin for lazy dicts? Seems like a useful tool.
class collections.defaultdict(default_factory=None, /[, ...])```
Return a new dictionary\-like object. [`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict) is a subclass of the built\-in [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) class. It overrides one method and adds one writable instance variable. The remaining functionality is the same as for the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) class and is not documented here.
The first argument provides the initial value for the [`default_factory`](https://docs.python.org/3/library/collections.html#collections.defaultdict.default_factory) attribute; it defaults to `None`. All remaining arguments are treated the same as if they were passed to the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) constructor, including keyword arguments.
[`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict) objects support the following method in addition to the standard [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) operations:
Using defaultdict currently.
It doesn't do lazy evaluation though, right?
Desperation is more powerful.
Ambition is about want. Desperation is about need.
Look at legendary figures who reached great heights from nothing.
It's that it's beneath him.
He's being fancy.
He's ascended beyond our plane of existence.
metaphysics time
We measure quantum states, he reads them as a lullaby.
The great objective of living beings is to protect life. Genocide goes against that. You need to introduce a necessary evil to violate the objective in the short-term to satisfy it in the long-term.
"My lie is more believable than yours."
unfortunate naming
classic situation
dag = {a: lambda {b for b in val if b in ordering[a]} for a in val}
what type is ordering[a]?
list?
set(ordering[a])
Rust has this for lazy eval:
https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html
May its wheel spin for you. @terse rose
class Lazy:
def __init__(self, f, *args, **kwargs):
self.__f = f
self.__args = args
self.__kwargs = kwargs
@property
def value(self):
if self.__f:
self.__value = self.__f(*self.__args, **self.__kwargs)
self.__f = None
del self.__args
del self.__kwargs
return self.__value
!e
class Lazy:
def __init__(self, f, *args, **kwargs):
self.__f = f
self.__args = args
self.__kwargs = kwargs
@property
def value(self):
if self.__f:
self.__value = self.__f(*self.__args, **self.__kwargs)
self.__f = None
del self.__args
del self.__kwargs
return self.__value
x = Lazy(set, [1, 2, 3])
print(x.value)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{1, 2, 3}
I might be back in 1~2 hours or maybe tomorrow
"Donut math: how donut.c works" blog post by Andy Sloane:
https://www.a1k0n.net/2011/07/20/donut-math.html
Deobfuscated code: https://bit.ly/2BITbQm
12 seconds · Clipped by Magister · Original video "Math or Art? Patterns in 'Moon like' motions | Animated video by Mathing" by Mathing
String[] strings = new String[1];
Object[] objects = strings;
objects[0] = new Integer(1);
this compiles
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | True
002 | True
003 | False
@tulip gyro
def doThing(lst: list[str | int]) -> None:
lst.append(69420)
names: list[str] = ['bob', 'wendy', 'digger']
doThing(names)
print(names)
<@&831776746206265384> we want streaming! we want streaming! we want it now!
yes!
oh
you need permission from the mods to stream?
ah
oops
not good
hope hes okay
music + coding is a great combo
lmao
oo
thats cool
he left
straight away :/
your back!
thanks!
wish the moderator would join :(
so i can stream
hello @last wigeon
how are you?
i dont know how to do it 😭
im that slow
have you guys heard of that guy ma lin?
look at his about me: https://leetcode.com/u/Ma_Lin/
thats not me
no
thats an olympic medalist
who quit and turned to coding
tryna get a FAANG job
i just wanna stream
ples
moderators
leet code acc made
time to try the first problem
"two sum"
Let p = [p_1, ..., p_n] be a permutation of [1, ..., n]
For all 1 <= k <= n we say p is k-good iff there exists a subarray of p which is a permutation of [1, ..., k]
Return a boolean array of length n where position k is true iff p is k-good
array = [1, 3, 2]
output [true, false, true]
@opaque depot
https://www.youtube.com/@SheafificationOfG/videos @opaque depot
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. oom
my brain is stumped
mhm
nah i dont understand much
could i do a double for loop?
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target:
return [first_num_pos, second_num_pos]
ugh would that work?
Cat is a subtype of Animal
but is list[Cat] a subtype of list[Animal]?
should i submit this?
oop
Follow-up: Can you come up with an algorithm that is less than O(n2) time complexity? no
hello @hybrid zenith
yeah ik
but i have no idea
no
i dont wanna speak
well i fucked up
im disapointing
i failed the first easy question
🤦♂️
def doThing(lst: list[str | int]) -> None:
lst.append(69420)
names: list[str] = ['bob', 'wendy', 'digger']
doThing(names)
print(names)
###############
def doThing(lst: list[Animal]) -> None:
lst.append(Animal())
cats: list[Cat] = [Cat(), Cat(), Cat()]
doThing(cats)
print(cats)
me!
@hybrid zenith this fails
data structures like what?
!e ```py
class Animal:
pass
class Cat(Animal):
pass
cat = Cat()
result = isinstance(cat, Animal)
print(result)```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
i need dictionaries for that?
@somber heath
!e
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
fuck
shouldnt it be the second iteration for first_num
then the 3rd for second_num?
@hybrid zenith repeat?
couldnt here you
!e
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target and second_num is not first_num:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[0, 0]
can someone help me with my python code please?
!e
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target and second_num is not first_num:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 2]
@digital lynx 👋
hello 🙂
im having trouble with ocr detecting grey text
so I made a test class that replaces grey pixels with black pixels
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target and second_num is not first_num:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,3], 6))
!e
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target and first_num_pos is not second_num_pos:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,3], 6))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
None
yeah I already did replace the grey with black, but im having trouble implementing the logic into my api
!e
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for first_num_pos, first_num in enumerate(nums):
for second_num_pos, second_num in enumerate(nums):
if first_num + second_num == target and first_num_pos is not second_num_pos:
return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,3], 6))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[0, 1]
awesome
do you mind checking where im going wrong?
i'll have a look, i likely wont be able to help
first leet code question done
im now a leet code user 🔥
my mic is right next to my keyboard, sorry
yes?
YES
@somber heath
oh
?
hehe
but
otherwise my mic sounds horrible
krisp on
better?
yay!
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
oo
my brain
🤯
i dont even understand what its asking me to do
thats enough leet code for today
tommorows problem
im nervese to talk in here
since im likely youngest in here
13
oop
@somber heath its leet code question 2
Example 2:
Input: l1 = [0], l2 = [0]
Output: [0]
Example 3:
Input: l1 = [9,9,9,9,9,9,9], l2 = [9,9,9,9]
Output: [8,9,9,9,0,0,0,1]
heres the preset code i have been given:
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
ooo
so does it just take away l2 from l1
so for example 3:
l1 = 9999999
ohhh
add them?
oh
rip
heres the preset code i have been given:
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for num in l1:
l1_string += num
for num in l2:
l2_string += num
output = int(l1_string) - int(l1_string)
output_list = []
for i in str(output):
output_list.append(i)
return output_list
could that work?
?
concatinate
!e py 'abc' + 123
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | 'abc' + 123
004 | ~~~~~~^~~~~
005 | TypeError: can only concatenate str (not "int") to str
mhm
lets do a test
on my code
!e
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for num in str(l1):
l1_string += num
for num in str(l2):
l2_string += num
output = int(l1_string) - int(l1_string)
output_list = []
for i in str(output):
output_list.append(i)
return output_list
test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
l1 is [ListNode]
for num in l1: don't work
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 26, in <module>
003 | print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | File "/home/main.py", line 13, in addTwoNumbers
006 | l1_string += num
007 | TypeError: can only concatenate str (not "int") to str
oop
what is concatenating?
!e
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for num in str(l1):
l1_string += num
for num in str(l2):
l2_string += num
output_list = []
for i in str(output):
output_list.append(i)
return output_list
test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 26, in <module>
003 | print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | File "/home/main.py", line 17, in addTwoNumbers
006 | output = int(l1_string) - int(l1_string)
007 | ^^^^^^^^^^^^^^
008 | ValueError: invalid literal for int() with base 10: '[9, 9, 9, 9, 9, 9, 9]'
mmm
!e
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for str(num) in l1:
l1_string += num
for str(num) in l2:
l2_string += num
output_list = []
for i in str(output):
output_list.append(i)
return output_list
test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 25, in <module>
003 | print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | File "/home/main.py", line 19, in addTwoNumbers
006 | for i in str(output):
007 | ^^^^^^
008 | NameError: name 'output' is not defined
@lime lava 👋
!e
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for str(num) in l1:
l1_string += num
for str(num) in l2:
l2_string += num
output = int(l1_string) - int(l2_string)
output_list = []
for i in str(output):
output_list.append(i)
return output_list
test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 12
002 | for str(num) in l1:
003 | ^^^^^^^^
004 | SyntaxError: cannot assign to function call
mmmmm
what
bye
!e
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: Optional[ListNode]
:type l2: Optional[ListNode]
:rtype: Optional[ListNode]
"""
l1_string = ""
l2_string = ""
for num in l1:
l1_string += str(num)
for num in l2:
l2_string += str(num)
output = int(l1_string) - int(l2_string)
output_list = []
for i in str(output):
output_list.append(i)
return output_list
test = Solution()
print(test.addTwoNumbers([9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9]))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['9', '9', '9', '0', '0', '0', '0']
@young solstice 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
(╯°□°)╯︵ ┻━┻
why would this bot lemme speak
😾
You guys into cricket?
Gotta spam 50 msgs b4 I could speak
LMAO
Cheeky bottie 🤖
42
41
40
Thirty
Nine
Thiry
Eight
3️⃣7️⃣
Not long
36
35
ffs
Pls carry on
It says this
@somber heath suppose you’re the admin?
Just out of sheer curiosity
You have to engage in conversation
Indeed
Chat with others
Don't u know python
OK talk to others about it
Automation
Alright I’ll definitely
Ahan cool @somber heath
That’s what keeps me spam msgs
50 and I’m my voice spawns in vc
💀
Anyway what’s your expertise Mr. Opal?
Mind me asking
Ouhh fuck around & find out
Cool rool
What’s suffocating?
You atm
What’s the crux?
What does it demand
Spill
Relationships?
Monetarily
Alright I hope you get over it
🔜
We have to help u chat
You’re double score I assume?
20+20
You’re 40?
Midlife crisis?
Guess mine
Based on chat
Who is 40
Very sunny
It’s misty here
Misty diffused sunlight
It’s 60°F where I’m
🆒
15-16°C
Warm Indeed
hi my net died ._.
Do the math
F=9/5C + 32
That’s the conversion
Plug in the values
You get the numbers
High time
yep on it. thank goodness for mobile data
Yeah alternatives blessing
Yeah yeah 👍
Australia playing 2day?
Test match
Shall we stream?
Ouhhhh
And wb Spiders
How’d we access that?
Understood roger
🫡
Cool stuff
Yeah having fun big time
Gotta hit the general chat fothat
OK do it
I'll meet u there
🆒
How old are u
24
Oh
Wht about you?
Out beyond the ideas of right doing & wrong doings, there’s Python field and I’mma cya there
Couldn't u tell by my voice
Yeah you sorta sound like teenie
💀
Gen Z dude
Kiddo*
But cool
Pls don't call me kiddo😋
Alright fella cheers
I wouldn’t nxt time kiddo
eyo i also found out where the discord mic settings are (my "joined discord" date is to the letter)
hopefully my mic sounds better now
Hilarious @somber heath
Berserk enough lore
Danggg
🤣
Tell more lores
We’re having lullaby time
Chilled ran down the coccyx spine bone
😮💨
💨
Wb LSDs?
Lythergic Acid Diethylamide
Decembers known for that
if its not too much of an ask, may you send the title of the series? ive been planning to set up watchparties with family
Fringe
Yeah I’m here Opal
Sure I’mma do it asap
What’s the last series you’ve watched
On Netflix
Movie 🎦
🍿
Black Mirror?
🆒
Predicting what?
Tech dystopia?
Yeah yeah’ sound
You folks hopp on vc often?
How frequently
oh!!! thats really nice IMO
all i could comment is "bonkers"
ah, yes, the "we need to defend against the unknown enemy" and the "we need to exert more control over those we deem have less agency than us"
@civic hare 👋
Oh, thanks
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
erm, sorry if its an obvious steer away from what you were talking about
...whatre your hobbies? 😅
I am not yet ready to qualify
Less than 50 messages XD
I have no mouth but I must chat)
pigeons are silly 🙂
got any siblings? the talk of animals reminded me of my youngest brother. he loves cats. any cat. mostly house cats.
Yup, but unsanitary
Hello @somber heath
..
too bad asthma runs in the family
so no house pet for him
ah, bird flu. always has an outbreak season here in where i live
Let’s spam kitties
Weren't they the main distributor of the bird flu?
I've meant the pigeons
funny cat picture wahoo
Is your accent Aussie or British? I can't tell
birds do have migration patterns, making tropical countries have their own bird seasons
Probably India then
🎆
Wow, Ukrainian colors are really subtle behind that flower
This is what I hear from Aussies: Yos, moite, ore yo foine?
Like, so much "o"
Christ, I can't understand shit
Ima just glad you don't hear my awful slavic accent
Goddamn who barbeques shrimp
Imagine eating small shrimpies when you can eat decent sized cancer
Like it's just such a pain to clean
whoopla my net ded again
byebye for now
XD
Okay ima be going too, but thanks for your monologue anyways XD
Ciao
@somber heath This thingy is not going anytime soon. I might be on later tonight but your expositions are always hilarious. Thanks for the smiles man 
!e print(2006 - 1988)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
18
18 years in the airport.
Mehran Karimi Nasseri (Persian: مهران کریمی ناصری, pronounced [mehˈrɒn kæriˈmi nɒseˈri]; 1945 – 12 November 2022), also known as Sir, Alfred Mehran, was an Iranian refugee who lived in the departure lounge of Terminal 1 in Charles de Gaulle Airport from 26 August 1988 until July 2006, when he was hospitalized. His autobiography was published as ...
@grand crescent @pseudo thunder 👋
Hm?
actually im new in python and im creating a small mod for game world of tanks for bigger project and i need a little bit of help because my code doesn't work like i want to
yea
and my question is can you help me do you have time ?
oww not much code
thats all
this have to be wrote in python 2.7
yea i hate this too
i cannot give you my screen 😿
!d io
that is for damage panel ,that should read damage from gamei think😅
i need values from this icons
and i with my friend find i think variables for that which is that
same
i have only that
yeaa it is
is it moldy?
on cheese?
no this is not illegal
i can explain what i want to do with my friend ,the world of tanks is game which allows creating mods, in files world of tanks is special folder for mods but i understand if this violate server rules im sorry i don't know this 🙏
for explain my project i want to get values for damage panel for this icons which i send earlier save that into txt file ,read values from txt in arduino and synchronize this with bulb in real life
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Yea i was looking for tutorials but every tutorial is from russia which i dont understand 😅
ok anyway thanks for everythink and have a beautiful day!❤️
@tawdry grotto 👋
Hlo Guys!!
hi
what problem
check offtopic
.
an airline employs two counters one for first class and other for coach class passenger The service time at both counters have been found to be exponential with mean 3 min the coach class passengers arrive at rate of 18 per hr and the upper class passgenrs arrive 15per hour is there any advantage in keeping exclusivity of service in the counters? mean no of customers in the system anf mean waiting time all in steady state```
I thought a python question
Shit man!
Nope I am studying queueing theory!
Hey guys
How about Pi?
pi =
3.1415926535 8979323846 2643383279 5028841971 6939937510
5820974944 5923078164 0628620899 8628034825 3421170679
8214808651 3282306647 0938446095 5058223172 5359408128
4811174502 8410270193 8521105559 6446229489 5493038196
4428810975 6659334461 2847564823 3786783165 2712019091
4564856692 3460348610 4543266482 1339360726 0249141273
7245870066 0631558817 4881520920 9628292540 9171536436
7892590360 0113305305 4882046652 1384146951 9415116094
3305727036 5759591953 0921861173 8193261179 3105118548
0744623799 6274956735 1885752724 8912279381 8301194912
...
They should ban Immigrants, it would be great!
No no, not at all
Why not?
Just we should have built more housing before bringing in so many people. Pricing is crazy here because they didn't plan it out properly
Quick solution is limiting Immigrants
I think that is what they are doing now.
I just wish they would have planned it a bit better. I'm all about immigration, but they should have ramped it up a bit more slowly so that they could gauge how it would affect things a bit better.
Suppose there are 4 or more option and one of option is closed, the other 3 or more are open.
Same goes with these immigrants, as these immigrants are like walking gold, they bring wealth, knowledge and more. So these immigrants will immigrate to other nation, not Canada and its miss opportunity
@neon shore
bro
@neon shore
bro
yo
I can't speak but i need help
about what?
vs code
I want to run my python code without debugger
i don't know the shortcut
'i have to click the button run"
oh
When i started coding i was using pycharm
it was complicated at starting
so i shifted to vs code
alr thanks
have a good day guys
Hey AP52
debugger is the best feature though
A jerrycan or jerrican (also styled jerry can or jerri can) is a fuel container made from pressed steel (and more recently, high density polyethylene). It was designed in Germany in the 1930s for military use to hold 20 litres (4.4 imp gal; 5.3 US gal) of fuel, and saw widespread use by both Germany and the Allies during the Second World War.
Th...
I will actually be on soon. But you'll have to deal with Vanlock
And by that I mean the crappy van bluetooth
Sorry in advance
2-XL (2-XL Robot, 2XL Robot, 2-XL Toy) is an educational toy robot that was marketed from 1978–1981 by the Mego Corporation, and from 1992–1995 by Tiger Electronics. 2-XL was the first "smart-toy" in that it exhibited rudimentary intelligence, memory, gameplay, and responsiveness. 2-XL was infused with a "personality" that kept kids focused and ...
oh I saw a whole documentation on what Coco melon does to kids
sorry I am new to the server I cant talk
will it be OK if I ask an optimization question?
When did u join
few days ago
3 days ago
I have a string with a date in it in a foreign language and I am converting it in to the number of the month like this: def get_month_number(date_fallen): for i in monthes: if i in date_fallen: month_num = monthes.index(i) + 1 print(month_num)
monthes is a list with the month names in the foreign language
Ok
can anyone think of optimization for this I have a feeling looping over all monthes every time is slow
Oh
That's nice
parking garage where all the ramps collapsed without warning in the middle of the night
A three-storey building collapsed in Bihar's Sheohar district today, injuring several.
Dramatic footage of the incident caught on camera showed the building toppling on its side, shaking the ground and sending a huge cloud of dust in the air.
Sheohar is an administrative district in the state of Bihar in India. The district headquarters are lo...
it gives roman vibes
Hi
@crystal fox
Title:Ai Cat Kidnep Sad Story #viral #cuteanimal #catlover #cutecat #cat #youtubeshorts #poorcat #cuteanimal #cutepet #funny #youtubevideo #youtubeshort #viralshorts #viralshort #cats #trendingshorts #trending #trendingvideo #shots #short #shorts CAT,AI CAT,ai cat,video,yt shorts,ai cat videos,cat shorts,cat cute,cute cat,cte animals,ai images,a...
A hay barrack (haybarrack) is an open structure with a movable roof for storing loose hay on a farm. Hay barracks were widespread in northern Europe in medieval times, also found in the Alps and North America, but are rare today. Early usage of this term was noted as being peculiar to New York state. Hay barracks were used in much of Europe and ...
these look way cooler that ours
the roof goes up or down
for more or less hay
Don't try this at home! We are using remote location that is cleared of all people and did this during start of winter when everything is wet all around so no risk of anybody getting hurt or starting forest fire. Fireworks are ignited with remote ingnitor from safe location by profesionals.
In this explosive video, we take fireworks to the nex...
thanks
brb
meow meoww meowww, now i just sufffer - Billie Eilish prob
discord on mobile --------- oooooooooooooooo
hmm lots of cooking accesories @crystal fox
@gentle flint
- how many seconds are between two stable Rust releases?
- 10!
Did this inspire a puzzle or was this made by the solution?
this i-is the sowution
thats exacly 42 days
pizza in a clay oven , fired by wood very different flavor @gentle flint
ancient code , no can code in so they keep it ?
"
-- what would you do differently?
-- preferably not Fortan
"
me ?
we do code on it
this is why it causes sadness
code isn't necessarily ancient (which might be even more saddening); the language is
they are both ancient
but the language is more ancient
and the code still gets developed
I asked the duck , why use FORTRAN , for high performance computing
2023 is truly the year of big legacy-adjacent languages getting updates
Fortran, COBOL, Java LTS, C, C++
using AI to improve it - OR - is that a sad joke
wouldn't be surprised if C++29 gets in-language NPU support
