#off-topic-lounge-text

1 messages ยท Page 2 of 1

night lily
#

As if I had written

#
v = "apple"```
#

Or above, func() becomes 5, because I returned 5.

#

That's the "outbox". Returning.

night vigil
#

hello Opal

buoyant kestrel
#

@narrow snow Yeah it's still bleeding through a bit. Might be better to mute in between or use push to talk

buoyant kestrel
barren adder
#

i start study python but i cant understand how keywords like True , how it work

narrow snow
buoyant kestrel
narrow snow
buoyant kestrel
buoyant kestrel
#

!server

timid fjordBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 156
Member status: status_online 54,222 status_offline 299,136

Members: 353,361

Helpers: 145
Moderation Team: 38
Admins: 14
Owners: 3
Contributors: 42
Leads: 10

Channels: 332

Category: 34
News: 9
Staff: 71
Stage_Voice: 2
Text: 205
Voice: 11

gloomy lily
honest pasture
gloomy lily
#
.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}"

honest pasture
gloomy lily
honest pasture
buoyant kestrel
low zenith
#

this discord could totally be streamed as like a podcast

buoyant kestrel
#

Right?

gloomy lily
narrow snow
#
"'f {},{}.)" 
gloomy lily
#

for {}

#

for index, element := range yourArray {}

#

for i := 0; i < 10; i++ {}

buoyant kestrel
#
i = 0
while i < 10:
  i += 1
#

I can't imagine how you'd do the the for implementing a while in Python

honest pasture
wary lance
#

Hi! I think of it as cost of not-dying.

buoyant kestrel
#

Fair

#

Yeah my code is messier I guess

#

Thoughts?

narrow snow
proper cobalt
low zenith
#

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

narrow snow
#

Back and having lunch so my ears are in.

buoyant kestrel
#
"Hello, #{blah}"

"Hello, \"#{blah}\""
gloomy lily
#
"Hello ${loser}"```
buoyant kestrel
#
<--?
?-->
gloomy lily
#
<div> 
  <shooter>
    <element/>
  </shooter>
<div>
(div
  (shooter
    (element)))```
buoyant kestrel
#
(div
  (shooter
    (element
    )
  )
)
#

.xkcd parens

vivid terraceBOT
#
XKCD comic 'parens'

Comic parameter should either be an integer or 'latest'.

gloomy lily
vernal snow
#
(div
  (shooter
    (element
     )
   )
 )
honest pasture
honest pasture
#

if [ $filename = *.cc ]; then\

buoyant kestrel
#

!stream 705441298710265928

timid fjordBOT
#

โœ… @eager crest can now stream until <t:1660844425:f>.

gloomy lily
#
    for file in ./src/pb/*.cc ./src/pb/*.h; do\
wary lance
#

Does it expand to actual filenames?

#

As in, do they match actual files?

gloomy lily
#
.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}"
primal bison
#

Hello @vernal snow what are you working on?

vernal snow
glass forum
short bay
#

@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

#

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

pulsar sun
#

How can ฤฑ speak mate ?

pallid kiln
pulsar sun
#

AWREAD MATE

fresh sail
shy inlet
#

Sorry repeat?

narrow snow
#

Now, I'm cooking with a good looking.

buoyant kestrel
#

That'll tell you what you need to know about our voice gate

fringe latch
#

@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

primal bison
#

Its a local university thing in Kashmir

buoyant kestrel
#

@glass obsidian Oh it'll be easier if you message me in here

#

And I'm just teaching myself C#

jagged granite
#

WTF are these "levels"?

glass obsidian
primal bison
#

pink chai

fringe latch
glass obsidian
#

Hahahaha

#

lol

primal bison
buoyant kestrel
#

Neat

south tusk
#

hey

compact monolith
#

Hi

true vault
narrow snow
primal bison
#

@proper cobalt sir i am unable to speak

proper cobalt
#

you need to get voice verified

#

#voice-verification

primal bison
narrow snow
#

# 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?

carmine current
narrow snow
#

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."

narrow snow
#

๐Ÿ‹๏ธโ€โ™‚๏ธ 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")

narrow snow
#

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))
                
narrow snow
gusty spire
#

Discord Sun Theme ?

compact meadow
gusty spire
compact meadow
#

:kekw:

gusty spire
#

I already do that....Maybe not in the proper way

compact meadow
primal bison
#

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...

โ–ถ Play video
gusty spire
#

Programming stuff ecc ecc

compact meadow
#

So yeah

#

productivity even

gusty spire
#

algorithms also

compact meadow
#

defo

gusty spire
#

what's mean ?

compact meadow
#

short for definetly

gusty spire
#

Thx ๐Ÿ™‚

#

I'm not good to speak in english

primal bison
#

anyone else want to code a quantum time traveling bean with me ?

whole tundra
#

hello

dusk pivot
#

you in alot of servers

whole tundra
#

help me someone ๐Ÿ˜ฆ

narrow snow
#

๐Ÿ—’๏ธ ๐Ÿ› ๏ธ ** 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.

wind turtle
narrow snow
#

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

buoyant kestrel
#

!f-strings

timid fjordBOT
#

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.

buoyant kestrel
#

That'd make it a bit cleaner

narrow snow
#
Import sys

def Hello(name):
    if name == 'Alice' or name == 'Nick':
        name = name + '???'
    else:
        DoesNotExist(name)
     name = name + '!!!!!'
     print 'Hello', name
noble stratus
#

need help real quick

ivory marten
#

sorry hemlock

#

i just refreshed

#

and

#

i got unmutes

#

d

#

what are you doing kv

#

xv

dense creek
#

sup

#

how tf do I join the audio room

drowsy mist
#

what

#

@calm bay

#

lol

rain jay
#

how I can join the voicechat??

rain jay
# narrow snow ๐Ÿ—’๏ธ ๐Ÿ› ๏ธ ** Update for the DEX ** ๐Ÿ› ๏ธ ๐Ÿ—’๏ธ ```py import random when = ['A long...

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])
narrow snow
#

