#off-topic-lounge-text
1 messages ยท Page 32 of 1
mood
same here
it was good playing with u guys learnt a bit.still need to improve my understanding of datastructures... thill then bye
mm maybe for the next round ill try to make an esoteric solution
i got to go guys, have fun ๐ค โค๏ธ
you didnt bet on anyone๐คฃ
alright, catch you later everyone
c ya
rule 4
hmmm
then exec it or eval
๐
like i think it counts characters but not the bytes
sadge
couldnt use python 2
sadge
is it just me or do i hear a lot of join and disconnect sounds lmao
is this button an ad or a callout
yikes go is not great for golf
knew
๐
!warn @lofty vortex disrespecting moderator

yall not sleeping lmao
ggs
@wide aurora can I get streaming permissions so that I can make some charts with d3.js
:incoming_envelope: :ok_hand: applied mute to @primal bison until <t:1647107166:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@swift patrolcan you share stream so we can see you programming?
i dont have the roll
oh ok
@limpid coral gimme a sec discord borked
!stream 928250196889075762
โ @limpid coral can now stream until <t:1647120136:f>.
@limpid coralfyi i can only be online for a few minutes, so when i have to leave please end your stream
xe-bit your stream didn't load for me unfortunately
Brb just trynna get 50 lines 
!stream 928250196889075762
โ @limpid coral can now stream until <t:1647120614:f>.
i agree, pretty cool
sys.stdout.write("\r{0}".format("dynamic text"))
sys.stdout.flush()
@wide aurorai'ma go~ pls take over
mod

