#off-topic-lounge-text
1 messages ยท Page 2 of 1
v = "apple"```
Or above, func() becomes 5, because I returned 5.
That's the "outbox". Returning.
hello Opal
@narrow snow Yeah it's still bleeding through a bit. Might be better to mute in between or use push to talk
Is it still?
i start study python but i cant understand how keywords like True , how it work
!server
.PHONY: proto
proto: ## Compile protobuffers and grpc stubs
@echo "Compiling protobuf for sigrun..."
@protoc -I ../proto --cpp_out=./src/pb --grpc_out=./src/pb --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../proto/sigrun.proto
@echo "Changing generated file extensions..."
@for file in ./src/pb/*.cc ./src/pb/*.h; do\
sed -r -e 's/(#include "[a-zA-Z.]*\.pb\.h)"/\1pp"/g' -i $$file;\
if [ "$${filename##*.}" = ".cc" ]; then\
mv "$$file" "$${file%.??}.cpp";\
elif [ "$${filename##*.}" = ".h" ]; then\
mv "$$file" "$${file%.??}.hpp";\
fi
done
@echo "${GREEN}Done!${RESET}"
RED FANG - "Prehistoric Dog" taken from the album 'Red Fang '
SUBSCRIBE: http://bit.ly/RelapseYouTube
Order at Relapse: http://bit.ly/RedFangStore
Order on iTunes: http://bit.ly/RedFangiTunes
Order on Bandcamp: http://www.RedFang.bandcamp.com
Available now on CD/LP/Digital via Relapse Records
Directed by Whitey McConnaughy
Official Link...
this discord could totally be streamed as like a podcast
Right?
"'f {},{}.)"
i = 0
while i < 10:
i += 1
I can't imagine how you'd do the the for implementing a while in Python
Hi! I think of it as cost of not-dying.
I know nobody probably wants to hear this shit but i would really appreciate help from somebody who is expereinced with rpy2, please and thank you
Back and having lunch so my ears are in.
"Hello, #{blah}"
"Hello, \"#{blah}\""
"Hello ${loser}"```
<--?
?-->
<div>
<shooter>
<element/>
</shooter>
<div>
(div
(shooter
(element)))```
Comic parameter should either be an integer or 'latest'.
(div
(shooter
(element
)
)
)
https://stackoverflow.com/questions/407184/how-to-check-the-extension-of-a-filename-in-a-bash-script
if [ $filename = *.cc ]; then\
!stream 705441298710265928
โ @eager crest can now stream until <t:1660844425:f>.
for file in ./src/pb/*.cc ./src/pb/*.h; do\
.PHONY: proto
proto: ## Compile protobuffers and grpc stubs
@echo "Compiling protobuf for sigrun..."
@protoc -I ../proto --cpp_out=./src/pb --grpc_out=./src/pb --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../proto/sigrun.proto
@echo "Changing generated file extensions..."
@for file in ./src/pb/*.cc; do\
sed -r -e 's/(#include "[a-zA-Z.]*\.pb\.h)"/\1pp"/g' -i $$file;\
mv "$$file" "$${file%.??}.cpp";\
done
@for file in ./src/pb/*.h; do\
sed -r -e 's/(#include "[a-zA-Z]*\.pb\.h)"/\1pp"/g' -i $$file;\
mv "$$file" "$${file%.?}.hpp";\
done
@echo "${GREEN}Done!${RESET}"
Hello @vernal snow what are you working on?
we are just working on this problem https://www.codewars.com/kata/572f32ed3bd44719f8000a54
@calm bay
can i type here?
i had some doubts regarding my ML code
will you be able to help me if you have time?
ookay
i am stuck at a very basic stuff
just read my query
if you can't tell the solution that's okay
okay
i did use the help section
but no one was active
i think the old one is dormant now
it was #help-cake
but i am not able to do it in my code
i don't know why
but there is an error
sorry i disturbed you
i will try that solution again
and will get back to you if it still does not work.
yes
thank you
i could have shared my screen but i don't have that option
thanks for the help
How can ฤฑ speak mate ?
yell really loud
AWREAD MATE
Sorry repeat?
Now, I'm cooking with a good looking.
@primal bison If you're wondering why you can't talk, check out the #voice-verification channel
That'll tell you what you need to know about our voice gate
@primal bison if you don't mind which uni do you go to
i am interested in biotech as well, am thinking between cs or biotech
Its a local university thing in Kashmir
@glass obsidian Oh it'll be easier if you message me in here
And I'm just teaching myself C#
WTF are these "levels"?
Ok
pink chai
I LIKE BUBBLE TEA
semm
https://dotnet.microsoft.com/en-us/apps/machinelearning-ai/ml-dotnet Didn't know this was a thing
Neat
hey
Hi
what program are you using to code?
My text editor for this is Pycharm, but I also use Vscode.
@proper cobalt sir i am unable to speak
done
# Technatrons Story Book
import random
when = ['A long time ago', 'Far into space', 'In the last hour', 'In a timeless time', 'Yesterday']
who = ['A monster', 'A clone', 'A disc master', 'A Ninja', 'A decker']
name = ['Balzer', 'Gongerkong', 'Bob', 'Bleck', 'Thrax']
residence = ['X.69D9', 'Mars', 'Space Station Pelkerton 3', 'Places Un-known']
went = ['Flying','To Battle','Club','Home','Hunting']
happened = ['Got the kill','Won the match','Found a ugly mate','Grew a new head','Was put into the matrix']
print(random.choice(when) + ', ' + random.choice(who) + ' that lived on ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))
Is this a good way to make a random story thing, or should you grab text files and stuff?
I'm a cyber barbarian of the world of Nartalik, and I would like to find a monster to befriend. Could you help me with that?"
The voice laughed. "I'm a human, you idiot. I've been watching you since you came in. Didn't you notice that? With my sword, I do not see your light human! Your kind is a mystery to me. I only know that we are strong, and I am hungry. My name is Gongerblex, no name wonder voiced human. I want to find a monster as a friend, and you do not sound like a friend to me. You sound like a fool.
"But I will give you a gift, barbarian. You have come to the right place. You've come to the place where foolishness and stupidity can be rewarded." I don't trust your gift voice, I've made my wish known. And you keep walking around it. I am not inclined to stand around for long periods of time. I do not wish to be your friend. But I am also not inclined to try and kill you.
"You can't leave, idiot." You are no friend of mine and I see you have chosen battle and that will be a good death for you mortal. I will fight you now.
I will fight you now. "Words mean nothing, feel my laser blade burn in you like the STD you are." The Barbarian Gongerblex girts his maw as tight as his grip and lets out a echoing GHAAAAA GAH GH!
GAH! GAH! GAH!
The human screams as I carve him up into bite size pieces. I spit out the last piece. "You are a fool, human."
๐๏ธโโ๏ธ Get in Shape! ๐๏ธโโ๏ธ
Height=float(input("Enter your height in centimeters: "))
Weight=float(input("Enter your Weight in Kg: "))
Height = Height/100
BMI=Weight/(Height*Height)
print("your Body Mass Index is: ",BMI)
if(BMI>0):
if(BMI<=16):
print("you are severely Twig like")
elif(BMI<=18.5):
print("you are underweight and have no date")
elif(BMI<=25):
print("you are Healthy!")
elif(BMI<=30):
print("you are fat")
else: print("you are super fat ass!")
else:("enter valid details")
import random
when = ['A long time ago', 'Today', 'In the last hour', 'In my dreams', 'Yesterday']
who = ['the myth', 'God', 'Daddy', 'Murderer', 'The One']
name = ['Dexter', 'D', 'Dexter my man', 'Dex', 'DEXTER!']
residence = ['the mall', 'In my room', 'His house', 'Home']
went = ['Arcade','Ally','Club','Home','to bed']
happened = ['Made Love','Killed together','Had his baby','I was his blood','Dexter']
print(random.choice(when) + ', ' + (random.choice(name)) + ', ' + random.choice(who) + ' that lived on ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))
he groovinโ
Credit to Pope7, the guy who made this. Go sub to him. Heโs epic.
Discord Sun Theme ?
Based on a true story
Animated by me
Music used :
LiSA - Gurenge
FesliyanStudios - Suspense Sound Effect A
Gyรถrgy Ligeti - Requiem : II Kyrie
No eyes were blinded during the making of this animation
Twitter : https://twitter.com/kazumanyaa
do you wear sunglasses ? if not, Tell me the way master.
drugs
:kekw:
I already do that....Maybe not in the proper way
the proper way is quitting altogether
This equation is not true with decimal numbers. But what if we use other number bases? This viral math meme turns into a nice little puzzle, which, as they say, only geniuses can solve!
Sources
https://www.quora.com/Is-9-+-10-21
https://knowyourmeme.com/memes/9-10-21
https://en.wikipedia.org/wiki/Numeral_system
https://en.wikipedia.org/wiki/Li...
i smoke only while working ahahaha
Programming stuff ecc ecc
cant complain, it usually boosts my attention span too
So yeah
productivity even
algorithms also
defo
what's mean ?
short for definetly
anyone else want to code a quantum time traveling bean with me ?
hello
i see you every server
you in alot of servers
help me someone ๐ฆ
๐๏ธ ๐ ๏ธ ** Update for the DEX ** ๐ ๏ธ ๐๏ธ
import random
when = ['A long time ago', 'Today', 'In the last hour', 'In my dreams', 'Yesterday']
who = ['the myth', 'God', 'Daddy', 'Murderer', 'The One']
name = ['Dexter', 'D', 'Dexter my man', 'Dex', 'DEXTER!']
residence = ['the mall', 'my room', 'his house', 'Home']
went = ['Arcade','Ally','Club','Home','bed']
happened = ['Made Love!','Killed together.','I had his baby!','I was his blood.',' me and Dexter did a thing!']
print('-----------------------------------------------------------------------------------------------------------------------------------------')
print(random.choice(when) + ' the ' + (random.choice(name)) + ' ' + random.choice(who) + ', that lived at ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))
print('-----------------------------------------------------------------------------------------------------------------------------------------')
@primal bison @marble swift @wise garden
May all your wildest dreams come true.
Good stuff man thanks
A. donuts
Given an int count of a number of donuts, return a string
of the form 'Number of donuts: <count>', where <count> is the number
passed in. However, if the count is 10 or more, then use the word 'many'
instead of the actual count.
So donuts(5) returns 'Number of donuts: 5'
and donuts(23) returns 'Number of donuts: many'
def donuts(count):
+++your code here+++
return
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
That'd make it a bit cleaner
Import sys
def Hello(name):
if name == 'Alice' or name == 'Nick':
name = name + '???'
else:
DoesNotExist(name)
name = name + '!!!!!'
print 'Hello', name
Seems like this would be good to show some people in chat how not to talk.
Malcolm in the middle s6 e6
yellow car = 1990 Ford Tempo , blue car = 1996 Ford Mustang
If you guys liked the video please leaf a thumbs up and subscribe
Please share with your friend
๐ฅ๐ฅ๐ฅ
need help real quick
sorry hemlock
i just refreshed
and
i got unmutes
d
what are you doing kv
xv
how I can join the voicechat??
This is better
import random
import os
when = ['A long time ago', 'Today', 'In the last hour', 'In my dreams', 'Yesterday']
who = ['the myth', 'God', 'Daddy', 'Murderer', 'The One']
name = ['Dexter', 'D', 'Dexter my man', 'Dex', 'DEXTER!']
residence = ['the mall', 'my room', 'his house', 'Home']
went = ['Arcade','Ally','Club','Home','bed']
happened = ['Made Love!','Killed together.','I had his baby!','I was his blood.',' me and Dexter did a thing!']
print('-' * os.get_terminal_size()[0])
print(random.choice(when) + ' the ' + (random.choice(name)) + ' ' + random.choice(who) + ', that lived at ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))
print('-' * os.get_terminal_size()[0])
now it's better because the line is all screen
sorry my english is bad
The lines are added to make it look a little dif, I was even thinking to use emojis in it as well lol
and you can change
print(random.choice(when) + ' the ' + (random.choice(name)) + ' ' + random.choice(who) + ', that lived at ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))
to
print(f'{random.choice(when)} the {(random.choice(name))} {random.choice(who)}, that lived at {random.choice(residence)}, went to the {random.choice(went)} and {random.choice(happened)}'')
Yes F statements are good.
no it's not f statements it's f-strings
Got ya
i'm improving a programing language that davidcallanan created if you want to check it out
link: https://github.com/manifarizi/SnowScript-SnSc
a Free and Open Source Interpeted Programing Language - GitHub - manifarizi/SnowScript-SnSc: a Free and Open Source Interpeted Programing Language
Yes, I'm still new to all this, just learning day to day. On my 3rd week now.
if you are new this can be hard to understand but anyone can understand python
Thanks
!e ```py
n=int(input("Enter number of terms you want in the series: "))
sum_ = 0
for num in range(1,n+1):
prod = 1
for i in range(2,num+1):
prod=prod*i
sum_ += 1/prod
print(sum_)
@clear dirge :x: Your 3.10 eval job has completed with return code 1.
001 | Enter number of terms you want in the series: Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e input
@rain jay :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e input("hello")
@rain jay :x: Your 3.11 eval job has completed with return code 1.
001 | helloTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e
input("hello")
@rain jay :x: Your 3.11 eval job has completed with return code 1.
001 | helloTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e
import os
w = 1
cols = int(os.get_terminal_size()[0])
lines = int(os.get_terminal_size()[1])
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | OSError: [Errno 25] Inappropriate ioctl for device
!e
import os
w = 1
cols = int(20)
lines = int(5)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@
!e
import os
w = 1
cols = int(50)
lines = int(6)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.10 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@
!e
import os
w = 1
cols = int(50)
lines = int(50)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@
... (truncated - too long)
Full output: https://paste.pythondiscord.com/oladomujic.txt?noredirect
!e
import os
w = 1
cols = int(100)
lines = int(50)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@
... (truncated - too long)
Full output: https://paste.pythondiscord.com/abawuquvep.txt?noredirect
!e
import os
w = 1
cols = int(100)
lines = int(20)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@
... (truncated - too long)
Full output: https://paste.pythondiscord.com/upehugixut.txt?noredirect
!e
import os
w = 1
cols = int(50)
lines = int(10)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@
!e
import os
w = 1
cols = int(50)
lines = int(10)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@@ @@@@ @@@@@@ @@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@
!e
import os
w = 1
cols = int(50)
lines = int(10)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@
!e
import os
w = 1
cols = int(50)
lines = int(10)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@ @@ @@@ @@@@ @@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@@
!e
import os
w = 1
cols = int(50)
lines = int(10)
for i in range(lines):
w = int(cols / 2 - i + 1)
print(" " * w, end= "")
print("@@@" * i ,end = "")
@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.
@@@ @@@@@@ @@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@
!e
code
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | NameError: name 'os' is not defined
@primal bison :warning: Your 3.11 eval job has completed with return code 0.
[No output]
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 19, in <module>
003 | File "<string>", line 13, in start
004 | AttributeError: module 'random' has no attribute 'randomchoice'
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
The cards you have been dealt are a 6 and a 10. The card the dealer has is 3.
how i can join the voicechat?
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | cards = ['1', '2', '3, '4']
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 2)
@primal bison :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | NameError: name 'pop' is not defined. Did you mean: 'pow'?
!e
import ascii_magic
from turtle import *
hideturtle()
speed(10)
pensize(10)
penup()
goto(-105,0)
pendown()
color(23,107,239)
forward(25)
right(90)
circle(-30,305)
penup()
goto(-50,-30)
pendown()
color(255,62,48)
left(145)
circle(20)
penup()
goto(1,-30)
pendown()
color(247,181,41)
circle(20)
penup()
goto(52.5,-30)
pendown()
color(23,107,239)
circle(20,55)
left(180)
circle(-20,300)
left(95)
backward(12.5)
forward(47.5)
circle(-19,145)
right(55)
penup()
goto(52,-23)
pendown()
pensize(3)
color(255,255,255)
circle(13)
penup()
goto(83,35)
pendown()
pensize(10)
color(23,156,82)
right(90)
forward(65)
penup()
goto(97.5,-17.5)
pendown()
color(255,62,48)
left(110)
forward(40)
left(90)
circle(20,295)
!e
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
from turtle import *
hideturtle()
speed(10)
pensize(10)
penup()
goto(-105,0)
pendown()
color(23,107,239)
forward(25)
right(90)
circle(-30,305)
penup()
goto(-50,-30)
pendown()
color(255,62,48)
left(145)
circle(20)
penup()
goto(1,-30)
pendown()
color(247,181,41)
circle(20)
penup()
goto(52.5,-30)
pendown()
color(23,107,239)
circle(20,55)
left(180)
circle(-20,300)
left(95)
backward(12.5)
forward(47.5)
circle(-19,145)
right(55)
penup()
goto(52,-23)
pendown()
pensize(3)
color(255,255,255)
circle(13)
penup()
goto(83,35)
pendown()
pensize(10)
color(23,156,82)
right(90)
forward(65)
penup()
goto(97.5,-17.5)
pendown()
color(255,62,48)
left(110)
forward(40)
left(90)
circle(20,295)
!e
from turtle import *
hideturtle()
speed(10)
pensize(10)
penup()
goto(-105,0)
pendown()
color(23,107,239)
forward(25)
right(90)
circle(-30,305)
penup()
goto(-50,-30)
pendown()
color(255,62,48)
left(145)
circle(20)
penup()
goto(1,-30)
pendown()
color(247,181,41)
circle(20)
penup()
goto(52.5,-30)
pendown()
color(23,107,239)
circle(20,55)
left(180)
circle(-20,300)
left(95)
backward(12.5)
forward(47.5)
circle(-19,145)
right(55)
penup()
goto(52,-23)
pendown()
pensize(3)
color(255,255,255)
circle(13)
penup()
goto(83,35)
pendown()
pensize(10)
color(23,156,82)
right(90)
forward(65)
penup()
goto(97.5,-17.5)
pendown()
color(255,62,48)
left(110)
forward(40)
left(90)
circle(20,295)
!e
print("Hello World")
@sleek hamlet :white_check_mark: Your 3.10 eval job has completed with return code 0.
Hello World
!e
print("hi")
@glossy fjord :white_check_mark: Your 3.10 eval job has completed with return code 0.
hi
!e
for i in range(1,1001):
print(i)
@glossy fjord :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | 6
007 | 7
008 | 8
009 | 9
010 | 10
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/afetahumup.txt?noredirect
!e
import requests
@glossy fjord :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'requests'
!e
pip
@glossy fjord :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'pip' is not defined. Did you mean: 'zip'?
!e
import os
print(os.getlogin())
@glossy fjord :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | OSError: [Errno 25] Inappropriate ioctl for device
!e
import os
@glossy fjord :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
print("Hello World")
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World
!e
x = "Hello"[1]
print(x)
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
e
!e
x = "Hello"[0]
print(x)
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
H
!e
x=1
if x==1:
print("Yes")
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
Yes
!e
print("Fair"+"Shooter")
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
FairShooter
!e
x = ""
print("Fair"+x+"Shooter")
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
FairShooter
!e
x = " "
print("Fair"+x+"Shooter")
@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.
Fair Shooter
@heady hollow :x: Your 3.11 eval job has completed with return code 1.
001 | PASSWAORD GENERATOR
002 |
003 | How many characters would you like in your password?
004 |
005 | Traceback (most recent call last):
006 | File "<string>", line 11, in <module>
007 | EOFError: EOF when reading a line
how do streaming perms work <@&267628507062992896> ?
if a moderator is already present & connected to voice you can ask them
but we don't grant otherwise
okay, I guess that makes sense. Thanks for the info
np
I wonder if theres a better way to integrate golang and python besides using an HTTP API
check out RPC
gRPC is common one
awesome will check it out, thank you
๐
this still looks like a client server model, Ive only briefly read but I see .proto which is protobuffers. is there any chance you know of something thats ideal for use on the same system that communicates ultra quickly on an OS level or something?
uhhh yeah grpc still has a server element because one side needs to initiate the connection and one needs to receive it, downside is that yeah method calls can only go one way. communication ultra quickly on OS level would be uhhhh
In Unix-like computer operating systems, a pipeline is a mechanism for inter-process communication using message passing. A pipeline is a set of processes chained together by their standard streams, so that the output text of each process (stdout) is passed directly as input (stdin) to the next one. The second process is started as the first pro...
unix has the concept of FIFO pipes which are ideal for things like this -- processes can push and pop items from a queue like this
it depends on how much you want to hand bake
Im open to handbaking everything :P, this is definitely more what Im looking for. Thank you for pointing it out
hahaha no worries
if you do want to include networking at all https://zeromq.org/ is awesome
lol any chance they have a relation to rabbitmq? Ive used them
only in the sense of mq meaning message queue
they both achieve sort of similar things -- but rmq is a huge message queueing system a la kafka, zmq is muuuuch smaller and lightweight, intended for things like IoT
super small SDKs/protos etc.
ooo okay, that sounds very cool
what you are looking for is IPC solutions really, inter-process communication, so anything sporting that as a feature will solve the role you're looking for
zmq supports communication in the same process, inter-process (what you're looking for), TCP, UDP, TIPC (which is like inter-process but across a network, transparent inter-process) or websocket
yeah actually if you do want to go a little more higher level than raw unix pipes zmq would do local message passing through what I presume under the hood is unix pipes on linux
yeah it's unix domain sockets, that's neat
python example
i love pipes, this is awesome lol. Ill definitely be investigating this more, thanks for pointing it out :)
but yeah there are alllll sorts of solutions out there that will do this for you, ranging from very primitive stuff like unix domain sockets to lower level things like zmq and going as high as like
well
we run kafka with something stupid events per second
like 600,000
per second
Ive been wanting to play with kafka but Im not an org thats big enough lol
hahahaha yeah i've learnt most of what i know about cassandra, kafka & in general distributed data while working at my current company
risk solutions so looooots of data
6 petabytes of information last i checked
65 billion records
oh maan I can imagine the amount of data, Idk how much you can disclose but I assume you're picking up logging. that sounds very cool though!
Im not even sure how id handle that much data practically lol
i'm not actually sure what our logging stack stores, that's all on elastic for the most part
all data mentioned is just financial stuff, just a bunch of financial data on all sorts of things from a lot of sources
just a huge information warehouse
thats wild lol, if theyre hiring feel free to tell them about me :P
๐
Hi, does anybody has a project that I could help with? I have knowledge with web developent and data engineer
hi @cerulean copper i need some help or morely a coding buddy but my exams will end on 16sep so
I need a help
i help you if i can and i don't want money
mint on oct!
@spark igloo
hola
@spark igloo here
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
big dub
i just joined like 5 mins ago to find help for some shit
ik
i figured it out
it was weird
like i made a function in a class and it didnt output the same as the one out of the class
method
i ment method
yea but i changed the print and it ouput the right shit
used pprint
idk maby i didnt understand the unformatted print
its solved
wht u working on?
import tensorflow.compat.v2.feature_column as fc
hi @bold sky
yea
im ass at chess lol
im good sometimes
irl atleast
when its on the screen im not as good for somereason
im a solid 770
idk my elo i forgot my acc
thats cope im sorry
jap are you code god?
hell no
@steel cradle are you code god?
wtf do you mean by code god
there are tiers
code bum, code noob, code apprentice, code intermediate, code skilled, code master, code god
some sub tiers here and there also
but code god is the highest tier on the food chain
they piss code and its eloquent
@spark igloo what code level would you say your on
im code noob
thats all relative
I have made rock paper scissors, a basic 5 function calculator, and a generator
how long have you been coding
3years
@steel cradle what should you use if not pycharms
thats awhile
what all are you making
yea i allways bounced around
never rlly got good at 1 language
im making a basic discord bto
im trying to learn one and then go from there
bot
in python?
yes
i heard python is good for that so thats good
one thing I wanted to learn this for
how do you start making a bot?
for discord
yea pythons good for a lot if you have the right library
with import
yea
like import time or import random
yea
i know only of time random and math
i only know like a few commands
random.choice()
yea those are like extensions/libraries
can i see your bot
sure
hi @calm bay
wyd homie
@calm bay whos talking it shows just me and you
whos talking
who are you
can Anyone Here help me Make a window that give me a random number
i have the Code But i donโt know How i make this in window
@buoyant kestrel join me
One sec
I want to hate myself just a moment or two longer
In computer processors the carry flag (usually indicated as the C flag) is a single bit in a system status register/flag register used to indicate when an arithmetic carry or borrow has been generated out of the most significant arithmetic logic unit (ALU) bit position. The carry flag enables numbers larger than a single ALU width to be added/su...
what is a .ae file?
aecor
indian Terrry Davis or something we got here
what is he making?
OS
He's making a GameBoy emulator, not an OS
Zig?
Heresy!
Nim is easier than Zig
How do you decide if a language is "production ready"?
What if I wanted to use Zig or Nim or Rust at work?
The thing about Lua is that it's embedded in all kinds of things
It's what VBA should have been
What do you think VBA should have been then?
Not sure
Panjabi MC - Mundian To Bach Ke from the album Beware
Translation:
(AS YOU ARE GROWING UP PEOPLE ARE BECOMING AWARE OF YOUR GOOD LOOKS
EVERYONE IS LOOKING AT YOUR THIN WAIST)x2
THERES NO ONE LIKE YOUx2
(THE BOYS ARE TALKING ABOUT YOU EVERYDAY
THE STREETS ARE FULL OF STORIES ABOUT YOUR LOOKS)x2
DON'T LET THE ATTENTION DROWN YOU
%i works in some versions as well IIRC
totally did not post that in the wrong channel
Neat
!d format
format(value[, format_spec])```
Convert a *value* to a โformattedโ representation, as controlled by *format\_spec*. The interpretation of *format\_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: [Format Specification Mini-Language](https://docs.python.org/3/library/string.html#formatspec).
The default *format\_spec* is an empty string which usually gives the same effect as calling [`str(value)`](https://docs.python.org/3/library/stdtypes.html#str "str").
A call to `format(value, format_spec)` is translated to `type(value).__format__(value, format_spec)` which bypasses the instance dictionary when searching for the valueโs `__format__()` method. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") exception is raised if the method search reaches [`object`](https://docs.python.org/3/library/functions.html#object "object") and the *format\_spec* is non-empty, or if either the *format\_spec* or the return value are not strings.
it's like this
Hemlock, you're ST's completion popup looks nice
embrace the braces!

dangling pointers
if your try to return a pointer to something made on the function's stack
that's neat salt
you can always write a macro for it
Fair. Once I figure out macros
print(f'{27:c}#8')
!eval
print(f'{27:c}#8')
@jagged granite :white_check_mark: Your 3.11 eval job has completed with return code 0.
#8
PS5
e
Anyone around great with Jupiter Notebook and Pandas? Around? Alot to type out may be easier to share screen to explain what i need done.
mov [rcx], al
A 75-mile-long desert skyscraper clad in mirrors will have its own high-speed railway, a sports stadium and vertical gardens where vegetables are harvested by robots.
Leaked architectural designs claim that Mirror Line, an entire city of five million people built on stilts as high as the Empire State Building, will be the largest structure in t...
Thank you so much for play my GAME
The original video
https://youtu.be/ff9ldkz1h1M
@ruby lava #game-development
@final grail
add me
ok
while True: device_folders = glob.glob(base_dir + '28*') readings = [] # find device with a$ for device_folder in device_folders: device_file = device_folder + '/w1_slave' # store the details sensor_id = device_folder.split('/').pop()[3:] def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() # read the device de$ f.close() return lines
.
Exercise: Fizz-Buzz
Fizz-Buzz is a game that is sometimes played by children to help them learn about
division. The players are commonly arranged in a circle so that the game can progress
from player to player continually. The starting player begins by saying one, and then
play passes to the player to the left. Each subsequent player is responsible for the
next integer in sequence before play passes to the following player. On a playerโs
turn they must either say their number or one of following substitutions:
โข If the playerโs number is divisible by 3 then the player says fizz instead of their
number.
โข If the playerโs number is divisible by 5 then the player says buzz instead of their
number.
A player must say both fizz and buzz for numbers that are divisible by both 3
and 5. Any player that fails to perform the correct substitution or hesitates before
answering is eliminated from the game. The last player remaining is the winner.
Write a program that displays the answers for the first 100 numbers in the Fizz-
Buzz game. Each answer should be displayed on its own line.
if(x/3)
print("fizz")
if(x/5)
print("buzz")
if(x/3 && x/5)
print("fizz, buzz")
and
if(x/3)
print("fizz")
if(x/5)
print("buzz")
if(x/3 and x/5)
print("fizz, buzz")
x%3==o
if(x%3==0)
print("fizz")
else
if(x%5==0)
print("buzz")
if(x%3==0 and x%5==0)
print("fizz, buzz")
elfi
if (x % 3 == 0)
print("fizz")
elif (x % 5 == 0)
print("buzz")
elif (x % 3 == 0 and x % 5 == 0)
print("fizz, buzz")
else :
exit()
for x in range(1,100):
print(x)
if(x%3==0)
print("fizz")
else
elif(x%5==0)
print("buzz")
elif(x%3==0 and x%5==0)
print("fizz, buzz")
else:
exit()
@late ibex this one?
print('hellow world')
for x in range(100):
if (x % 3 == 0)
print("fizz")
elif (x % 5 == 0)
print("buzz")
elif (x % 3 == 0 and x % 5 == 0)
print("fizz, buzz")
else:
print('eleminated')
for x in range(1,100):
if(x%3==0)
print("fizz")
elif(x%5==0)
print("buzz")
elif(x%3==0 and x%5==0)
print("fizz, buzz")
else:
print(str(x))
did you run the computer
@fallen ledge here is another way to do it ๐
ok
code
!e```python
def validate_remainder(num_input):
division_rules = [3, 5]
say = ['fizz', 'buzz']
result = []
for index, num_rule in enumerate(division_rules):
operation = (num_input % num_rule)
if not operation:
result.append(say[index])
if not result:
return num_input
return result
for n in range(1, 101):
result = validate_remainder(num_input=n)
print(f'for num: {n}, say: {result}')
@onyx quarry :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | for num: 1, say: 1
002 | for num: 2, say: 2
003 | for num: 3, say: ['fizz']
004 | for num: 4, say: 4
005 | for num: 5, say: 5
006 | for num: 6, say: ['fizz']
007 | for num: 7, say: 7
008 | for num: 8, say: 8
009 | for num: 9, say: ['fizz']
010 | for num: 10, say: 10
011 | for num: 11, say: 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/arokufalaz.txt?noredirect
ok
cc @late ibex
Hi, there
I don't know if its the right channel to post, but i need some help regarding azure blob storage,
I have a blob stored in a container and i have it's url, but don't know how to delete that blob using that url. I'm using azure-storage-blob==12.11.0 in fastapi app.
can anyone help me?
The Data Science Design Manual (Steven S. Skiena)
sup g
describe what yo want
anyone wanna hop into voice with me so i can bounce my misunderstandings off of them?
Yea I am pretty good at it
really depends if javascript is needed or not and how much protection the site has, like if its behind cloud flare
I think if a site really wants too stop a headless browser they can just do render tests which can't be faked
and in that case I use virtual machines running real browsers operated by simple pyautogui scripts
.
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
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
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!eval 3.10 ```py
import random
print(random.choice(['yes', 'no']))
@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.
yes
!e
print(len('range(10)') - len('1..10'))
@honest pasture :white_check_mark: Your 3.11 eval job has completed with return code 0.
4
start, step, stop = map(int, input().split)
for n in range(start, stop, step):
print('do things')
start..stop:step
(start..stop).step_by(step)
i can do btree_map.values().rev().enumerate().step_by(2) and don't have to remember a seperate way to step for ranges vs any other Iterator
or i in range(5,0,-1):
i think you have forgot an F
!e
code
!eval 3.10 for i in range(120 + 1): {print(i)}
@quasi quest :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/otuqinajad.txt?noredirect
ok
def binary_search(list: object, item: object) -> object:
low=0
high=len(list)-1
print(high)
while low <=high:
mid=(low+high)
guess=list[mid]
if guess == item:
return mid
if guess > item:
high=mid-1
else:
low=mid+1
return None
if __name__ == '__main__':
l=[1,2,3,4,5,6]
print(binary_search(l,5))
hello @fallen ledge
@fallen ledge helllooooooooooo!!!!1
hi
bro how can i unmute myself
@placid elm are is israeli by anychance?
Anyone interested in becoming a study partner? Probably a bit above beginner.
@keen ether
you there?
Share your screen
if you want to
I wanna see some coding
C++(-)
hey
can you help with my school assignment.
Am in grade 8 and this is my first time learning python
Image
this is the question
hey bud, I recommend you watch a short video introducing programming in general preferably using python
after that do some research on python library commands like input() and random()
hello @narrow snow
iam doing fien
how about you
ok cna you hold on
i'll be back
you are a funny guy
Sorry, I have one screen so I don't see text right away, and yes if you want to know about it feel free and ask.
Sounds good
And it's just that I can take things from the users and have it say things about them in the end/
hello @gritty wasp
yes
i am doin aight
how about you
i ma working on a gui hangman
yes
the non gui version was not
but now to make all the buttons work is hard
yes
come on dm vedion call
can you accept my frined rq
come there
guys my mic suppressed
Can someone teach me how can i use this features in C programmingg language ?
% cc pun.c
% cc -o pun pun.c
how can i not see whos talking in vc blowing my ears off 
<@&831776746206265384> can i stream?
Streaming permissions are only granted by moderators who are already participating in the voice chat, and only at their discretion.
If a member of our moderation team is in your voice channel, feel free to ask them for streaming perms in the accompanying text chat. If a moderator is not already present in the voice channel to moderate the stream, we cannot grant the request.
i know ^^ Thats why i asked if a mod could joint so i can stream
moderators who are already participating in the voice chat
eww, why did I get a ping 12 hours later
I've been online most of the day :/ oh well
?
I responded to a 12 hour old message as I got a "new" ping. It's fine. Discord at its finest. Carry on.
.
H
cc is just your c compiler
pretty sure those commands are meant to be run from a terminal
Hello. I am new to this Discord and Python and I'm wondering where to go to introduce myself.
!doc for
!doc def
8.7. Function definitions
A function definition defines a user-defined function object (see section The standard type hierarchy):
!eval 3.10 print("Hello world");
@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.
Hello world
!source
hi
hi
@dapper pier hi!
I can talk lol
no
how do i get to talk lol
i neeed help coding lol
!eval 4.10 x=r
print(x)
@nocturne obsidian :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | 4.10 x=r
003 | ^
004 | SyntaxError: invalid syntax
!eval print("LOL ERROR")
@nocturne obsidian :white_check_mark: Your 3.11 eval job has completed with return code 0.
LOL ERROR
Hey guys, wondering if anyone is familiar with socket programing
Heyy guyz Iโm new just started with dsa anyone available who can help me ๐
!eval a = int(input("type a number"))
b = int(input("type a number"))
Sum = a*b
Print ("answer: ", Sum)
@slender trench :x: Your 3.10 eval job has completed with return code 1.
001 | type a numberTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval
a = int(input("type a number"))
b = int(input("type a number"))
Sum = a*b
Print ("answer: ", Sum)
@slender trench :x: Your 3.11 eval job has completed with return code 1.
001 | type a numberTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval mrb = int(input("num: "))
mrb2 = int(input("num: "))
Print (mrb*mrb2)
@naive python :x: Your 3.11 eval job has completed with return code 1.
001 | num: Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval mrb = int(input("num: "))
mrb2 = int(input("num: "))
sum = (mrb*mrb2)
Print (sum)
mrb = int(input("num: "))
mrb2 = int(input("num: "))
sum = (mrb*mrb2)
Print (sum)
@naive python :x: Your 3.10 eval job has completed with return code 1.
001 | num: Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval print("")
@lyric citrus :warning: Your 3.11 eval job has completed with return code 0.
[No output]
Hi guys im a very beginner and want to start learning programming. Does somebody know where i can learn Python for free
!eval print("python is slow af")
@lyric citrus :white_check_mark: Your 3.11 eval job has completed with return code 0.
python is slow af
internet
yeah and where on the internet
the world wide web
i see a lot of tutorials but which one should i stick to
https://docs.python.org/3/tutorial/index.html
read docs like chad
and honestly there's an unlimited amount of python tutorials, and all of them are excellent
I don't recommend reading books for python tho
because its not worth it
hello can anyone show me how to create a battery that can be reduced by string to 0 and then "recharged" ?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!eval if platform.system() == 'Windows':
os.system('cls & title Animal Aim Cheatos') # clear console, change title
elif platform.system() == 'Linux':
os.system('clear') # clear console
sys.stdout.write("\x1b]0;Animal Aim Cheatos\x07") # change title
elif platform.system() == 'Darwin':
os.system("clear && printf '\e[3J'") # clear console
os.system('''echo - n - e "\033]0;Animal Aim Cheatos\007"''') # change title
@cyan sandal :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'platform' is not defined
Hi!
Hey boys and girls, this is my last shot... so ive being doing some python scripts using alot of modules.. ( a bot for a game ) so my problem comes i want to like make a launcher to run the different scripts without people need to recieve my sourcecode... ive have been searching the web for 1 week now and cant seem to figure it out... another solution would be using pyshield or guard for obufuscation? if anyone is willing to help or teach me id gladly pay you for your time :=) - Regards Kasper
@harsh bough :white_check_mark: Your 3.10 eval job has completed with return code 0.
bozo
!eval import pygame
print(pygame)
@harsh bough :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'pygame'
code
!eval a='abcd'
@river coral :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!eval a='abcd'
!eval print(a,a,a,sep='\n')
@river coral :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | !eval print(a,a,a,sep='\n')
003 | ^
004 | SyntaxError: invalid syntax
!eval a='abcd'
print(a,a,a,sep='\n')
@river coral :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | abcd
002 | abcd
003 | abcd
!eval import math
x = 1
n = 40
for i in range(n,1,-1):
x = math.sqrt(1+i*x)
print(x)
@river coral :white_check_mark: Your 3.11 eval job has completed with return code 0.
2.99999999998618
option=int(input())
if option=!0:
print("Close")
!option=int(input())
if option=!0:
print("Close")
!eval option=int(input())
if option=!0:
print("Close")
@clever bolt :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | if option=!0:
003 | ^
004 | SyntaxError: invalid syntax
Bro i guess you have to put like != signs
Like if option != 0 :
option= int(input())
if option != 0:
print("close")
option1=int(input())
if option !=0:
print("Close")
evaloption=int(input())
if evaloption !=0:
print("Close")
@clever bolt :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval
def f():print("Oppai is love")
can someone help me out with upvoting stackoverflow post?
they blocked be from posting cuz I dont have many upvotes :/
!eval
print("hello")
!eval print("Hello World!")
@cloud knot :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
code
!eval 3.11 print("No greetings to the world!")
@brave wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.
No greetings to the world!
code
!e print("che shifo i neri")
like this
hello
!e
print("hello")
@lapis stream :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello
!e
print('Hello World!')
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
!eval print( "Hello" if 5 > 3 else "World)
@hybrid shell :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print( "Hello" if 5 > 3 else "World)
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
@hybrid shell :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello
!e help
@floral ridge :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'help' is not defined
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[25:0:-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
zwfutsrqponmlkjihgfedcb
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qponmlkjihgfedcb
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:13]
print(Backwards)
@floral ridge :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qponmlkjihgfedcba
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::13]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
q
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[17::13]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
r
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qrstufwz
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-30]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
q
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-5]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qlgb
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-2]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qomkigeca
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-3]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qnkheb
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:2:13]
print(Backwards)
@floral ridge :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-10]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qg
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-13]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qd
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-18]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
q
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::9]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
q
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::23]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
q
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::3]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qtw
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::2]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qsuw
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::5]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qf
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qponmlkjihgfedcba
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qponmlkjihgfedcb
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16: -1 : -1]
print(Backwards)
@floral ridge :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16: 13 :-1]
print(Backwards)
@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.
qpo
!e
console.log('yo')
@primal bison :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'console' is not defined
hello
def translate_to_morse()
def translate_to_alpha()
from morse import alpha_to_morse, morse_to_alpha
menu = """
Morse Code Translator
0: Exit
1: Translate a word into Morse Code
2: Translate Morse Code to text
"""
done = False
while not done:
print(menu)
selection = input("Please make a selection: ")
if selection == "0":
done = True
elif selection == "1":
first = input("Please enter a letter: ")
print(first.upper())
fixed_message = "".join(alpha_to_morse[first])
print(f'The Morse Code for {first} is: {fixed_message}')
elif selection == "2":
second = input("Please enter a morse code: ")
fixed_code = "".join(morse_to_alpha[second])
print(f'The letter for {second} is: {fixed_code}')
else:
print(f'{selection} is not recognized')
print("Please enter 0, 1 or 2.")
from morse import alpha_to_morse, morse_to_alpha
menu = """
Morse Code Translator
0: Exit
1: Translate a word into Morse Code
2: Translate Morse Code to text
"""
done = False
while not done:
print(menu)
selection = input("Please make a selection: ")
if selection == "0":
done = True
elif selection == "1":
first = input("Please enter a letter: ")
print(first.upper())
fixed_message = "".join(alpha_to_morse[first])
print(f'The Morse Code for {first} is: {fixed_message}')
elif selection == "2":
second = input("Please enter a morse code: ")
fixed_code = "".join(morse_to_alpha[second])
print(f'The letter for {second} is: {fixed_code}')
else:
print(f'{selection} is not recognized')
print("Please enter 0, 1 or 2.")
"""
This module includes two dictionaries - alpha_to_morse and morse_to_alpha.
alpha_to_morse uses an upper case letter of the alphabet as a key and the
corresponding Morse Code as the value.
E.g. in order to get the Morse Code for "S":
code = alpha_to_morse["S"]
Similarly, morse_to_alpha uses the Morse Code as the key and the letter
as the value.
E.g. in order to get the letter for "---":
letter = morse_to_alpha["---"]
Whereas Morse Code is based on dots and dashes, dots are represented by
periods, ".", and dashes are represented by hyphes, "-".
"""
alpha_to_morse = {
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
"J": ".---",
"K": "-.-",
"L": ".-..",
"M": "--",
"N": "-.",
"O": "---",
"P": ".--.",
"Q": "--.-",
"R": ".-.",
"S": "...",
"T": "-",
"U": "..-",
"V": "...-",
"W": ".--",
"X": "-..-",
"Y": "-.--",
"Z": "--.."
}
morse_to_alpha = {
".-": "A",
"-...": "B",
"-.-.": "C",
"-..": "D",
".": "E",
"..-.": "F",
"--.": "G",
"....": "H",
"..": "I",
".---": "J",
"-.-": "K",
".-..": "L",
"--": "M",
"-.": "N",
"---": "O",
".--.": "P",
"--.-": "Q",
".-.": "R",
"...": "S",
"-": "T",
"..-": "U",
"...-": "V",
".--": "W",
"-..-": "X",
"-.--": "Y",
"--..": "Z"
}
Here is an demonstration of how Hwk 5 should work.
!e py data = {"a": 1, "b": 2, "c": 3} new_data = {v: k for k, v in data.items()} print(data) print(new_data)I mean, you've already been given the two dictionaries, so whatever. Just as a side thought.
Important to note: inverting the keys and values like this can be dangerous. You can't have duplicate keys in a dict, so if you have two or more values in the original that are equal, you can lose a number of dictionary items in the operation.
@night lily :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {'a': 1, 'b': 2, 'c': 3}
002 | {1: 'a', 2: 'b', 3: 'c'}
!e py data = {"a": 1, "b": 1, "c": 2} new_data = {v: k for k, v in data.items()} print(data) print(new_data)
@night lily :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {'a': 1, 'b': 1, 'c': 2}
002 | {1: 'b', 2: 'c'}
call brr()
from morse import alpha_to_morse, morse_to_alpha
def translate_to_morse(text):
for letter in text:
print(alpha_to_morse[letter.upper()], end=" ")
def translate_to_alpha(morse):
for code in morse.split():
print(morse_to_alpha[code], end="")
def main():
menu = """
Morse Code Translator
0: Exit
1: Translate a word into Morse Code
2: Translate Morse Code to text
"""
done = False
while not done:
print(menu)
selection = input("Please make a selection: ")
if selection == "0":
done = True
elif selection == "1":
first = input("Please enter a letter: ")
print(first.upper())
fixed_message = "".join(alpha_to_morse[first])
print(f'The Morse Code for {first} is: {fixed_message}')
elif selection == "2":
second = input("Please enter a morse code: ")
fixed_code = "".join(morse_to_alpha[second])
print(f'The letter for {second} is: {fixed_code}')
else:
print(f'{selection} is not recognized')
print("Please enter 0, 1 or 2.")
"""
This module includes two dictionaries - alpha_to_morse and morse_to_alpha.
alpha_to_morse uses an upper case letter of the alphabet as a key and the
corresponding Morse Code as the value.
E.g. in order to get the Morse Code for "S":
code = alpha_to_morse["S"]
Similarly, morse_to_alpha uses the Morse Code as the key and the letter
as the value.
E.g. in order to get the letter for "---":
letter = morse_to_alpha["---"]
Whereas Morse Code is based on dots and dashes, dots are represented by
periods, ".", and dashes are represented by hyphes, "-".
"""
alpha_to_morse = {
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
"J": ".---",
"K": "-.-",
"L": ".-..",
"M": "--",
"N": "-.",
"O": "---",
"P": ".--.",
"Q": "--.-",
"R": ".-.",
"S": "...",
"T": "-",
"U": "..-",
"V": "...-",
"W": ".--",
"X": "-..-",
"Y": "-.--",
"Z": "--.."
}
morse_to_alpha = {
".-": "A",
"-...": "B",
"-.-.": "C",
"-..": "D",
".": "E",
"..-.": "F",
"--.": "G",
"....": "H",
"..": "I",
".---": "J",
"-.-": "K",
".-..": "L",
"--": "M",
"-.": "N",
"---": "O",
".--.": "P",
"--.-": "Q",
".-.": "R",
"...": "S",
"-": "T",
"..-": "U",
"...-": "V",
".--": "W",
"-..-": "X",
"-.--": "Y",
"--..": "Z"
}
Hey @outer loom!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
!eval print("Hello World!")
@cloud knot :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
Hey @ebon moss!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@primal bison how are you doing
how this thing works lmao
bruh everything here burning my mind haha someone teach me pls im still beginner haha
You can look at some useful youtube tutorials look up: www.youtube.com/techwithtim
Thats meant to be a url but discord says no
nice....
XDD okok sure XDDD
You could have saved a lot of time:
morse_to_alpha = dict()
for alpha, morse in alpha_to_morse.items():
morse_to_alpha[morse] = alpha```
Does anyone know how tiktok verifies their device id's on their end? I don't know much about xlog and mssdk but I'd probably pay if you could get a working device id gen
I have the request link but I can only get it to return 0
how to get permission to screenshare
anyone know anything about Webhook Embeds so when i open a python script it will send like "Hello" but in a nice Embed style
Is that snake called LemonHead?
nou
nou
nou
import time
timeStamp = time.ctime()
print(timeStamp)
records = {}
menu = """
Forum Comments
==============
0: Exit
1: Display Comments
2: Add Comment
"""
done = False
while not done:
print(menu)
selection = input("Please make your selection: ")
if selection == "0":
print("Thank you for participating.")
break
elif selection == "1":
for line in records:
print(line)
date = line["------------------------"]
name = line["------------------------"]
comment = line["------------------------"]
print(date, name, comment)
elif selection == "2":
timeStamp = time.ctime()
print(timeStamp)
name = input("Name: ")
date = input("Comment: ")
key = {'date', 'name', 'comment'}
key.append(records)
I'm a beginner.
Can anyone tell me , even though the condition is True why it isn't going inside the if statement and append the element?
vowels = ['a','e','i','o','u']
test = "asxzpy"
sub_str = []
if len(test) >= 1 and len(test) <= 100000:
for i in test:
print("condi = ", i in vowels)
print("char = ",i)
if i in vowels == True:
print("run")
sub_str.append(i)
print("sub = ",sub_str)```
Bc u dont do
if i in vowels == True:
U do
if i in vowels:
@quasi thistle Thanks buddy
No prblm sarge
hi @buoyant kestrel
L
how can i speak
ั ะฟัะฐะณัะฐะผะธัะพะฒะฐัั ั ะพัั
bitches
ะฟะธัะพะฝ?
ะทะผะตั?
ััะพ ะฒั?
@wooden bison
!mute 782286129084760095 Investigating
:incoming_envelope: :ok_hand: applied mute to @wooden bison until <t:1666042652:f> (1 hour).
!mute 409339495444381697 investigating
:incoming_envelope: :ok_hand: applied mute to @tulip kestrel until <t:1666042663:f> (1 hour).
@clear laurel Per Rule 6, your invite link has been removed. If you believe this was a mistake, please let staff know!
Our server rules can be found here: https://pythondiscord.com/pages/rules

import time
timeStamp = time.ctime()
print(timeStamp)
records = []
menu = """
Forum Comments
==============
0: Exit
1: Display Comments
2: Add Comment
"""
file = "step3_data.txt"
try:
fp = open(file)
except:
print("File could not be found")
pass
else:
line1 = fp.readline()
for line in fp:
line = line.strip()
print(f'{line1}: {line}')
line = line.split("\t")
print(line)
thisDict = {}
thisDict['date'] = line[0]
thisDict['name'] = line[1]
thisDict['timestamp'] = line[2]
print(thisDict)
done = False
while not done:
print(menu)
selection = input("Please make your selection: ")
if selection == "0":
print("Thank you for participating.")
file = open("step3_data.txt", "w")
break
file.write()
elif selection == "1":
for rec in records:
print(f"{rec.get('date')}:{rec.get('name')}")
print(rec.get('comment'))
print('------------------------')
elif selection == "2":
date = time.ctime()
name = input("Name: ")
comment = input("Comment: ")
rec = {'date':date, 'name':name, 'comment':comment}
records.append(rec)
!e
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e
`sales = 5000
if sales >= 5000:
bonus = 500
else:
bonus = 100
print(โYour Bonus is โ + bonus)`
!e
`sales = 5000
if sales >= 5000:
bonus = 500
else:
bonus = 100
print("Your Bonus is " + bonus)`
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 7, in <module>
003 | TypeError: can only concatenate str (not "int") to str
!e
`sales = 3827
if sales >= 5000:
bonus = 500
else:
bonus = 100
print(f"Your Bonus is {bonus}")`
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
Your Bonus is 100
Hi guys !
can i ask u all about classes?
im trying to write a a program that takes a set of numbers and apply a subtraction series on it.
for example : 1 2 3 4
expected answer : 1 1 1
Hi globula !
i can't speak yet, and so do u.
what's up ?
can someone explain to me what are all of the colors below ? like banana and such
can someone watch me code my first ai project
!e
print("Help")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
Help
!e
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
print(๐ฐ)
impressive
Pull up @hardy remnant to Live-Coding
A fast tunnel proxy that helps you bypass firewalls.
i cant unmute
hello
see #voice-verification
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!e import requests
def get_total_stars(username):
url = f'https://api.github.com/users/{username}/repos'
r = requests.get(url)
return sum(map(lambda x: x['stargazers_count'], r.json()))
print(get_total_stars('xtekky'))
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 5
002 | return sum(map(lambda x: x['stargazers_count'], r.json()))โ
003 | ^
004 | SyntaxError: invalid non-printable character U+200A
!e ```py
import requests
def get_total_stars(username):
url = f'https://api.github.com/users/{username}/repos'
r = requests.get(url)
return sum(map(lambda x: x['stargazers_count'], r.json()))
print(get_total_stars('xtekky'))
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 5
002 | return sum(map(lambda x: x['stargazers_count'], r.json()))โ
003 | ^
004 | SyntaxError: invalid non-printable character U+200A
@topaz mist @calm bay Because dwm is customized through editing its source code, it's pointless to make binary packages of it. This keeps its userbase small and elitist. No novices asking stupid questions. There are some distributions that provide binary packages though.
!e
print("oi")
@slim sun :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | python
003 | IndentationError: unexpected indent
try ```py
(code)
@slim sun :white_check_mark: Your 3.11 eval job has completed with return code 0.
oi
!e
a = list(range(1,100))
for i in a:
result = result + i
print(result)
Build and Run your Python code instantly. Online-Python is a quick and easy tool that helps you to build, compile, test your python programs.
my calculator
๐
!e ```py
def exitGame():
sys.exit()
tkinter quit prompt
def quitPrompt():
window = tk.Tk()
window.title("Quit Pyerraria?")
label = tk.Label(window, text="Would you like to quit Pyerraria?")
yes = tk.Button(window, text="Yes", width=3, command=exitGame)
no = tk.Button(window, text="No", width=2, command=window.destroy)
label.pack()
yes.pack()
no.pack()
window.mainloop()```
@tired gull :warning: Your 3.10 eval job has completed with return code 0.
[No output]
!e ```py
import tkinter as tk
def exitGame():
sys.exit()
tkinter quit prompt
def quitPrompt():
window = tk.Tk()
window.title("Quit Pyerraria?")
label = tk.Label(window, text="Would you like to quit Pyerraria?")
yes = tk.Button(window, text="Yes", width=3, command=exitGame)
no = tk.Button(window, text="No", width=2, command=window.destroy)
label.pack()
yes.pack()
no.pack()
window.mainloop()```
@tired gull :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "/usr/local/lib/python3.10/tkinter/__init__.py", line 37, in <module>
004 | import _tkinter # If this fails your Python may not be configured for Tk
005 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
!e
code
!e
print("e")
@jolly spear :white_check_mark: Your 3.11 eval job has completed with return code 0.
e
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
code
!eval [python_version] <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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
problem I am facing, if anyone has any solutions do share : https://stackoverflow.com/questions/74248145/deleting-database-object-via-a-button-in-vue-component
@primal bison :warning: Your 3.10 eval job has completed with return code 0.
[No output]
!e
print("Hello")
@tardy cipher :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello
@graceful rover :white_check_mark: Your 3.10 eval job has completed with return code 0.
hellow world
!e
n = (int("Enter any value for n="))
m = (int("Enter any value for m="))
p=m+n
print(p)
What!
@coarse wind :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'Enter any value for n='
!e
n = (int(20))
m = (int(20))
p=m+n
print(p)
@coarse wind :white_check_mark: Your 3.11 eval job has completed with return code 0.
40
!e
n = 20
m = 30
p=m+n
print (p)
@coarse wind :white_check_mark: Your 3.11 eval job has completed with return code 0.
50
n = int(input('Enter any value for n = '))
m = int(input('Enter any value for m = '))
ill pay $100 for anyone that can help me debug my code
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | NameError: name 'random' is not defined
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | animal_type = ["dog", "cat", "bird"]
003 | IndentationError: unexpected indent
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | File "/usr/local/lib/python3.11/random.py", line 370, in choice
004 | raise IndexError('Cannot choose from an empty sequence')
005 | IndexError: Cannot choose from an empty sequence
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | I chose dog
002 | I chose g
003 | I chose g
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | I chose bird
002 | I chose d
003 | I chose d
!rank
Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.
for i in range(len(my_list)):
do_something(my_list[i])
The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:
for item in my_list:
do_something(item)
Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.
Hey @soft tundra!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
code
!e
import random
animal_type = ["dog", "cat", "bird"]
animal = ""
for animals in animal_type:
animal_type = random.choice(animal_type)
sentence = "I chose " + animal_type
print(sentence)
!e
a="3"
b="2"
c=f"{a}+{b} = ?"
print(c)
dir_path = r'C:\Users\itayb\Desktop\NNames'
files_to_store = []
for file in os.listdir(dir_path):
if file.endswith('.txt'):
files_to_store.append(file)
def find_common_names( file1, file2, output ):
with open( file1, "r") as _f1:
file1 = _f1.readlines()
with open( file2, "r") as _f2:
file2 = _f2.readlines()
with open( output, "w") as _out:
for name in file1:
if name in file2:
_out.write(name)
for file in files_to_store:
find_common_names(master, slave, dupe)
import os
dir_path = r'C:\Users\itayb\Desktop\NNames'
files_to_store = []
master = input("please drag the master file")
for file in os.listdir(dir_path):
if file.endswith('.txt'):
files_to_store.append(file)
def find_common_names( file1, file2, output ):
with open( file1, "r") as _f1:
file1 = _f1.readlines()
with open( file2, "r") as _f2:
file2 = _f2.readlines()
with open( output, "w") as _out:
for name in file1:
if name in file2:
_out.write(name)
for file in files_to_store:
dupe = file + "dupe"
find_common_names(master, file, dupe)
Traceback (most recent call last):
File "C:\Users\itayb\Desktop\Versions\New folder\names.py", line 27, in <module>
find_common_names(master, file, dupe)
File "C:\Users\itayb\Desktop\Versions\New folder\names.py", line 16, in find_common_names
with open( file2, "r") as _f2:
FileNotFoundError: [Errno 2] No such file or directory: 'adi.txt'
path.split("\")[-1]
54,222
299,136