Just added putting into the terminal with the Import OS

#

?

rain jay
#

sorry my english is bad

narrow snow
#

The lines are added to make it look a little dif, I was even thinking to use emojis in it as well lol

rain jay
#

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)}'')
narrow snow
#

Yes F statements are good.

rain jay
#

no it's not f statements it's f-strings

narrow snow
#

Got ya

rain jay
narrow snow
#

Yes, I'm still new to all this, just learning day to day. On my 3rd week now.

rain jay
clear dirge
#

!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_)

timid fjordBOT
#

@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
rain jay
#

!e input

timid fjordBOT
#

@rain jay :warning: Your 3.11 eval job has completed with return code 0.

[No output]
rain jay
#

!e input("hello")

timid fjordBOT
#

@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
rain jay
#

!e
input("hello")

timid fjordBOT
#

@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
rain jay
#

!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 = "")

timid fjordBOT
#

@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
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                          @                  @@                @@@              @@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.10 eval job has completed with return code 0.

                                                                                                      @                                                @@                                              @@@                                            @@@@                                          @@@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@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

rain jay
#

!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 = "")

timid fjordBOT
rain jay
#

!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 = "")

timid fjordBOT
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                                                                                      @                                                @@                                              @@@                                            @@@@                                          @@@@@                                        @@@@@@                                      @@@@@@@                                    @@@@@@@@                                  @@@@@@@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                                                                                      @@                                                @@@@                                              @@@@@@                                            @@@@@@@@                                          @@@@@@@@@@                                        @@@@@@@@@@@@                                      @@@@@@@@@@@@@@                                    @@@@@@@@@@@@@@@@                                  @@@@@@@@@@@@@@@@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                                                                                      @                                                @@                                              @@@                                            @@@@                                          @@@@@                                        @@@@@@                                      @@@@@@@                                    @@@@@@@@                                  @@@@@@@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                                                                                                                                                                                            @                                                                                                @@                                                                                            @@@                                                                                        @@@@                                                                                    @@@@@                                                                                @@@@@@                                                                            @@@@@@@                                                                        @@@@@@@@                                                                    @@@@@@@@@
rain jay
#

!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 = "")

timid fjordBOT
#

@rain jay :white_check_mark: Your 3.11 eval job has completed with return code 0.

                                                   @@@                        @@@@@@                       @@@@@@@@@                      @@@@@@@@@@@@                     @@@@@@@@@@@@@@@                    @@@@@@@@@@@@@@@@@@                   @@@@@@@@@@@@@@@@@@@@@                  @@@@@@@@@@@@@@@@@@@@@@@@                 @@@@@@@@@@@@@@@@@@@@@@@@@@@