e.e
no thx
Hi alex! ๐
afk e.e
What its?
fash builds artist tools/pipeline tools using maya(3d software) @limber wing
Game? I never seen before
Whats the Theme?
hey live coding
can someone help me with a python code
my question is in #help-ramen
but i can send it here too
Hi I am trying to create a tree in python, using a 10x10 matrix called map...I have reached this far:```python
#function to generate a tree
def generate_tree(map,start):
#create root node
root = node(start)
#pointer to root node
temp = root
#queue up root node
queue = [root]
#go through each element in queue
while queue:
for item in queue:
#UP NODE
if (item.val[0]-1 >= 0) and (map[item.val[0]-1][item.val[1]] != "X"):
temp.children.append(node(item.val[0]-1,item.val[1]))
queue.append(node(item.val[0]-1,item.val[1]))
#DOWN NODE
if item.val[0]+1 <= len(map) and (map[item.val[0]+1][item.val[1]] != "X"):
temp.children.append(node(item.val[0]+1,item.val[1]))
queue.append(node(item.val[0]+1,item.val[1]))
#LEFT NODE
if item.val[1]-1 >= 0 and (map[item.val[0]][item.val[1]-1] != "X"):
temp.children.append(node(item.val[0],item.val[1]-1))
queue.append(node(item.val[0],item.val[1]-1))
#RIGHT NODE
if item.val[1]+1 <= len(map[0]) and (map[item.val[0]][item.val[1]+1] != "X"):
temp.children.append(node(item.val[0],item.val[1]+1))
queue.append(node(item.val[0],item.val[1]+1))
#once node created and added to root, remove node
queue.remove(item.val)```the above code builds the tree upto the second layer but how do i add the following layers ie. the children of the children of the root? please ping me if you can help
whats the problem
@atomic phoenix what is reverse
@atomic phoenix how did you do it..
I did an oopsie
forgot to put... in that speed I did
20/60 * 30 ๐ ๐
instead of variables
xdddd
haha
@gloomy lily Be careful on what is open please LOL
๐ฆ was a random reddit post
first time that happened
my soc media is generally pretty clean lmao
@echo aurora The live coding channel is mostly for watching coding streams. Please keep this in mind and be respectful, be careful not to talk in a way that is disruptive to the streams.
Iโm not doing anything, Iโm just asking questions and people put the blame on me
@echo aurora there are other implementations of python...
some people did python in java
@echo aurora it doesn't work like that...
Aight thanks
Hack in hackathon refers to "hacking something quick to do something.." @echo aurora
Aight
Hellraiser C-1 FR Hellraiser
@gloomy lily ๐คฃ
too late ๐
@gloomy lily youre a big dog
drinking wine?
@gloomy lily cant i just give you my house in derry?
@vernal snow is it a postfix language
@gloomy lily Is visa required to work remotely for an another country ?
is <- assignment operator?
yup
what is wrong with this code
functions and variables are the same in my language
Cool... are variables functions like haskell?
@fossil umbra rabbit is the most relaxed person of all time
i hear him praying to waheguru
yeah, same idea
okay
indentation error sorry...
can you send whole code...
okay then
that code was having extra space
Is it resolved or not?
designed for people with thiccccccccc fingers..
it is
i know your card last digits ๐
heyy
wsup ๐
the sky
was a bit busy ๐
nice? lol?
atleast you were consistently busy
why lol?
i was free all day then i got projects and a project with furyo here and a client and old friends decided to ressurect from dead and made me play from them
demm ๐
ye got a lil busy for a while ๐ and also got helper now
anyways 3 am so i'mma go sleep now
gnight
oh nice, congrats ๐
@gloomy lily Are they even english? it sounds like gibberish...
imma play non native english speaker victim card
How are you still going
come join us
I wish I could
:(
Looking for someone to help me out with a project if possible.
I am in the live coding voice chat.
I'm trying to compare a list of indexes (x) with another entry on one list, and the moment it finds the entry, to print out the next column (y), and continue for the next entry in (X) list.
a list comprehension can do the job
yep
hi
https://stackoverflow.com/questions/5953373/how-to-split-image-into-multiple-pieces-in-python i found this link which has multiple ways of splitting image. not sure which would work for me - can you suggest one code to try. i want to split image into 100 vertical sections and save each section
how do I copy every word that is the same like if I wanna change all the solo's to duo's really quick?
How to start live-coding in this server?
@wind ingot I just asked the same thing. Only mods can start live coding. Once they've started live coding, they may grant you the ability to live code, if they wish.
But a mod always has to be present on a live code session, if I understood correctly.
how can i get permission to talk
:incoming_envelope: :ok_hand: applied mute to @primal bison until <t:1647387561:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
#voice-verification Have a read of this
sorry no voice vericatin
yet
@atomic phoenix
1 more day
oh really, whats the best server for pyhton help
okay great
are you aware how to make mask for image
ah yes. let me share with you my project and the issue im having. and if you have nay ideas now or in the future would be great
i have an image and i want python to work out the average pixel intensity below the blue line and average pixel intensity above blue line from image. I know code to work out average pixel intensity of full image. But dont know how to do pixel intensity below blue line and above. IF you have any ideas please help. Or another way is to get python to split image into 2 - one with everything below blue line and other with everything above line then i can do my code. But i dont know how to do that
i see thanks!
yes
oh wow that was helpful
I dont have voice yet but to do this you will want to create a numpy array from the image
oh okay will try to do that too
im not great at coding so will try my best
do you think its hard code
I wouldnt call it easy but def not impossible
yes i can average pixels
anybody who has done image recognition for ML will be able to help though
Numpy and Pillow
i understand how to average pixels of image but creating this statemtent to recognise cyan may be hard will try
image_1= Image.open('Sample.png')
ah ok ill keep an eye out
numpydata = asarray(img)
yes pixel blue
im open to different ideas
will try everything
anything that works will be great aha
oh like I have done convolutional neural nets so I can help
ah thats really cool
well this part you are doing is the most painful
lol
so lets start
image_1= Image.open('Sample.png')
let me show you the code i have to find average pixel intensity then maybe i can adapt that
alright
agreed
sure
from skimage import io, img_as_float
import numpy as np
image = io.imread(r'C:\Users\Guest_\Documents\noconttest.png')
image = img_as_float(image)
print(np.mean(image))
this code works out average intensity of pixels
mike should we all join new server. you down?
uhhhhh sure
we can talk about it in a min
im not sure what float image does
cool
i think i read it just gives value between 0 and 1 instead of pixel value
but not sure
I have an assignment from my masters degree class that will help explain
thanks
maroloccio how should we join new server
okay mike if you click on maroloccio image and press add friend
then we can try new server to speak for a bit
sorry marc
how do i find
the server
i joined russ
oh sorry
but dont know where to click
I just accept ed invite
sure
can someone help in #help-potato

yeah. What do you want?
:incoming_envelope: :ok_hand: applied mute to @primal bison until <t:1647446040:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
Im new to python
[100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 99.0, 98.0, 97.0, 97.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 99.0, 99.0, 99.0, 94.0, 91.0, 94.0, 99.0, 99.0, 83.0, 84.0, 89.0, 92.0, 90.0, 87.0, 87.0, 85.0, 86.0, 91.0, 97.0, 100.0, 99.0, 90.0, 89.0, 95.0, 100.0, 100.0, 99.0, 97.0, 97.0, 100.0, 100.0, 97.0, 96.0, 97.0, 100.0, 95.0, 81.0, 71.0, 72.0, 87.0, 97.0, 99.0, 98.0, 99.0, 100.0, 100.0, 100.0, 100.0, 95.0, 88.0, 91.0, 97.0, 99.0, 98.0, 89.0, 82.0, 82.0, 87.0, 90.0, 91.0, 93.0, 97.0, 93.0, 84.0, 79.0, 80.0, 85.0, 89.0, 93.0, 93.0, 85.0, 77.0, 78.0, 82.0, 85.0, 78.0, 72.0, 76.0, 85.0, 96.0, 95.0, 77.0, 67.0, 63.0, 64.0, 62.0, 66.0, 72.0, 73.0, 61.0, 50.0, 35.0, 17.0, 2.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 4.0, 11.0, 19.0, 31.0, 45.0, 54.0, 80.0, 95.0, 100.0, 100.0, 99.0, 84.0]
from PIL import Image
picture = Image.open('noise.png')
width, height = picture.size
x = 10
list = []
for y in range(height):
value = picture.getpixel((x, y))
black_level = round(1 - value / 255, 2)
list.append(black_level*100)
print(list)
are you new to python coding or new to server
I'm new to python too, learning a lot!
im new to python in general but for servers in im in a lot
git remote add upstream https://github.com/python-discord/bot.git
@candid osprey are you primarily a pycharm user?
once you do this a couple times it's not too bad
trial & error on a personal junk repo
you can make your own repo i mean
my first time seeing a rebase done in pycharm ui
git is fun~
guess who wrote that system?
lolol
@silver solar what are you doing?
i dont know
e.e
making a python compiler
how are you
:0 so pro
good, hbu?
nah, i havent written a byte
oh?
i am fine
๐
which framework are you gonna use in pyweek?
which one do you know?
but 2d for others
i dont know any, i copy code from the internet ๐
really?
yep
you still have time to learn
too lazy to :/
eivl twin
lol
@silver solar do you know pygame?
i can learn anything
but im doing solo this one
and exams go brrr
so maybe i can team with you next time
noo i mean i am having a problem
can you help me out?@silver solar
and my exams started yesterday
will try
edit pings doesn't ping
I didn't realize you pinged me ๐
oh? sorry i am replying late i was writing exam
nah I was replying late
gl
I wanna learn python from basics please suggest till pro level
!RESOURCES
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
sorry for caps
bro are you moderator or some you're eveywhere
is it not ok to be everywhere
did I do something wrong
:/
sorry for bad tone bro, didn't mean it at all, how you got it
wym
I'm apologizing for being rude unconsciously
ok
so are you a python - developer
you still mad at me bro
thanx dude for being kind
Maybe thereโs better ways to make the 50th line donโt reel in someone lol
Yeah you're absolutely right, but I don't see a better way yet
Go talk to the other non voices lol unite
Ok thanks ๐
morty, you the police?
you the police bro?
I've already apologized what else do you want?
He's chosen f-king crows over me, I don't where he is
Is there a reason you guys are being.... weird at each other? Not really even sure how to describe this
NJ is high because of EWR
. . .
just watched that episode today
Hahaha
hi
Wrong channel my bad ^
!e
x = {121, 123, 1412}
y = {213, 121, 1241}
z = x.intersection(y)
print(z)
@agile portal :white_check_mark: Your eval job has completed with return code 0.
{121}
@agile portal :white_check_mark: Your eval job has completed with return code 0.
{1, 2, 3, 4, 12, 21}
!e
foo = [1, 12, 12, 21, 1, 1, 2, 1, 3, 3,4, 1, 2]
bar = [1, 2]
new_arr = []
for n in foo:
if n not in bar:
new_arr.append(n)
print(new_arr)
@agile portal :white_check_mark: Your eval job has completed with return code 0.
[12, 12, 21, 3, 3, 4]
!e
print("Hello World!")
hi
!e
hi
!e โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โฃโฃโฃโฃโฃโฃโฃโฃโฃโกโ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โข โฃคโกโ โขปโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃงโฃคโ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โขธโฃฟโฃงโฃคโฃผโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โขธโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โขธโฃฟโฃฟโฃฟโฃฟโฃฟโกโ โ โ โ โ โ โ โ โ โ
โ โกโ โ โ โ โ โ โ โ โ โ โข โฃผโฃฟโฃฟโฃฟโฃฟโ โ โ โ โ โ โ โ โ โ โ โ
โ โฃโ โ โ โ โ โ โ โ โฃฐโฃถโฃพโฃฟโฃฟโฃฟโฃฟโฃฟโกโ โ โ โ โ โ โ โ โ โ โ
โ โฃฟโฃฟโฃคโ โ โ โข โฃผโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโ โ โ ฟโ โ โ โ โ โ โ โ โ
โ โฃฟโฃฟโฃฟโฃถโฃถโฃถโฃพโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ ฟโขฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโฃฟโกโ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ ฟโขฟโฃฟโฃฟโกฟโ ฟโขฟโฃฟโกโ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โขธโฃฟโกโ โ โ โขนโกโ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โขธโ โ โ โ โ โขธโกโ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
hey
how are u ?
:incoming_envelope: :ok_hand: applied mute to @primal bison until <t:1647674832:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
bruh lol
Hi
hi
!e
import time
val1 = 5
val2 = val1
while not val1 == 0:
print(str(val1))
val1 -= 1
time.sleep(1)
print("The Timer Lasted For " + str(val2) + " Seconds!")
now what
hi wassup
hy
does anybody want code with me on replit?
sure
!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("hello")
!e import time
val1 = 5
val2 = val1
while not val1 == 0:
print(str(val1))
val1 -= 1
time.sleep(1)
print("The Timer Lasted For " + str(val2) + " Seconds!")
!e import time
val1 =100
val2 = val1
while not val1 == 0:
print(str(val1))
val1 -= 1
time.sleep(2)
print("The Timer Lasted For " + str(val2) + " Seconds!")
def two_sum(nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for i, m in enumerate(nums): # i -> 0, m -> 3
for j, n in enumerate(nums): # j -> 0, n -> 3
if m + n == target and i != j: # 3 + 3 == 6
return [i, j] # (0, 0)
password
def encryption(input_string):
all_punctuation = """!"#$%&'()*+,-./:;<=>?[\]^_`{|}~"""
first_char_pos = len(input_string) % len(all_punctuation)
first_char = all_punctuation[first_char_pos]
second_char_pos = len(input_string) % 5
second_char = all_punctuation[second_char_pos]
third_char_pos = len(input_string) % 10
third_char = all_punctuation[third_char_pos]
encrypted = ""
result = "^^^"+ encrypted +"$$$"
return result
print(encryption(input(">>")))
!e
def encryption(input_string):
all_punctuation = """!"#$%&'()*+,-./:;<=>?[\]^_`{|}~"""
first_char_pos = len(input_string) % len(all_punctuation)
first_char = all_punctuation[first_char_pos]
second_char_pos = len(input_string) % 5
second_char = all_punctuation[second_char_pos]
third_char_pos = len(input_string) % 10
third_char = all_punctuation[third_char_pos]
encrypted = ""
result = "^^^"+ encrypted +"$$$"
return result
print(encryption("password"))
print(encryption("password") == "^^^)p)$$a$$)))s))))s)$$w$$)))o))))r)$$d$$$$$")
@timber heart :white_check_mark: Your eval job has completed with return code 0.
^^^$$$
!e
def encryption(input_string):
all_punctuation = """!"#$%&'()*+,-./:;<=>?[\]^_`{|}~"""
first_char_pos = len(input_string) % len(all_punctuation)
first_char = all_punctuation[first_char_pos]
second_char_pos = len(input_string) % 5
second_char = all_punctuation[second_char_pos]
third_char_pos = len(input_string) % 10
third_char = all_punctuation[third_char_pos]
encrypted = ""
result = "^^^"+ encrypted +"$$$"
return result
print(encryption("password"))
print(encryption("password") == "^^^)p)$$a$$)))s))))s)$$w$$)))o))))r)$$d$$$$$")
@timber heart :white_check_mark: Your eval job has completed with return code 0.
001 | ^^^$$$
002 | False
!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!*
1p12a23s31s12w23o31r12d2
yse?
oh
ello
so im trying to get into coding any vids i should specifically watch or stuff like tht
yay
ะ ะทะฐัะตะผ?
only english please. see #rules
Sorry, I wanted to answer him
In cryptography, the Elliptic Curve Digital Signature Algorithm (ECDSA) offers a variant of the Digital Signature Algorithm (DSA) which uses elliptic curve cryptography.
Rest API With Python Flask
Is it okay to use SQLite3 for deployment purpose? ๐
https://animevyuh.org/rest-api-with-flask/
Just wanted to know which database should be used
!eval
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
ahahahahah! :p
!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!*
@primal bison :white_check_mark: Your eval job has completed with return code 0.
<module 'sys' (built-in)>
hi yall im ben barson
nun i dont know what to code
i wanna make a website for my friend
yes
im a python geek
ok thanks are you a pro coder ?
ok thanks so i should create a website with flask
this will be my first time also i want to launch this website in a couple of months
which one
oh yea i looked it up
i dont click links
mods ????
how tf are u letting people send hacked links modsss ???
bro he hacked me i think
my computer is bugging
oh ok sorry man i thought it was a hack link it looks fishy bro
i only know sites that are popular
!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!*
@smoky bramble :white_check_mark: Your eval job has completed with return code 0.
Hello, world!
!e def median(pool):
'''Statistical median to demonstrate doctest.
median([2, 9, 9, 7, 9, 2, 4, 5, 8])
6 #change to 7 in order to pass the test
'''
copy = sorted(pool)
size = len(copy)
if size % 2 == 1:
return copy[int((size - 1) / 2)]
else:
return (copy[int(size/2 - 1)] + copy[int(size/2)]) / 2
if name == 'main':
import doctest
doctest.testmod()
@smoky bramble :x: Your eval job has completed with return code 1.
001 | File "<string>", line 6
002 | > copy = sorted(pool)
003 | ^
004 | SyntaxError: invalid syntax
F
Hi there! Any expert programmer wanna become friends? I am an expert in Python and I am looking for someone with whom I can discuss some programming concepts for mutual benefit. Anyone up for it? Dm me.
why is it still taking so long to get voice verified
add me, im no expert tho
prevent troll :P
i dont see the point of getting it, still
though i have it but i never turn on my mic
its 3 days since ive been on ๐ฆ
!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!*
!eval [code]
@cobalt otter :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'code' is not defined
So can I write code here? And it will produce result?
Let's try
!eval print ("Hello world")
@native glacier :white_check_mark: Your eval job has completed with return code 0.
Hello world
Ah great. What a creative bot.
@cloud cloak :white_check_mark: Your eval job has completed with return code 0.
Hello, Tahir
Feel free to use #bot-commands to test ๐
!e print('GG')
@jolly jewel :white_check_mark: Your eval job has completed with return code 0.
GG
!e
print('test')
!e
print('test')```
40 degree here
heheh
we are fuked
the weather is hotta here
Uh yea its a commandline output using wttr.in api
@fresh sail yu new to python?
yeh typo
uh yeah
Uh nope
Its not too late or old to learn something.
sorry pardon?
eh? idc
!e print('i suck')
@muted stirrup :white_check_mark: Your eval job has completed with return code 0.
i suck
He didn't spammed?
Do you use a mechanicalkeyboard?
https://github.com/vim-airline/vim-airline/issues/2520#issue-1179389630 guys can you help me with this?
Membrane keyboard : you gotta hammer each keys for registering it.
Mechanical keyboard: just a slight press registers it.
@weary pagoda
How do I get voice access?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
sorryy
@nova tide over here!

while loop keeps looping till the condition is true
it stops when its not fullfilled
yo guys
yo
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
That long
okieeee
you code in which editor ???
yo guys
should i disable path length limit
?????
anyone
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.
i used pychram
hi
@sleek kernel @vagrant nova type here to interact:
I think I'm gonna leave, c ya
I use continue to avoid nested if statements @fresh sail
macOS file system is not case sensitive by default @gloomy lily
just came to whatching ... ๐
@gloomy lily idk how i remember vs code keybinds o-o i only use vim binds
@fresh sail I think you need two while True loops... one for name and one for password
And, if it does't break, it will continue @fresh sail
There is no such things as False and True in C by default, Zero is False @agile portal
yeah ik but i remember someone showing me 0 not being false somewhere
1 is True
:/ idk where that was... might'gve been cpp
no idea
unless i was scammed by my friend which is very possible
then i was fooled by a friend ig :x
even in python
ik but just someone managed to fool me by a photoshopped screenshot
is what happend :x
haha
๐คฎ JS
xD
@agile portal It looks like you use zsh?
oh... It looks like default ohmyzsh theme...
it is ohmyposh so you're not wrong
They are more efficient too @fresh sail
String in python are immutable... doing "String" + "String" is expensive
26 + 6 = 1
I use python
for a single addition inline like that it actually doesn't matter because the python compiler does inline things for optimization a little bit
atleast i think it does lets check
btw, @fresh sail I'm Charan...
Horay!
!e
import dis
def foo():
x = "something"
return "hello" + x
print(dis.dis(foo))
@agile portal :white_check_mark: Your eval job has completed with return code 0.
001 | 4 0 LOAD_CONST 1 ('something')
002 | 2 STORE_FAST 0 (x)
003 |
004 | 5 4 LOAD_CONST 2 ('hello')
005 | 6 LOAD_FAST 0 (x)
006 | 8 BINARY_ADD
007 | 10 RETURN_VALUE
008 | None
Do you want me to refer to you as Charan in this server?
๐ฎ nvm it doesn't apparently
it does inline constants for addition and such so i thought it would for strings too
No... Just letting you know...
hi
@gloomy lily learn C#
Sure
What is going on here guys
nice ๐
You can change the axioms, but you will get some contradictions @fresh sail
which is a nightmare for mathematicians
we've just gone from learning python to licking crickets
welcome to the group ๐
What type of nightmare
I would like to solve this problem
The nightmare, that's gonna keep you up at nights
If you have a contradiction in axioms, you can prove anything
Everything false can't be proved to be True
Oh perfect
Rishaw I need you to extend docker to allow for GPU resource sharing
So that I can run multiple GPU accelerated docker containers on the same host machine
Thanks @ me when ur PR gets merged
โค๏ธ
Are you a game developer
No I have an open source cloud gaming infra project
I'm currently blocked by the state of containerisation software
Or if you could come up with an extension for xen that allows vGPU allocation that would be great
It seems interesting. Does your project involve DevOps kind of things?
@gloomy lily
look for yourself
shorthand on powershell gives boolean
Metrodox Studio Production / Cubase 5
Vocals dy MagnaCarta80
http://www.youtube.com/user/MagnaCarta80
@fallen gulch You alright over there?
I think I need more information about this project. I don't know much about DevOps. I started learning DevOps yesterday.
I assume you are a senior developer. I want to seek your guidance and guidance so that I can learn more. If you are ready, I will be very grateful to you.
Very well young grasshopper, we will begin with waxing my car.
1k is huge money no matter how you look at it lel
Mac books are great at digital designing from what I know, and so that could mean its great with some programming too
Very much dislike terminal commands however
and how the OS env instance works
Id rather just use linux lol
Apple to Android to Apple isn't perfect, but it works in my opinion
brb
@fresh sail what boring stuff are you automating
currently just doing rock paper scissor, then will move on to other stuff.
following the book.
@gloomy lily https://youtu.be/RqOSPm2UdRs
Provided to YouTube by The Orchard Enterprises
Kiss Me, Son of God ยท They Might Be Giants
Lincoln
โ 1988 Idlewild Recordings
Released on: 2018-10-26
Producer: Bill Krauss
Auto-generated by YouTube.
random.choice is lot better here, you can avoid alot of code here with that
I don't understand why, you are using while loops, when you are gonna break at every condition? @fresh sail
Wife is home. BRB
^^ i'mma go now.. i added a few comments that i think would help
What would you call a SharePoint site for storage of software and hardware and machine manuals shared between IT and maintenance?
I'd take anything
I have "Paper Town" stuck in my head for some reason
Fair fair
Sharepoint site
Toolbox
Toolbelt
The Warehouse
The IT Shed
Back
done!
๐
!d operator
Source code: Lib/operator.py
The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y. Many function names are those used for special methods, without the double underscores. For backward compatibility, many of these have a variant with the double underscores kept. The variants without the double underscores are preferred for clarity.
The functions fall into categories that perform object comparisons, logical operations, mathematical operations and sequence operations.
The object comparison functions are useful for all objects, and are named after the rich comparison operators they support:
RIP MovieFone February 23, 2014
Death to Skype! Long live Teams!
Boo operator yay lambda
Hi Mina
!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.
from dataclasses import dataclass
from typing import Protocol, Optional
class Device(Protocol):
"""Protocol for devices"""
def connect(self):
"""connect to device"""
def disconnect(self):
"""disconnect from device"""
def send(self, data: bytes):
"""send data to device"""
def receive(self) -> Optional[bytes]:
"""receive data from device"""
@gloomy lily
@fresh sail can you try posting the zoom article again?
import numpy as np
color = [red, orange, yellow, green, blue, indigo, violet]
area = [x,y]
humanspeed = 1
t=time.time()
angle = 4
dX = humanspeed*t*cos(angle)
dY = humanspeed*t*sin(angle)
Xlocation = dX
Ylocation = dY
rangefinder = distance_to_object
if rangefinder =< 1:
hi
Ping me when you go through the book again ?

sure, will probably be reading the book tomorrow around 9pm est
I forgot the link or what we were talking about
ah, I'll be offline then
@fallen gulch Pinging.
im not allowed to speak for uh
not having enough messages or something
yep haha
wouldnt say so
i use python for a project and sometimes need help on specififc issues
wouldnt exactly call it learning
though i dont think anybody stops learning a programming language per se
its just that thats not my aim as of right now
repeat?
Phatic expression
nope
a phatic expression is communication which serves to establish or maintain social relationships rather than to impart information.
well now i knoiw
thats very kind of you
are you learning python?
any experience with other languages? or are you new to programming in general
its fine
Oh yeah
hey
@autumn knot over here!
tortuous means complicated
full of twists and turns
How can I crash python?
Uh, If you want to crash your system just use subprocess and open tonne of files.
@primal bison You aren't in vc?
What's (vc)?
voice chat
w lowercase
Yes
@fresh sail
That's C-style, PEP won't let you rest in peace
lmao
oh, you're saying hello!
I wonder how ppl can only spectate stream but I can't see them in vc?
Anyone here interested in Rust?
A nice series of posts building an OS in rust
This blog series creates a small operating system in the Rust programming language. Each post is a small tutorial and includes all needed code.
Really amazing
Thanks
๐
Idk, I saw others doing it and jumped on the bandwagon ๐
Mhm
Sorry, not watching the stream, one sec
ฮฮปฮตฮบฮถฯ
The only Greek letters I know are the ones from maths ๐
Erm, @devout gyro, what did you want to stream?
โ @devout gyro can now stream until <t:1648219530:f>.
thanks :DDD
Definitely will reduce the number of buffer-overflow vulnerabilities!
Documentation for the Liquid template language, created by Shopify.
Ohh Furyo, do you know about Pythontutor?
Ah right
It's great for getting a good understanding of the semantics of Python.
So like, try running the scoping example.
It will show you the stack frames (scopes).
Erm, I mean whichever.
Ah yeah, they're doing research on common learner errors.
That's why they ask for that feedback.
@fresh sail I think it's just debugger, but wity visuals...
Erm, it's hard to run/debug substantial programs in it. But when I'm unsure about some aspect of the semantics of Python, it's useful to help me understand.
So I might run a toy version of my program in it.
Yep
Mhm. Every function in python has an invisible line at the end: ```py
return None
@fresh sail Did you complete rock-paper-siccor?
Hooray ๐
Paste it here... @fresh sail
Ah... I never thought of it like that...
It's interesting, because an experienced Python user doesn't see that as surprising, but it potentially is.
Actually, that's an interesting point Marshall. Pythontutor by default hides something from you.
I always thought about it like... returns by default.... Does it literally write return None, at compile time
On the code editor page, try changing the setting inline primitives, don't nest objects to render all objects on the heap @fresh sail
I think that's what marshall is trying to explain?
!stream 806905687593582663
โ @primal bison can now stream until <t:1648221132:f>.
Yep, "Edit this code"
Thanks
Mhm
@fresh sail try type of type
Can u c my screen?
I can
Yep, although do you know you're deafened?
My fan is noisy
You can keep streaming, just not start a new stream.
nice
r u guys following?
wtf was that?
Oh right, so are you writing a Python tokeniser marshall?
that noise?
my fan
Programming langauge
laptop fan
Ah cool
I see
I showed u was the (Lexer) aka (Tokenizer)
If anyone uses nvim, would you mind helping me this? https://github.com/LeonardSSH/coc-discord-rpc/issues/59
Marshall right now 
pardon?
TOSS A COIN TO THIS WITCHER
Maybe run :checkhealth
@fresh sail
I'm also a beginer tbh
Go ahead Helium.
Associated text channel: #code-help-voice-text
yeah
Sage advice!
He's on it
Yeah..
I saw
btw, @fresh sail I have looked at that code of rock paper scisor.... You can there is a potential bug and also it could be cleaner
I see, Hurray! always comes.
Sure, pls!
Heading over to the other channel for a bit ๐
@gritty knoll
To do: write pythontutor as a vsc extension.
VSC already has a nice Python debugger
But yeah, it doesnt have all pythontutor's quirks
Talking with someone else
what is the name of the python debugger that is like pythontutor?
It's VSCode Python Extensions Package, does really good job
but not all things pythontutor
Don't use Global, ever!!!!! @fresh sail
Me neither @fresh sail
Yep... if you really want global,, write them in the global scope
With no indentation
very interesting
Yo ๐
hello
yeah
Then single for word
@fresh sail
Double quotation for f string and single for the word @fresh sail
Didnt know you could do that
Btw, would you like to hear my critiques of your rock-paper-siccor code @fresh sail
@primal bison :white_check_mark: Your eval job has completed with return code 0.
Hello "
@sage comet
!e print(""Hello ")
@sage comet :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(""Hello ")
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
!e print("print("Hello world")")
@primal bison :white_check_mark: Your eval job has completed with return code 0.
print("Hello world")
You can't " inside " strings because Python gets confused
if I say
print("hello "")
"hello " is a string
") is another
and so ") is never closed
AND SO ERRRORRRR!!!
@sage comet
@fresh sail he is saying ctrl c for termnial
@primal bisonYour mic giving off background noise btw
Yeah I understand now
" here you escape " so that python knows you want an actual " inside your string "
you tell Python I dont want to end current string I'm typing
is my noise gone ?
Works the same way for triple quotations I'm guessing?
yh
nice


judge free zone


38,754
286,028