chrome ocean
#

!e

timid fjordBOT
#
Missing required argument

code

timid fjordBOT
#

@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.
rain jay
#

how i can join the voicechat?

timid fjordBOT
#

@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'?
vagrant stump
#

!e

import ascii_magic
sleek hamlet
#

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

timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!*

sleek hamlet
#

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")

timid fjordBOT
#

@sleek hamlet :white_check_mark: Your 3.10 eval job has completed with return code 0.

Hello World
glossy fjord
#

!e
print("hi")

timid fjordBOT
#

@glossy fjord :white_check_mark: Your 3.10 eval job has completed with return code 0.

hi
glossy fjord
#

!e
for i in range(1,1001):
print(i)

timid fjordBOT
glossy fjord
#

!e
import requests

timid fjordBOT
#

@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'
glossy fjord
#

!e
pip

timid fjordBOT
#

@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'?
glossy fjord
#

!e
import os

print(os.getlogin())

timid fjordBOT
#

@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
glossy fjord
#

!e
import os

timid fjordBOT
#

@glossy fjord :warning: Your 3.11 eval job has completed with return code 0.

[No output]
heady hollow
#

!e

print("Hello World")

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World
heady hollow
#

!e

x = "Hello"[1]

print(x)

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

e
heady hollow
#

!e

x = "Hello"[0]

print(x)

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

H
heady hollow
#

!e

x=1
if x==1:
print("Yes")

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

Yes
heady hollow
#

!e

print("Fair"+"Shooter")

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

FairShooter
heady hollow
#

!e

x = ""

print("Fair"+x+"Shooter")

timid fjordBOT
#

@heady hollow :white_check_mark: Your 3.11 eval job has completed with return code 0.

FairShooter
heady hollow
#

!e

x = " "

print("Fair"+x+"Shooter")

timid fjordBOT
#

@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
red ginkgo
#

how do streaming perms work <@&267628507062992896> ?

shadow ivy
#

if a moderator is already present & connected to voice you can ask them

#

but we don't grant otherwise

red ginkgo
#

okay, I guess that makes sense. Thanks for the info

shadow ivy
#

np

red ginkgo
#

I wonder if theres a better way to integrate golang and python besides using an HTTP API

hallow jasper
#

gRPC is common one

red ginkgo
hallow jasper
#

๐Ÿ‘

red ginkgo
# hallow jasper ๐Ÿ‘

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?

hallow jasper
#

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

red ginkgo
#

Im open to handbaking everything :P, this is definitely more what Im looking for. Thank you for pointing it out

hallow jasper
#

hahaha no worries

red ginkgo
#

lol any chance they have a relation to rabbitmq? Ive used them

hallow jasper
#

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.

red ginkgo
#

ooo okay, that sounds very cool

hallow jasper
#

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

red ginkgo
#

i love pipes, this is awesome lol. Ill definitely be investigating this more, thanks for pointing it out :)

hallow jasper
#

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

red ginkgo
#

Ive been wanting to play with kafka but Im not an org thats big enough lol

hallow jasper
#

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

red ginkgo
#

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

hallow jasper
#

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

red ginkgo
#

thats wild lol, if theyre hiring feel free to tell them about me :P

hallow jasper
#

๐Ÿ˜„

vocal cave
#

can anyone help with some basic spyder python 3.9 coding?

#

will pay

#

$$

cerulean copper
#

Hi, does anybody has a project that I could help with? I have knowledge with web developent and data engineer

clear dirge
#

hi @cerulean copper i need some help or morely a coding buddy but my exams will end on 16sep so

wicked maple
#

I need a help

rain jay
cosmic urchin
orchid skiff
#

mint on oct!

bold sky
#

@spark igloo

spark igloo
#

hola

bold sky
#

@spark igloo here

spark igloo
#

yea

#

dont i have to wait

#

and

bold sky
#

!voice

timid fjordBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

spark igloo
#

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?

bold sky
#

import tensorflow.compat.v2.feature_column as fc

spark igloo
#

wht r u working on

#

dam

sour temple
#

hi @bold sky

spark igloo
#

yea

sour temple
#

wyd

#

brotha

#

chess

#

i wish

#

lol

#

im tarded

spark igloo
#

im ass at chess lol

sour temple
#

im good sometimes

#

irl atleast

#

when its on the screen im not as good for somereason

spark igloo
#

im a solid 770

sour temple
#

idk my elo i forgot my acc

spark igloo
#

thats cope im sorry

sour temple
#

jap are you code god?

spark igloo
#

hell no

sour temple
#

@steel cradle are you code god?

spark igloo
#

wtf do you mean by code god

sour temple
#

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

spark igloo
#

thats all relative

sour temple
#

I have made rock paper scissors, a basic 5 function calculator, and a generator

#

how long have you been coding

spark igloo
#

3years

sour temple
#

@steel cradle what should you use if not pycharms

#

thats awhile

#

what all are you making

spark igloo
#

yea i allways bounced around

#

never rlly got good at 1 language

#

im making a basic discord bto

sour temple
#

im trying to learn one and then go from there

spark igloo
#

bot

sour temple
#

in python?

spark igloo
#

yes

sour temple
#

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

spark igloo
#

yea pythons good for a lot if you have the right library

sour temple
#

with import

spark igloo
#

yea

sour temple
#

like import time or import random

spark igloo
#

yea

sour temple
#

i know only of time random and math

#

i only know like a few commands

#

random.choice()

spark igloo
#

yea those are like extensions/libraries

sour temple
#

can i see your bot

spark igloo
#

sure

sour temple
#

hi @calm bay

#

wyd homie

#

@calm bay whos talking it shows just me and you

#

whos talking

#

who are you

cunning prairie
#

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

calm bay
#

@buoyant kestrel join me

buoyant kestrel
#

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...

tacit briar
#

what is a .ae file?

potent crow
#

what lang is this?

#

WHAT?

#

type it for me

tacit briar
#

aecor

buoyant kestrel
potent crow
#

indian Terrry Davis or something we got here

tacit briar
#

what is he making?

potent crow
#

OS

buoyant kestrel
#

He's making a GameBoy emulator, not an OS

unique pike
#

hi

#

how to operate the pyhton program?

buoyant kestrel
jagged granite
#

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?

buoyant kestrel
jagged granite
#

The thing about Lua is that it's embedded in all kinds of things
It's what VBA should have been

buoyant kestrel
#

Could have

#

Should is a different matter

jagged granite
calm bay
buoyant kestrel
#

Not sure

rich moss
bold sky
raven rivet
#

%i works in some versions as well IIRC

#

totally did not post that in the wrong channel

buoyant kestrel
#

Neat

raven rivet
#

!d format

timid fjordBOT
#

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.
raven rivet
#

it's like this

#

Hemlock, you're ST's completion popup looks nice

#

embrace the braces!

#

dangling pointers

raven rivet
#

that's neat salt

#

you can always write a macro for it

buoyant kestrel
#

Fair. Once I figure out macros

calm bay
#
print(f'{27:c}#8')
jagged granite
#

!eval

print(f'{27:c}#8')
timid fjordBOT
#

@jagged granite :white_check_mark: Your 3.11 eval job has completed with return code 0.

#8
honest pasture
unborn sorrel
jagged granite
raven rivet
#

e

jagged granite
#

PS7 only fills half for some reason

lime granite
#

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.

rich moss
calm bay
faint spindle
calm bay
#
mov [rcx], al
vernal snow
#

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...

โ–ถ Play video
vernal snow
buoyant kestrel
calm bay
#

@final grail

final grail
#

yessir?

#

are you gonna stream aecor in the rust discord thinkmon

plush lion
neon aurora
#

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

keen notch
#

.

vernal snow
primal bison
#
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.
late ibex
#

if(x/3)
print("fizz")

if(x/5)
print("buzz")

if(x/3 && x/5)
print("fizz, buzz")

fallen ledge
#

and

late ibex
#

if(x/3)
print("fizz")

if(x/5)
print("buzz")

if(x/3 and x/5)
print("fizz, buzz")

fallen ledge
#

x%3==o

late ibex
#

if(x%3==0)
print("fizz")
else

if(x%5==0)
print("buzz")

if(x%3==0 and x%5==0)
print("fizz, buzz")

fallen ledge
#

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()

late ibex
#

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()

onyx quarry
#

@late ibex this one?

late ibex
#

the fizz buzz question is this

fallen ledge
#
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')


late ibex
#
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))
fallen ledge
#

did you run the computer

onyx quarry
#

@fallen ledge here is another way to do it ๐Ÿ™‚

fallen ledge
#

ok

timid fjordBOT
#
Missing required argument

code

onyx quarry
#

!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}')

timid fjordBOT
#

@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

onyx quarry
#

@fallen ledge here you go

#

I learned how to use !e lol

fallen ledge
#

ok

onyx quarry
#

cc @late ibex

stable stump
#

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?

fallen ledge
#

The Data Science Design Manual (Steven S. Skiena)

solemn fox
#

Hi everybody

#

Anyone here a web scraping specialist?

dense creek
slate bison
#

hi

#

i need a help in algorithm

serene matrix
flat hill
#

anyone wanna hop into voice with me so i can bounce my misunderstandings off of them?

edgy prawn
#

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

cold night
#

.

#

.

cold night
#

.

primal bison
#
import random
print(random.choice(['yes', 'no']))```
#

-e

#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!

primal bison
#

!eval

timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!

primal bison
#

!eval 3.10 ```py
import random
print(random.choice(['yes', 'no']))

timid fjordBOT
#

@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.

yes
honest pasture
#

!e

print(len('range(10)') - len('1..10'))
timid fjordBOT
#

@honest pasture :white_check_mark: Your 3.11 eval job has completed with return code 0.

4
honest pasture
#
start, step, stop = map(int, input().split)
for n in range(start, stop, step):
    print('do things')
#

start..stop:step

vernal snow
#
(start..stop).step_by(step)
carmine current
runic niche
#

or i in range(5,0,-1):

brave dagger
#

i think you have forgot an F

quasi quest
#

!e

timid fjordBOT
#
Missing required argument

code

quasi quest
#

!eval 3.10 for i in range(120 + 1): {print(i)}

timid fjordBOT
marsh yoke
#

@fallen ledge how can i get permission to open mic in Voice chat

#

india

fallen ledge
#

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))



marsh yoke
#

@fallen ledge helllooooooooooo!!!!1

fallen ledge
#

hi

marsh yoke
#

bro how can i unmute myself

gilded condor
#

@placid elm are is israeli by anychance?

oak rune
#

Anyone interested in becoming a study partner? Probably a bit above beginner.

hardy cape
#

Hi there

#

I'm currently learning NumPy, maybe I could help

abstract valve
primal bison
#

@keen ether

#

you there?

#

Share your screen

#

if you want to

#

I wanna see some coding

night lily
#

C++(-)

grave swift
#

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

coarse hollow
# grave swift

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()

ivory marten
#

hello @narrow snow

#

iam doing fien

#

how about you

#

ok cna you hold on

#

i'll be back

#

you are a funny guy

ivory marten
#

hello technatron

#

what troll were you talking about

#

@narrow snow

#

hello

narrow snow
ivory marten
#

so iam asking

#

what was trool

#

troll you were taking about

narrow snow
#

Sounds good

#

And it's just that I can take things from the users and have it say things about them in the end/

ivory marten
#

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

wintry acorn
#

guys my mic suppressed

calm root
#

Can someone teach me how can i use this features in C programmingg language ?
% cc pun.c
% cc -o pun pun.c

pallid kiln
#

how can i not see whos talking in vc blowing my ears off murder

carmine kelp
#

<@&831776746206265384> can i stream?

safe mesa
# carmine kelp <@&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.

carmine kelp
#

i know ^^ Thats why i asked if a mod could joint so i can stream

cloud cloak
#

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

primal bison
#

?

cloud cloak
#

I responded to a 12 hour old message as I got a "new" ping. It's fine. Discord at its finest. Carry on.

covert quiver
#

.

warped escarp
#

H

tender tangle
fringe lagoon
#

Hello. I am new to this Discord and Python and I'm wondering where to go to introduce myself.

upbeat mirage
#

!doc for

timid fjordBOT
#
for

8.3. The for statement

The for statement is used to iterate over the elements of a sequence (such as a string, tuple or list) or other iterable object:


for_stmt ::=  "for" target_list "in" expression_list ":" suite
              ["else" ":" suite]
wintry acorn
#

is any one here how code in PyTeal

#

algorand support language

primal bison
#

!doc def

timid fjordBOT
primal bison
#

!eval 3.10 print("Hello world");

timid fjordBOT
#

@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.

Hello world
primal bison
#

!source

timid fjordBOT
ivory marten
#

hi

vast gate
#

hi

#

@dapper pier hi!

#

I can talk lol

#

no

#

how do i get to talk lol

#

i neeed help coding lol

nocturne obsidian
#

!eval 4.10 x=r
print(x)

timid fjordBOT
#

@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
nocturne obsidian
#

!eval print("LOL ERROR")

timid fjordBOT
#

@nocturne obsidian :white_check_mark: Your 3.11 eval job has completed with return code 0.

LOL ERROR
polar jay
#

Hey guys, wondering if anyone is familiar with socket programing

mild sail
#

Heyy guyz Iโ€™m new just started with dsa anyone available who can help me ๐Ÿ™‚

slender trench
#

!eval a = int(input("type a number"))
b = int(input("type a number"))
Sum = a*b
Print ("answer: ", Sum)

timid fjordBOT
#

@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
slender trench
#

!eval
a = int(input("type a number"))
b = int(input("type a number"))
Sum = a*b
Print ("answer: ", Sum)

timid fjordBOT
#

@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
naive python
#

!eval mrb = int(input("num: "))
mrb2 = int(input("num: "))
Print (mrb*mrb2)

timid fjordBOT
#

@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
naive python
#

!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)

timid fjordBOT
#

@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
lyric citrus
#

!eval print("")

timid fjordBOT
#

@lyric citrus :warning: Your 3.11 eval job has completed with return code 0.

[No output]
runic bane
#

Hi guys im a very beginner and want to start learning programming. Does somebody know where i can learn Python for free

lyric citrus
#

!eval print("python is slow af")

timid fjordBOT
#

@lyric citrus :white_check_mark: Your 3.11 eval job has completed with return code 0.

python is slow af
runic bane
#

yeah and where on the internet

lyric citrus
#

the world wide web

runic bane
#

i see a lot of tutorials but which one should i stick to

lyric citrus
#

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

prisma gorge
#

hello can anyone show me how to create a battery that can be reduced by string to 0 and then "recharged" ?

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

cyan sandal
#

!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

timid fjordBOT
#

@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
primal bison
#

Hi!

odd chasm
#

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
#

print("bozo")

#

!eval print("bozo")

timid fjordBOT
#

@harsh bough :white_check_mark: Your 3.10 eval job has completed with return code 0.

bozo
harsh bough
#

!eval import pygame
print(pygame)

timid fjordBOT
#

@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'
#
Missing required argument

code

primal bison
#

Hi

#

I want help in import smtplib

graceful coral
#

python -m PyInstaller --onefile polar.pyw

#

oops

river coral
#

!eval a='abcd'

timid fjordBOT
#

@river coral :warning: Your 3.11 eval job has completed with return code 0.

[No output]
river coral
#

!eval a='abcd'
!eval print(a,a,a,sep='\n')

timid fjordBOT
#

@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
river coral
#

!eval a='abcd'
print(a,a,a,sep='\n')

timid fjordBOT
#

@river coral :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | abcd
002 | abcd
003 | abcd
river coral
#

!eval import math
x = 1
n = 40
for i in range(n,1,-1):
x = math.sqrt(1+i*x)
print(x)

timid fjordBOT
#

@river coral :white_check_mark: Your 3.11 eval job has completed with return code 0.

2.99999999998618
clever bolt
#

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")

timid fjordBOT
#

@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
dim zephyr
#

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
#

phh

#

thanks

#

!eval option=int(input())
if evaloption !=0:
print("Close")

timid fjordBOT
#

@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
primal bison
#

!eval


def f():print("Oppai is love")
fresh briar
#

can someone help me out with upvoting stackoverflow post?
they blocked be from posting cuz I dont have many upvotes :/

undone tusk
#

!eval
print("hello")

cloud knot
#

!eval print("Hello World!")

timid fjordBOT
#

@cloud knot :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World!
#
Missing required argument

code

brave wyvern
#

!eval 3.11 print("No greetings to the world!")

timid fjordBOT
#

@brave wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

No greetings to the world!
timid fjordBOT
#
Missing required argument

code

vernal canyon
#

!e print("che shifo i neri")

lyric citrus
versed sand
#

hello

lapis stream
#

!e
print("hello")

timid fjordBOT
#

@lapis stream :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello
primal bison
#

!e
print('Hello World!')

timid fjordBOT
#

@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World!
hybrid shell
#

!eval print( "Hello" if 5 > 3 else "World)

timid fjordBOT
#

@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
#

lol

#

!eval print( "Hello" if 5 > 3 else "World")

timid fjordBOT
#

@hybrid shell :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello
floral ridge
#

!e help

timid fjordBOT
#

@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
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[25:0:-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

zwfutsrqponmlkjihgfedcb
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qponmlkjihgfedcb
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:13]
print(Backwards)

timid fjordBOT
#

@floral ridge :warning: Your 3.11 eval job has completed with return code 0.

[No output]
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qponmlkjihgfedcba
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::13]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

q
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[17::13]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

r
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qrstufwz
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-30]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

q
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-5]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qlgb
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-2]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qomkigeca
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-3]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qnkheb
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:2:13]
print(Backwards)

timid fjordBOT
#

@floral ridge :warning: Your 3.11 eval job has completed with return code 0.

[No output]
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-10]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qg
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-13]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qd
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-18]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

q
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::9]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

q
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::23]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

q
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::3]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qtw
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::2]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qsuw
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::5]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qf
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16::-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qponmlkjihgfedcba
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16:0:-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qponmlkjihgfedcb
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16: -1 : -1]
print(Backwards)

timid fjordBOT
#

@floral ridge :warning: Your 3.11 eval job has completed with return code 0.

[No output]
floral ridge
#

!e Letters = "abcdefghijklmnopqrstufwz"
Backwards = Letters[16: 13 :-1]
print(Backwards)

timid fjordBOT
#

@floral ridge :white_check_mark: Your 3.11 eval job has completed with return code 0.

qpo
primal bison
#

!e
console.log('yo')

timid fjordBOT
#

@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
marble pilot
primal bison
#

hello

tidal wyvern
#
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"
}

    
night lily
#

!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.

timid fjordBOT
#

@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'}
night lily
#

!e py data = {"a": 1, "b": 1, "c": 2} new_data = {v: k for k, v in data.items()} print(data) print(new_data)

timid fjordBOT
#

@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'}
ebon moss
#

call brr()

tidal wyvern
#
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"
}

timid fjordBOT
#

Hey @outer loom!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

outer loom
cloud knot
#

!eval print("Hello World!")

timid fjordBOT
#

@cloud knot :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World!
cloud knot
#

nice

#

im so good at python

timid fjordBOT
#

Hey @ebon moss!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

ivory marten
#

@primal bison how are you doing

primal bison
#

Hi,

#

@ivory marten How are you?

jagged cloud
#

bruh everything here burning my mind haha someone teach me pls im still beginner haha

soft island
#

Thats meant to be a url but discord says no

#

nice....

jagged cloud
#

XDD okok sure XDDD

stiff basalt
primal bison
#

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

buoyant lake
#

how to get permission to screenshare

brazen linden
#
print ("Hello, World")
#
anybody here plays chess?
dusk zenith
#

anyone know anything about Webhook Embeds so when i open a python script it will send like "Hello" but in a nice Embed style

fresh sail
velvet tiger
#

Is that snake called LemonHead?

primal bison
#

@valid sable i dont speak

#

this awkward lol

storm gust
primal bison
#

nou

#

thats nsfw

storm gust
#

how

#

what

primal bison
#

nou

storm gust
#

nou

primal bison
valid sable
tidal wyvern
#
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)
novel shard
thorn smelt
#

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)```
quasi thistle
thorn smelt
#

@quasi thistle Thanks buddy

quasi thistle
primal bison
#

hi @buoyant kestrel

north cliff
#

L

tulip kestrel
#

ััƒะบะฐ

#

ะบะฐะบ ะณะฐะฒะฐั€ะธั‚ัŒ

wooden bison
#

how can i speak

tulip kestrel
#

ั ะฟั€ะฐะณั€ะฐะผะธั€ะพะฒะฐั‚ัŒ ั…ะพั‡ัƒ

wooden bison
#

bitches

tulip kestrel
#

can we talk?

#

babys

#

boobs or tits?

#

ass or tits?

wooden bison
#

ะฟะธั‚ะพะฝ?

tulip kestrel
#

ะทะผะตั?

wooden bison
#

i need help @hallow jasper

tulip kestrel
#

ัั‚ะพ ะฒั‹?

wooden bison
#

@rain dove

#

@visual stirrup

tulip kestrel
#

@wooden bison

tulip kestrel
#

can u anmute

#

?

buoyant kestrel
#

!mute 782286129084760095 Investigating

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied mute to @wooden bison until <t:1666042652:f> (1 hour).

buoyant kestrel
#

!mute 409339495444381697 investigating

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied mute to @tulip kestrel until <t:1666042663:f> (1 hour).

timid fjordBOT
#

@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

pseudo dust
tidal wyvern
#
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)
keen radish
primal bison
#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!

primal bison
#

!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)`

timid fjordBOT
#

@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
primal bison
#

!e

`sales = 3827
if sales >= 5000:
bonus = 500
else:
bonus = 100

print(f"Your Bonus is {bonus}")`

timid fjordBOT
#

@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.

Your Bonus is 100
near kayak
#

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

near kayak
#

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

primal bison
#

can someone watch me code my first ai project

primal bison
#

!e

print("Help")

timid fjordBOT
#

@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.

Help
silk island
#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!

leaden comet
#

hi

#

i can't im muted

fresh laurel
#

how can ฤฑ make this mute go?

#

alright

primal bison
#
print(๐Ÿ’ฐ)
hardy remnant
#

@primal bison

#

def sayHello(name):
print('Hello, ' + name)
sayHello('DarkPhinx')

arctic root
#

Pull up @hardy remnant to Live-Coding

arctic root
primal bison
#

i cant unmute

delicate hearth
rain sorrel
#

hey

#

just dm me for it

icy birch
#

!voice

timid fjordBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

icy birch
primal bison
timid fjordBOT
#

@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
primal bison
timid fjordBOT
#

@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
fresh plover
primal bison
#

@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.

slim sun
#

!e

print("oi")
timid fjordBOT
#

@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
drowsy badger
slim sun
#

K

#

!e

print("oi")
timid fjordBOT
#

@slim sun :white_check_mark: Your 3.11 eval job has completed with return code 0.

oi
drowsy badger
#

!e

a = list(range(1,100))
for i in a:
    result = result + i
    print(result)
lament hamlet
#

my calculator

#

๐Ÿ™‚

tired gull
#

!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()```

timid fjordBOT
#

@tired gull :warning: Your 3.10 eval job has completed with return code 0.

[No output]
tired gull
#

!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()```

timid fjordBOT
#

@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
primal bison
#

print("tomato")

#

nooooooooooooooooooooooooooooooo

jolly spear
#

!e

timid fjordBOT
#
Missing required argument

code

jolly spear
#

!e

print("e")
timid fjordBOT
#

@jolly spear :white_check_mark: Your 3.11 eval job has completed with return code 0.

e
timid fjordBOT
#
Missing required argument

code

#
Command Help

!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!

#
Missing required argument

code

#
Command Help

!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!

cursive horizon
primal bison
#

!e

os.system("whoami")
#

!e

import os
os.system("whoami")
timid fjordBOT
#

@primal bison :warning: Your 3.10 eval job has completed with return code 0.

[No output]
tardy cipher
#

!e
print("Hello")

timid fjordBOT
#

@tardy cipher :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello
graceful rover
#

print("hello world")

#

!e
print("hellow world")

timid fjordBOT
#

@graceful rover :white_check_mark: Your 3.10 eval job has completed with return code 0.

hellow world
coarse wind
#

!e
n = (int("Enter any value for n="))
m = (int("Enter any value for m="))
p=m+n
print(p)

#

What!

timid fjordBOT
#

@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='
coarse wind
#

!e
n = (int(20))
m = (int(20))
p=m+n
print(p)

timid fjordBOT
#

@coarse wind :white_check_mark: Your 3.11 eval job has completed with return code 0.

40
coarse wind
#

!e
n = 20
m = 30
p=m+n
print (p)

timid fjordBOT
#

@coarse wind :white_check_mark: Your 3.11 eval job has completed with return code 0.

50
royal plaza
# coarse wind What!

n = int(input('Enter any value for n = '))
m = int(input('Enter any value for m = '))

snow mauve
#

ill pay $100 for anyone that can help me debug my code

timid fjordBOT
#

@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
sonic tartan
#

!rank

timid fjordBOT
#

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.

timid fjordBOT
#

Hey @soft tundra!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

#
Missing required argument

code

primal bison
#

!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)

warm parrot
#
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)


next saffron
#

str()

#

f"{file}_dupe.txt"

warm parrot
#
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'

next saffron
#

path.split("\")[-1]