#off-topic-lounge-text
1 messages · Page 3 of 1
.split(r"\")[-1]
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(dir_path + "/" + 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:
#file = str(file).replace(r"\", "/").split("/")
print(file)
dupe = f"{file}_dupe.txt"
print (dupe)
find_common_names(master, file, dupe)
adi.txt_dupe.txt
files_to_store.append(dir_path+file)
C:\Users\itayb\Desktop\NNames/itay.txt_dupe.txt
import os
dir_path = r'C:\Users\itayb\Desktop\NNames'
master = r'C:\Users\itayb\Desktop\master.txt'
files_to_store = []
for file in os.listdir(dir_path):
if file.endswith('.txt'):
files_to_store.append(dir_path+"/"+file)
def this_is_how_i_count():
this_is_how_i_count.counter += 1
this_is_how_i_count.counter = 0
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)
this_is_how_i_count()
for file in files_to_store:
##file = str(file).replace(r"\"", "/").split("/")
dupe = f"{file}_dupe.txt"
find_common_names(master, file, dupe)
print(f"this is how many duplicates were found inside {dupe} : {this_is_how_i_count.counter}")
this_is_how_i_count.counter = 0
this is how many duplicates were found inside C:\Users\itayb\Desktop\NNames/itay.txt_dupe.txt : 1
itay.txt_dupe.txt
itay_dupe.txt
!d pathlib.Path
class pathlib.Path(*pathsegments)```
A subclass of [`PurePath`](https://docs.python.org/3/library/pathlib.html#pathlib.PurePath "pathlib.PurePath"), this class represents concrete paths of the system’s path flavour (instantiating it creates either a [`PosixPath`](https://docs.python.org/3/library/pathlib.html#pathlib.PosixPath "pathlib.PosixPath") or a [`WindowsPath`](https://docs.python.org/3/library/pathlib.html#pathlib.WindowsPath "pathlib.WindowsPath")):
```py
>>> Path('setup.py')
PosixPath('setup.py')
``` *pathsegments* is specified similarly to [`PurePath`](https://docs.python.org/3/library/pathlib.html#pathlib.PurePath "pathlib.PurePath").
!e
from pathlib import Path
p = Path("/a/b/c/d/file.txt")
name = p.stem
print(name)
@calm bay :white_check_mark: Your 3.11 eval job has completed with return code 0.
file
hi
!e
code
👋
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
@timid fjord
!e 3 import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('------------')
@bot.command()
async def hello(ctx):
await ctx.send("hello")
@bot.command()
async def clear(ctx, amount:int):
"""Clears lines depending on the ammount"""
await ctx.channel.purge(limit=amount)
bot.run('Token')
@soft reef :x: Your 3.10 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | 3 import discord
003 | ^^^^^^
004 | SyntaxError: invalid syntax
!e import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('------------')
@bot.command()
async def hello(ctx):
await ctx.send("hello")
@bot.command()
async def clear(ctx, amount:int):
"""Clears lines depending on the ammount"""
await ctx.channel.purge(limit=amount)
bot.run('Token')
!e print("Im alive")
@soft reef :white_check_mark: Your 3.11 eval job has completed with return code 0.
Im alive
!e print("Im alive")
!e print("test")
@woeful mauve :white_check_mark: Your 3.10 eval job has completed with return code 0.
test
!e print("alu World")
@buoyant lake :white_check_mark: Your 3.11 eval job has completed with return code 0.
alu World
DM ME TO HELP ME IN VC
hey guys how to exit this vim ???.
Write a python program to check prime number or not. help me for this code pls
def is_prime_number(number):
for num in range(round(sqrt(number))):
if number % num == 0:
return False
return True```
thare are a faster solutions, but it's not bad too
restart
!e print("test")
🤣🤣🤣🤣🤣🤣 yo so funny ??..
giacomo è ricchione
sup guys can i ask a little question
does somebody know how i can sort a string in alphabetic form. I can't use the function sorted() tho??
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
["Hi name", "name Hi", "Hi is", "is Hi", "Joey Hi", "is my", "is name", "my is", "is Joey", "Joey my", "Hi my", "my name", "name Joey", "name my", "Joey name", "name is", "my Hi", "Hi Joey", "my Joey", "Joey is"]
@tawny heart
#Bonus: Plot Cp (for p=0) and Cv (for V=Vo) as a function of temperature. Comment on how different they are? (do the derivatives numerically)
import numpy as np
T = np.linspace(1, 1000, 10000) # K
figure6 = plt.figure(figsize=(10, 6)) # set figure size, name figure
HeatCapacityAtConstantVolume = []
Vratio = 1
s = 0
for temperature in range(10000): #runs through temperatures from 300 to 800
temp = T[s]
w = w0*(1-gamma*(Vratio-1)) #frequency
B = np.exp(hbar*w/(k*temp)) # e^-hw/kt
Epot = A*(Vratio-1)**2 #Potential energy
HeatCapacityAtConstantVolume.append((3*N*k*((hbar*w/(k*temp))**2))*(B/((B-1)**2)))
s += 1
Cp = []
Vratio = np.linspace(0, 1.6, 10000)
s = 0
for temperature in range(10000): #runs through temperatures from 300 to 800
temp = T[s]
w = w0*(1-gamma*(Vratio-1)) #frequency
B = np.exp(-hbar*w/(k*temp)) # e^-hw/kt
Epot = A*(Vratio-1)**2 #Potential energy
F = np.array((3*N)*(hbar*w/2)+3*N*k*temp*np.log(1-B)+Epot) #Helmholtz energy function
minimumy = np.min(F)
xindex = np.where(F == minimumy)
minimumx = np.array(Vratio[xindex])
w = w0*(1-gamma*(minimumx-1)) #frequency
B = np.exp(hbar*w/(k*temp)) # e^-hw/kt
Epot = A*(minimumx-1)**2 #Potential energy
Cp.append((3*N*k*((hbar*w[0]/(k*temp))**2))*(B[0]/((B[0]-1)**2)))
s += 1
axes6 = figure6.add_subplot(121)
axes6.plot(T, HeatCapacityAtConstantVolume, label = "Cv") # plot y v x and label
axes6.set_xlabel('Temperature') # label x axis
axes6.set_ylabel('Heat Capacity [eV/K]') # label y axis
axes6.set_title('Heat Capacity vs Temperature')
plt.legend()
axes6 = figure6.add_subplot(122)
axes6.plot(T, Cp, label = "Cp", color = "green") # plot y v x and label
axes6.set_xlabel('Temperature') # label x axis
axes6.set_ylabel('Heat Capacity [eV/K]') # label y axis
axes6.set_title('Heat Capacity vs Temperature')
plt.legend()
plt.show() # show plot
" ".join(permutations(words, 25))
>>> words = words.split()
>>> print(words)
['word1', 'word2', 'word3']
>>> print(permutations(words, 3))
<itertools.permutations object at 0x000001FBE6D43920>
>>> print(*permutations(words, 3))
('word1', 'word2', 'word3') ('word1', 'word3', 'word2') ('word2', 'word1', 'word3') ('word2', 'word3', 'word1') ('word3', 'word1', 'word2') ('word3', 'word2', 'word1')
>>>
@tawny heart https://cses.fi/book/book.pdf the math in the back of the book can help
I don't think any of that math is relevant to my code
the probability and the geometry math might be relevant
in the chapter 3
Nope
Not using probability or geometry in any way
>>> words = "word1 word2 word3"
>>> words = words.split()
>>> print(words)
['word1', 'word2', 'word3']
>>> print(permutations(words, 3))
<itertools.permutations object at 0x000001FBE6D43920>
>>> print(*permutations(words, 3))
('word1', 'word2', 'word3') ('word1', 'word3', 'word2') ('word2', 'word1', 'word3') ('word2', 'word3', 'word1') ('word3', 'word1', 'word2') ('word3', 'word2', 'word1')
>>> perms = list(permutations(words, 3))
>>> all_possible_phrases = []
>>> for perm in perms:
... all_possible_phrases.append(" ".join(perm))
...
>>> all_possible_phrases
['word1 word2 word3', 'word1 word3 word2', 'word2 word1 word3', 'word2 word3 word1', 'word3 word1 word2', 'word3 word2 word1']
!e
x = [1, 2, 3, 4 , 5]
for i in x:
print(i)
@nocturne plume :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
for phrase in [all_possible_phrases]:
for phrase in all_possible_phrases:
How many words are in play here in practice?
sniff
tortuous means complex.
🥴
kernel get perms.
weew
shy
@high geode
ye
uhk
y
shy
snek doesn't talk
kree
@high geode
!stream 575108662457139201
✅ @ornate sigil can now stream until <t:1668190591:f>.
✅ @ornate sigil can now stream until <t:1668192529:f>.
somebody wanna help me to run this locally https://github.com/alembics/disco-diffusion
I know right
py```
sss = f'x:{f"{x:05}":>8} y:{f"{y:05}":>8}'
print(sss)
can we make a 3rd level of format ?
it seems not. this is because same symbol for opening and closing string ...
I am in dire need of help i have a school assignment/project
and im blanking
pls i speak fluent english if anyone can help pls dm me and we can call or message pls
Hello anyone help me in coding
hi
tf
Bro i need help
alright im here @quasi thistle
ik
just need to finish setting up python on this profile
i guess that's what you wanted
@tame citrus
import datetime
date_time_str = 'Jun 28 2018 7:40AM'
date_time_obj = datetime.datetime.strptime(date_time_str, '%b %d %Y %I:%M%p')
print('Date:', date_time_obj.date())
print('Time:', date_time_obj.time())
print('Date-time:', date_time_obj)
try once
i wish i could talk
you can type
i can't hear you so it would be wasted anyways
is there a reason as to why you dont wanna use that module before @quasi thistle
huh no
yooo
it works
import datetime
date_time_str = 'Jun 28 2018 7:40AM'.lower()
date_time_obj = datetime.datetime.strptime(date_time_str, '%b %d %Y %H:%M%p')
print('Date:', date_time_obj.date())
print('Time:', date_time_obj.time())
print('Date-time:', date_time_obj)```
great
the reason being is that you were supposed to use %H
ok
now im gonna freestyle a bit
@light axle
brother can you pls be in mute
Hello there
Hi
ay
How can I start screenshare too?
you will need perms
you need perms
and how do I get that?
mods

only mods can allow you to
or anyone higher
ok and how do I ask them to let me do that lol
also dont do it rn
there is already someone screensharing
ask
💀 there is a maximum people sharing
you can ask a mod but i doubt they'll randomly give your perms tbh
what's the problem if someone else ss in same time
@light axle You've got music coming though
nothing
but you rather not do it
it will make the vc a bit untidy
i also said that
ok I guess
Or you're speaking though a vocoder 
make a module for doing complex math
vorcoder?
i didnt realize a mod was here lol
anyways
You want to make me kill my self?
yes but no
One of these https://en.wikipedia.org/wiki/Vocoder
A vocoder (, a portmanteau of voice and encoder) is a category of speech coding that analyzes and synthesizes the human voice signal for audio data compression, multiplexing, voice encryption or voice transformation.
The vocoder was invented in 1938 by Homer Dudley at Bell Labs as a means of synthesizing human speech. This work was developed int...
Yeah just seeing what's happening 👀 No need to worry 😄
well ask me to do something more simple than killing my self with math

invent math
i didnt install anything?
midnight shennanigans
i mean what ur looking on github rn
i c
gooey
who was playing twinkle twinkle

Maybe I'm just more easily annoyed...
Can I ask what are you making rn?
nothing much, just freestlying
was helping bonky with something they needed help with and now just freestyling
from what i helped them with
cool do you want me to make you tkinter ui or something?
im okay
kk
gtg 👋
nite nite
wdym ?
i mean if ur in live coding, start live? lol
@manic valve
x = ['1', '2', '3']
y = map(int, x)
print(y)
@restive orchid
int('1')
range(0, 1)
!e
x = ['1', '2', '3']
y = map(int, x)
print(y)
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
<map object at 0x7f3d9ef38ac0>
!e
x = ['1', '2', '3']
y = list(map(int, x))
print(y)
!e
x = ['1', '2', '3']
y = list(map(int, x))
print(y)
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3]
def math_op(arg1, arg2):
return(arg1*arg2)
x = ['1','2','3']
y = list(map(math_op, x))
print(y)
!e
x = ['1', '2', '3']
y = [int(i) for i in x]
print(y)
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3]
!e
def math_op(arg1, arg2):
return(arg1*arg2)
x = ['1','2','3']
y = list(map(math_op, x))
print(y)
@restive orchid :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 | TypeError: math_op() missing 1 required positional argument: 'arg2'
!e
def is_equal(param):
if param % 2 == 0: return(True)
else: return(False)
x = [1,2,3,4,9]
y = list(map(is_equal(x),x)))
print(y)
@restive orchid :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 7
002 | y = list(map(is_equal(x),x)))
003 | ^
004 | SyntaxError: unmatched ')'
!e
def is_equal(param):
if param % 2 == 0: return True
else: return False
x = [1,2,3,4,9]
y = list(map(is_equal,x))
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[False, True, False, True, False]
def is_equal(param):
return param % 2 == 0
!e
x = [1,2,3,4,9]
y = list(map(lambda y: y,x))
print(y)
!e
x = [1,2,3,4,9]
y = list(map(x))
print(y)
@restive orchid :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 | TypeError: map() must have at least two arguments.
!e
x = [1,2,3,4,9]
y = list(map(type(x),x))
print(y)
@restive orchid :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 | TypeError: 'int' object is not iterable
@calm bay :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, 4, 9]
!e
x = [1,2,3,4,9]
y = list(map(int(x),x))
print(y)
@restive orchid :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 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
!e
x = [1,2,3,4,9]
y = list(map(int,x))
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, 4, 9]
!e
print([] is [])
print(id([]) == id([]))
@calm bay :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
!e
arr = [1,2,3,4]
y = [x * 2 for x in arr]
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[2, 4, 6, 8]
!e
double = lambda a: i*2 for i in a
x = [1,2,3,4,5,6]
y = list(map(double, x))
print(y)
@restive orchid :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | double = lambda a: i*2 for i in a
003 | ^^^
004 | SyntaxError: invalid syntax
!e
double = lambda a: a*2
x = [1,2,3,4,5,6]
y = list(map(double, x))
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[2, 4, 6, 8, 10, 12]
!e
x = [1,2,3,4,5,6]
y = list(map(lambda a: a*2, x))
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[2, 4, 6, 8, 10, 12]
!e
x = [1,2,3,4,5,6]
y = [i*2 for i in x]
print(y)
@restive orchid :white_check_mark: Your 3.11 eval job has completed with return code 0.
[2, 4, 6, 8, 10, 12]
def is_equal(param):
if param % 2 == 0: return True
else: return False
x = [1,2,3,4,9]
y = list(map(is_equal,x))
y = [is_equal(param) for param in x]
print(y)
char = "t"
strr = "This is a test"
if strr.find(char) > -1:
print("idk, some output")
.
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e
x = [1,2,3,4,5,6]
y = list(map(lambda a: a*2, x))
print(y)
@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.
[2, 4, 6, 8, 10, 12]
Hellooo @calm bay
Hello
!e
global x
x = 'hello'
@indigo marlin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
#help-grapes Testing something
!e ```python
for i in range(5):
print("*" * i)
@little harness :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 | *
003 | **
004 | ***
005 | ****
!e ```python
import os
print(os.environ)
@little harness :white_check_mark: Your 3.11 eval job has completed with return code 0.
environ({'LANG': 'en_US.UTF-8', 'OMP_NUM_THREADS': '5', 'OPENBLAS_NUM_THREADS': '5', 'MKL_NUM_THREADS': '5', 'VECLIB_MAXIMUM_THREADS': '5', 'NUMEXPR_NUM_THREADS': '5', 'PYTHONPATH': '/snekbox/user_base/lib/python3.11/site-packages', 'PYTHONIOENCODING': 'utf-8:strict', 'LC_CTYPE': 'C.UTF-8'})
@little harness :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | `python
003 | ^
004 | SyntaxError: invalid syntax
!e ```python
import requests
print(requests.get("https://google.com").text)
@little harness :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'requests'
!e ```python
from urllib.request import urlopen
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
with urlopen("https://3.101.140.252") as response:
body = response.read()
print(body)
@little harness :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/usr/local/lib/python3.11/urllib/request.py", line 1348, in do_open
003 | h.request(req.get_method(), req.selector, req.data, headers,
004 | File "/usr/local/lib/python3.11/http/client.py", line 1282, in request
005 | self._send_request(method, url, body, headers, encode_chunked)
006 | File "/usr/local/lib/python3.11/http/client.py", line 1328, in _send_request
007 | self.endheaders(body, encode_chunked=encode_chunked)
008 | File "/usr/local/lib/python3.11/http/client.py", line 1277, in endheaders
009 | self._send_output(message_body, encode_chunked=encode_chunked)
010 | File "/usr/local/lib/python3.11/http/client.py", line 1037, in _send_output
011 | self.send(msg)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/wejakewumu.txt?noredirect
!e ```python
while true:
print("test")
@little harness :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 'true' is not defined. Did you mean: 'True'?
!e ```python
while True:
print("test")
@little harness :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | test
002 | test
003 | test
004 | test
005 | test
006 | test
007 | test
008 | test
009 | test
010 | test
011 | test
... (truncated - too many lines)
Full output: too long to upload
!e ```python
from os import listdir
print(listdir())
@little harness :white_check_mark: Your 3.11 eval job has completed with return code 0.
['requirements', 'config', 'user_base']
!e ```python
with open('requiertments', 'r') as f:
print(f.read())
@little harness :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 | FileNotFoundError: [Errno 2] No such file or directory: 'requiertments'
!e ```python
with open('requirements', 'r') as f:
print(f.read())
@little harness :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 | IsADirectoryError: [Errno 21] Is a directory: 'requirements'
!e ```python
import os
for root, dirs, files in os.walk(".", topdown=False):
for name in files:
print(os.path.join(root, name))
for name in dirs:
print(os.path.join(root, name))
@little harness :white_check_mark: Your 3.10 eval job has completed with return code 0.
001 | ./requirements/pip-tools.pip
002 | ./requirements/coverage.pip
003 | ./requirements/coveralls.in
004 | ./requirements/pip-tools.in
005 | ./requirements/coverage.in
006 | ./requirements/lint.in
007 | ./requirements/coveralls.pip
008 | ./requirements/lint.pip
009 | ./requirements/requirements.pip
010 | ./config/__pycache__/gunicorn.conf.cpython-310.pyc
011 | ./config/snekbox.cfg
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/osazehuxat.txt?noredirect
!e ```python
import urllib.request
local_filename, headers = urllib.request.urlretrieve('http://python.org/')
html = open(local_filename)
html.close()
@little harness :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/usr/local/lib/python3.11/urllib/request.py", line 1348, in do_open
003 | h.request(req.get_method(), req.selector, req.data, headers,
004 | File "/usr/local/lib/python3.11/http/client.py", line 1282, in request
005 | self._send_request(method, url, body, headers, encode_chunked)
006 | File "/usr/local/lib/python3.11/http/client.py", line 1328, in _send_request
007 | self.endheaders(body, encode_chunked=encode_chunked)
008 | File "/usr/local/lib/python3.11/http/client.py", line 1277, in endheaders
009 | self._send_output(message_body, encode_chunked=encode_chunked)
010 | File "/usr/local/lib/python3.11/http/client.py", line 1037, in _send_output
011 | self.send(msg)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/suyirupefi.txt?noredirect
hi
hello
Hello @upper vector
I don't think so, I read the rules in #voice-verification
we need 50 + messages and 3 days in server
are you very good with python?
Not very good, I came on here to ask a question about lists with a leetcode question im doing
oh dam same
I wanna ask something about functions
but explaining over text would require a lot and it could come out as very confusing
Hello @primal bison
@upper vector I know of another programming server where you could ask yoru question. I'm not sure about what channel you could ask your question on here
ye ye ye
e
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e [3.11] <for i in range of(10):
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [3.11] <for i in range of(10):
003 | ^^^
004 | SyntaxError: invalid syntax
!e [3.11] <for i in range of(10): print ("*"xi)>
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [3.11] <for i in range of(10): print ("*"xi)>
003 | ^^^
004 | SyntaxError: invalid syntax
!e [3.11] for i in range of(10): print ("*"xi)
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [3.11] for i in range of(10): print ("*"xi)
003 | ^^^
004 | SyntaxError: invalid syntax
!e [3.11] for i in range of(10):
print ("*"xi)
@tough monolith :x: Your 3.10 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [3.11] for i in range of(10):
003 | ^^^
004 | SyntaxError: invalid syntax
!e 3.11 for i in range of(10):
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | for i in range of(10):
003 | ^^
004 | SyntaxError: invalid syntax
!e 3.11 for i in range (10):
print ("X"Xi)
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print ("X"Xi)
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 1
!e 3.11 for i in range (10):
print ("X"Xi)
@tough monolith :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print ("X"Xi)
003 | ^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
!e 3.11 for i in range (10):
print ("X"*i)
@tough monolith :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 | X
003 | XX
004 | XXX
005 | XXXX
006 | XXXXX
007 | XXXXXX
008 | XXXXXXX
009 | XXXXXXXX
010 | XXXXXXXXX
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e 3.11 import pygame
pygame.init()
screen = pygame.display.set_mode((100,100))
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.fill ('black')
pygame.display.update()
clock.tick(30)
@tough monolith :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'
!e
temp = eval(input('Enter a temperature in Celsius: '))
print('In Fahrenheit, that is', 9/5*temp+32)
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | Enter a temperature in Celsius: Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
hmmmm
!e
print(9/5 * 30 + 32)
@brave drum :white_check_mark: Your 3.11 eval job has completed with return code 0.
86.0
!e
code
!e
code
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
?
!e print("It's not that hard to use this.")
@coarse elk :white_check_mark: Your 3.10 eval job has completed with return code 0.
It's not that hard to use this.
fair enough
!format
String Formatting Mini-Language
The String Formatting Language in Python is a powerful way to tailor the display of strings and other data structures. This string formatting mini language works for f-strings and .format().
Take a look at some of these examples!
>>> my_num = 2134234523
>>> print(f"{my_num:,}")
2,134,234,523
>>> my_smaller_num = -30.0532234
>>> print(f"{my_smaller_num:=09.2f}")
-00030.05
>>> my_str = "Center me!"
>>> print(f"{my_str:-^20}")
-----Center me!-----
>>> repr_str = "Spam \t Ham"
>>> print(f"{repr_str!r}")
'Spam \t Ham'
Full Specification & Resources
String Formatting Mini Language Specification
pyformat.info
<@&831776746206265384> Any possibility @sharp harness or I could get screen share for #off-topic-lounge-text?
what does the built in "lambda" do in python?
Guess it's just the normal lambda-functionality of python
!stream @sharp harness
✅ @sharp harness can now stream until <t:1669573146:f>.
!stream @sharp harness
✅ @sharp harness can now stream until <t:1669574018:f>.
En kurs i hur man klarar sig om man råkat hamna i Norrland.
Stöd oss genom Swish: 0702516089
eller Patreon: https://www.patreon.com/freudianslip
Stort tack!
Introbild skoter: https://youtu.be/jVmj8Fw0ZRk
Introbild bil och fiske: https://youtu.be/V8n1gKHIDEU
Getting Past French Immigration | Foil Arms and Hog
#France #Immigration
Our LIVE Show on the 28th May in Dublin will be in Aid of Ukraine (The Irish Red Cross Ukrainian Appeal)
Our brand new LIVE show is in Edinburgh this August tickets on sale now:
https://www.foilarmsandhog.ie/tour
If you'd like to support us making these videos we have a ...
@lucid sequoia :x: Your 3.11 eval job has completed with return code 1.
001 | Enter the number: Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | EOFError: EOF when reading a line
!e 3.11 (lambda __g, __print: [(__print(zlib.decompress('x\x9c\xf3H\xcd\xc9\xc9W\x08\xcf/\xcaIQ\x04\x00\x1cI\x04>').decode('utf-8')), None)[1] for __g['zlib'] in [(import('zlib', __g, __g))]][0])(globals(), import('builtin', level=0).dict['print'])
@median monolith :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 '__builtin__'
!e 3.11 import zlib
print(zlib.decompress(b'x\x9c\xf3H\xcd\xc9\xc9W\x08\xcf/\xcaIQ\x04\x00\x1cI\x04>').decode('utf-8'))
@median monolith :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
!e 3.11 import zlib
print(zlib.decompress(b'x\x9cs\xf4\x18\x05#\x12\x00\x00ZF\x8e\x02').decode('utf-8'))
@median monolith :white_check_mark: Your 3.11 eval job has completed with return code 0.
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
!e 3.10 import tkinter
root = tkinter.Tk()
root.mainloop()
@silk bluff :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "/usr/local/lib/python3.10/tkinter/__init__.py", line 37, in <module>
004 | import _tkinter # If this fails your Python may not be configured for Tk
005 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNqN00EKxCAMBdC9p3CRXeRvhYLMzXL2idMaG2uYfigU+vim1qZswae6EPItad7qM8BJ3kI1Fx+OKII1w7kYehZByzHcAn3VrNOgnUGHNXYGm8JY3WFbIdEruDDKx3CMFDrG7GOWdGOAtF24xyAJRNNk78bSffDOgjqDdMKQ8dE3/LEVD6aFClECOJnAHQoTYsdjf3o2dX9hnwov4G/6jADm4lYtRa89vL6tvWuLftfBRQnwBQV2tN4=')).decode('utf-8'))
@median monolith :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 | .?77777777777777$.
003 | 777..777777777777$+
004 | .77 7777777777$$$
005 | .777 .7777777777$$$$
006 | .7777777777777$$$$$$
007 | ..........:77$$$$$$$
008 | .77777777777777777$$$$$$$$$.=======.
009 | 777777777777777777$$$$$$$$$$.========
010 | 7777777777777777$$$$$$$$$$$$$.=========
011 | 77777777777777$$$$$$$$$$$$$$$.=========
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/jogotazayi.txt?noredirect
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNp7NKXhERxNm4yOkGXBiAtVdQtBPVyYZmDRMG0SCCE0YJqKZjxEA1gPF0FHI1SDEaoN2FSgIIQf0JyLpIKQp7EY3ICsk4ugo9HsAQDufiC1')).decode('utf-8'))
@median monolith :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ────▓▓▓▓▓▓──────
002 | ───▓▄▓▓▓▓▓▓─────
003 | ──────▓▓▓▓▓─▒▒──
004 | ─▓▓▓▓▓▓▓▓▓──▒▒▒─
005 | ▓▓▓▓▓──────▒▒▒▒▒
006 | ─▓▓▓──▒▒▒▒▒▒▒▒▒─
007 | ──▓▓─▒▒▒▒▒──────
008 | ─────▒▒▒▒▒▒▀▒───
009 | ──────▒▒▒▒▒▒────
is anyone is availble now
!e
import zlib, base64
print(zlib.decompress(base64.b64decode(b'eJxTUFBQeDRtMhpSAAMumFwLDhVcEHXoUo+mTQIikDSmPiQDIMpAKrmwWg+XhyAk0zDkkBHIVSgOQcggORqb1gaIGi6s1kP1AwC8raPO')).decode('utf-8'))
@calm bay :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ▓▓▓▓▓▓
002 | ▓▄▓▓▓▓▓▓
003 | ▓▓▓▓▓ ▒▒
004 | ▓▓▓▓▓▓▓▓▓ ▒▒▒
005 | ▓▓▓▓▓ ▒▒▒▒▒
006 | ▓▓▓ ▒▒▒▒▒▒▒▒▒
007 | ▓▓ ▒▒▒▒▒
008 | ▒▒▒▒▒▒▀▒
009 | ▒▒▒▒▒▒
!e
code
!e print('test)
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print('test)
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
!e print ("hello")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello
!e input("what is your name?")
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | what is your name?Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e print("lol i dont know what dat means")
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
lol i dont know what dat means
!e print("You know python?")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
You know python?
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNp7NKXhERxNm4yOkGXBiAtVdQtBPVyYZmDRMG0SCCE0YJqKZjxEA1gPF0FHI1SDEaoN2FSgIIQf0JyLpIKQp7EY3ICsk4ugo9HsAQDufiC1')).decode('utf-8'))
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ────▓▓▓▓▓▓──────
002 | ───▓▄▓▓▓▓▓▓─────
003 | ──────▓▓▓▓▓─▒▒──
004 | ─▓▓▓▓▓▓▓▓▓──▒▒▒─
005 | ▓▓▓▓▓──────▒▒▒▒▒
006 | ─▓▓▓──▒▒▒▒▒▒▒▒▒─
007 | ──▓▓─▒▒▒▒▒──────
008 | ─────▒▒▒▒▒▒▀▒───
009 | ──────▒▒▒▒▒▒────
!e print("barely")
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
barely
!e print ("nice")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
nice
nice code imma steal it
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNp7NKXhERxNm4yOkGXBiAtVdQtBPVyYZmDRMG0SCCE0YJqKZjxEA1gPF0FHI1SDEaoN2FSgIIQf0JyLpIKQp7EY3ICsk4ugo9HsAQDufiC1')).decode('utf-8'))
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ────▓▓▓▓▓▓──────
002 | ───▓▄▓▓▓▓▓▓─────
003 | ──────▓▓▓▓▓─▒▒──
004 | ─▓▓▓▓▓▓▓▓▓──▒▒▒─
005 | ▓▓▓▓▓──────▒▒▒▒▒
006 | ─▓▓▓──▒▒▒▒▒▒▒▒▒─
007 | ──▓▓─▒▒▒▒▒──────
008 | ─────▒▒▒▒▒▒▀▒───
009 | ──────▒▒▒▒▒▒────
!e while true print("lel")
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | while true print("lel")
003 | ^^^^^
004 | SyntaxError: invalid syntax
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNp7NKXhERxNm4yOkGXBiAtVdQtBPVyYZmDRMG0SCCE0YJqKZjxEA1gPF0FHI1SDEaoN2FSgIIQf0JyLpIKQp7EY3Csk4ugo9HsAQDufiC1')).decode('utf-8'))
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | File "/usr/local/lib/python3.11/base64.py", line 88, in b64decode
004 | return binascii.a2b_base64(s, strict_mode=validate)
005 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 | binascii.Error: Incorrect padding
!e 3.11 import zlib, base64
print(zlib.decompress(base64.b64decode(b'eNp7NKXhERxNm4yOkGXBiAtVdQtBPVyYZmDRMG0SCCE0YJqKZjxEA1gPF0FHI1SDEaoN2FSgIIQf0JyLpIKQp7EY3ICsk4ugo9HsAQDufiC1')).decode('utf-8'))
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ────▓▓▓▓▓▓──────
002 | ───▓▄▓▓▓▓▓▓─────
003 | ──────▓▓▓▓▓─▒▒──
004 | ─▓▓▓▓▓▓▓▓▓──▒▒▒─
005 | ▓▓▓▓▓──────▒▒▒▒▒
006 | ─▓▓▓──▒▒▒▒▒▒▒▒▒─
007 | ──▓▓─▒▒▒▒▒──────
008 | ─────▒▒▒▒▒▒▀▒───
009 | ──────▒▒▒▒▒▒────
i wish i knew to code better
!e a = True
while a == True:
print("Hello World")
@primal bison :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | Hello World
002 | Hello World
003 | Hello World
004 | Hello World
005 | Hello World
006 | Hello World
007 | Hello World
008 | Hello World
009 | Hello World
010 | Hello World
011 | Hello World
... (truncated - too many lines)
Full output: too long to upload
watch tut vids
!e input("i have watched millions of those i followed one exactly and it stilll lead me to errors")
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | i have watched millions of those i followed one exactly and it stilll lead me to errorsTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e print("i have watched millions of those i followed one exactly and it stilll lead me to errors")
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
i have watched millions of those i followed one exactly and it stilll lead me to errors
!e print("oof")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
oof
!e print("get a course then")
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
get a course then
expensive and my dad thinks its a waste of time
!e a = true
while a == true:
print("1+1=3")
@primal bison :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 'true' is not defined. Did you mean: 'True'?
Tell him you can earn money from that
and most of them arent expensive
!e a = True
while a == True:
print("1+1=3")
@primal bison :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | 1+1=3
002 | 1+1=3
003 | 1+1=3
004 | 1+1=3
005 | 1+1=3
006 | 1+1=3
007 | 1+1=3
008 | 1+1=3
009 | 1+1=3
010 | 1+1=3
011 | 1+1=3
... (truncated - too many lines)
Full output: too long to upload
!e print("this is my game but it will ofc not work in discord")
@kind pilot :white_check_mark: Your 3.11 eval job has completed with return code 0.
this is my game but it will ofc not work in discord
!e import pygame.
pygame.init()
screen = pygame.display.set_mode((400,500))
done = False.
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | import pygame.
003 | ^
004 | SyntaxError: invalid syntax
!e import pygame
pygame.init()
screen = pygame.display.set_mode((400,500))
done = False.
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 4
002 | done = False.
003 | ^
004 | SyntaxError: invalid syntax
!e import pygame
pygame.init()
screen = pygame.display.set_mode((400,500))
done = False
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
@kind pilot :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 6
002 | for event in pygame.event.get():
003 | ^
004 | IndentationError: expected an indented block after 'while' statement on line 5
ok
!e
print(1+1)
@formal ravine :white_check_mark: Your 3.11 eval job has completed with return code 0.
2
!e
code
!e
code
!e def voy
@tidal crow :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | def voy
003 | ^
004 | SyntaxError: expected '('
!e def voy (ch:str)->int:
@tidal crow :x: Your 3.10 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | def voy (ch:str)->int:
003 | ^
004 | IndentationError: expected an indented block after function definition on line 1
@copper mapleVoice channel ? Im speak french ?
I speak no french
@buoyant kestrel Can I stream into this channel?
laguna i am surppresed idk how to talk
You have to get 50 messages in chat and stuff
There should be a thing around here somewhere about voice verification @steep veldt
!e print("hi")
@mossy folio :white_check_mark: Your 3.11 eval job has completed with return code 0.
hi
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e import random
trys = 1
#Guess the number
cap = input("What is the number cap 😊
cap = int(cap)
ran_num = random.randrange(0,cap)
num_1 = input("Pick a number 😊
num_1 = int(num_1)
while True:
if (num_1 > ran_num):
print("Lower")
num_1 = input("Pick a number 😊
trys += 1
num_1 = int(num_1)
elif(num_1 < ran_num):
print("Higher")
num_1 = input("Pick a number 😊
trys += 1
num_1 = int(num_1)
elif(num_1 == ran_num):
print("You got it in " , trys , " trys")
break
@mossy folio :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 5
002 | cap = input("What is the number cap 😊
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 5)
!e
code
!e print("hi")
!e import random
trys = 1
#Guess the number
cap = input("What is the number cap 😊")
cap = int(cap)
ran_num = random.randrange(0,cap)
num_1 = input("Pick a number 😊")
num_1 = int(num_1)
while True:
if (num_1 > ran_num):
print("Lower")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 < ran_num):
print("Higher")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 == ran_num):
print("You got it in " , trys , " trys")
break
@primal bison :x: Your 3.10 eval job has completed with return code 1.
001 | What is the number cap 😊Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | EOFError: EOF when reading a line
!e print("hi")
!e import random
trys = 1
#Guess the number
cap = input("What is the number cap 😊")
cap = int(cap)
ran_num = random.randrange(0,cap)
num_1 = input("Pick a number 😊")
num_1 = int(num_1)
while True:
if (num_1 > ran_num):
print("Lower")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 < ran_num):
print("Higher")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 == ran_num):
print("You got it in " , trys , " trys")
break
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | !e import random
003 | ^
004 | SyntaxError: invalid syntax
!e print("hi")
!e import random
trys = 1
#Guess the number
cap = input("What is the number cap 😊")
cap = int(cap)
ran_num = random.randrange(0,cap)
num_1 = input("Pick a number 😊")
num_1 = int(num_1)
while True:
if (num_1 > ran_num):
print("Lower")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 < ran_num):
print("Higher")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 == ran_num):
print("You got it in " , trys , " trys")
else:
break
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | !e import random
003 | ^
004 | SyntaxError: invalid syntax
!e import random
trys = 1
#Guess the number
cap = input("What is the number cap 😊")
cap = int(cap)
ran_num = random.randrange(0,cap)
num_1 = input("Pick a number 😊")
num_1 = int(num_1)
while True:
if (num_1 > ran_num):
print("Lower")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 < ran_num):
print("Higher")
num_1 = input("Pick a number 😊")
trys += 1
num_1 = int(num_1)
elif(num_1 == ran_num):
print("You got it in " , trys , " trys")
break
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | What is the number cap 😊Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | EOFError: EOF when reading a line
!e print(9+10)
x = 21
print(“9+10 =“,x)
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 3
002 | print(“9+10 =“,x)
003 | ^
004 | SyntaxError: invalid character '“' (U+201C)
@primal bison I hate to be that guy but it’s spelled “tries” 😅 unless I’m stupid**
!e print(round((10/3), 5)
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(round((10/3), 5)
003 | ^
004 | SyntaxError: '(' was never closed
!e print(round((10/3), 5))
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
3.33333
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e
code
!e
code
!e print('hello')
!e f = input('hi<:')
!e if f == 'hello':
!e print('good day')
my code be like
😄
anyway
hello every1
was just trying to correct your code 😅 (no offence
)
Bro pulled an uno reverse 💀
No offense taken, thanks for trying
!e x=21
!e print(9+10)
!e print(x)
@primal bison :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | !e print(9+10)
003 | ^
004 | SyntaxError: invalid syntax
!e x=21
print(9+10)
print(x)
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 19
002 | 21
FINALLY
!e print(10+11)
@cursive abyss :white_check_mark: Your 3.10 eval job has completed with return code 0.
21
damn this was a thing?
!e print(10+11)
@trim belfry :white_check_mark: Your 3.11 eval job has completed with return code 0.
21
!e print(sum(range(1000)))
@trim belfry :white_check_mark: Your 3.11 eval job has completed with return code 0.
499500
!e print(sum(range(101)))
@trim belfry :white_check_mark: Your 3.11 eval job has completed with return code 0.
5050
@echo meadow :white_check_mark: Your 3.10 eval job has completed with return code 0.
Hello World
who can check my code https://github.com/MrShadowDev/Free-SMS
Hey @jaunty pewter!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
SCREEN = pygame.display.set_mode((SCREENWIDTH, SCREENHEIGHT),pygame.FULLSCREEN)
👀
ohh
?
#!/bin/bash
echo "Hello, World!"
pip install your mom
<@&831776746206265384> someone come give us video and moderate us pls
You can ask a mod who is currently in VC, but please don't ping them for that
pls
@queen hatch needs it
don't we use mod mail for that?
no

there is no one in here i would ask them if there were
hi guys
OSError: [Errno 36] File name too long: 'Deadpool.2016.HC.HDRip.XviD.AC3-EVO Deadpool.2016.720p.HC.HDRip.X264.AC3-EVO Deadpool.2016.1080p.HC.HDRip.X264.AC3-EVO Deadpool.2016.TS.Ganool Deadpool.2016.720p.HC.HDRip.X264.AAC-850MB-MAX Deadpool.2016.1080p.HC.HDRip.X264.AAC-1.7GB-MAX Deadpool.2016.HDTS.MKVCage Deadpool.2016.720p.HDRip.KORSUB.x264.AAC2.0-SS Deadpool.2016.HC.720p.HDRiP.900MB-ShAaNiG Deadpool.2016.HC.1080p.HDRiP.1.75GB-ShAaNiG.zip'
@sand viper 👋
yup hello
Can't talk sorry not verified
50 messages right ?
what os do you guys use ?
Gentoo, Windows 11 and Android.
Gentoo is a linux distro ?
yeah
What is the command ?
@trim belfry
releaseName = objlxml.xpath("//li[@class='release']/div/text()")
# if releasename is exist
if len(releaseName):
# normalize release name text
filename = ''.join([x for x in releaseName]).replace('\r', '').replace('\n', '').strip()
filename =
# print usefull info
print('Downloading %s ...' % filename)
how can i change the filename here
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I've heard that linux is just such a amazing os for programmers why is that ?
Terminal ?
Oh thats very cool
I mean I don't have the distro yet
more customizable/configurable. (you can do the same in windows... just more work.)
yes
so easier to customize/configure
you could make windows look like linux if you wanted to
Ooooh ok
just a lot more work
yeah
How can i install one ?
ubuntu for say
I would recommend using a live version first
if you choose to install after that it is pretty much like installing windows... it walks you through it
just need some empty disk space.
Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.
Sure thats way much better
most distros have livecds or livedvds but lets be real you use a usb stick not a cd or dvd
use something like rufus to put it on a usb
yeah, usb drive
they should be iso images
some distros have their own tools for doing it but rufus works well for most distros if you are on windows.
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
total = 0
for i in 'bill':
total += ord(i)
# print (i, "\t", ASCII)```
!e py total = 0 for i in 'bill': total += ord(i) # print (i, "\t", ASCII)
@trim belfry :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e py total = 0 for i in 'bill': total += ord(i) # print (i, "\t", ASCII) print(total)
@trim belfry :white_check_mark: Your 3.11 eval job has completed with return code 0.
419
print ("Please type your name: ", end = "")
string = input()
totAscii = 0
for i in string:
ASCII = ord(i)
totAscii += ord(i)
print (i, "\t", ASCII)
print(totAscii)
!e
print ("Please type your name: ", end = "")
string = input()
totAscii = 0
for i in string:
ASCII = ord(i)
totAscii += ord(i)
print (i, "\t", ASCII)
print(totAscii)
@hollow trench :x: Your 3.11 eval job has completed with return code 1.
001 | Please type your name: Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | EOFError: EOF when reading a line
!e ```py
print ("Please type your name: ", end = "")
string = input()
totAscii = 0
for i in string:
ASCII = ord(i)
totAscii += ord(i)
print (i, "\t", ASCII)
print(totAscii)
@blissful acorn :x: Your 3.11 eval job has completed with return code 1.
001 | Please type your name: Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | EOFError: EOF when reading a line
probably cause it needs input
problem solved.
you can use a string by default
print ("Please type your name: ", end = "")
string = input()
totAscii = 0
for i in string:
ASCII = ord(i)
totAscii += ord(i)
print (i, "\t", ASCII)
print("Your total Acsii value is:", totAscii)
This works for me
the error was because of len function?
!e
print ("Please type your name: ", end = "")
string = input()
totAscii = 0
for i in string:
ASCII = ord(i)
totAscii += ord(i)
print (i, "\t", ASCII)
print("Your total Acsii value is:", totAscii)
@hollow trench :x: Your 3.11 eval job has completed with return code 1.
001 | Please type your name: Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | EOFError: EOF when reading a line
Laptop from 1995: https://en.wikipedia.org/wiki/IBM_ThinkPad_760
90MHz - 166MHz clock speed
8-64MB ram
Is this an example of what you're supposed to implement?
yes
Make a post in the help forum and I'm sure someone will help you: #1035199133436354600
ok
I think someone emulated Windows 95 in the browser
r-chive
wdym?
ty i got it myself
gtg 👋
huh?
guys, can you help me?
@commands.Cog.listener()
async def on_voice_state_update(self, member, before, after):
author = member.id
if not before.channel and after.channel:
t1 = time.time()
tdict[author] = t1
elif before.channel and not after.channel:
t2 = time.time()
voices = (t2-tdict[author])
member1 = {'member_id': author}
while True:
for m in db.balance.log.find(member1):
if voices >=1:
voicem = m['voicem']
voices -=1
voicem +=1
set_min = {"$set": {'voicem': voicem}}
db.balance.log.update_one(member1,set_min)
i have code but that works only 1 time
I can’t do it again later if a person enters and exits, time counted
add loop
can someone help me?
because I don't understand how this code work:
if name == 'main':
x = int(input())
y = int(input())
z = int(input())
n = int(input())
list = []
for i in range(x+1):
for j in range(y+1):
for k in range(z+1):
if i+j+k != n:
list.append([i,j,k])
print(list)
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
!p
print("Hi")
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
@pure turtle :x: Your 3.11 eval job has completed with return code 1.
001 | What is your name? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
@pure turtle :x: Your 3.11 eval job has completed with return code 1.
001 | What is your name? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
@pure turtle :x: Your 3.11 eval job has completed with return code 1.
001 | What is your name? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
@pure turtle :x: Your 3.11 eval job has completed with return code 1.
001 | What is your name? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
@pure turtle :x: Your 3.11 eval job has completed with return code 1.
001 | What is your name? Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
Hey @north cliff!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
ohh no....
anyone im making a program which gives you all the prime numbers of one number in while cycle but i always get this 10 = 2 * 5 * i want get rid of the last star
cislo = int(input("Zadejte celé číslo: "))
delitel = 2
print(f"{cislo} = ", end ="")
while cislo > 1:
if cislo % delitel == 0:
cislo = cislo // delitel
print(delitel)
else:
delitel += 1
its in czech lng srr
Here are all the prime numbers between 1 and 1000
def is_prime(n):
if n == 1:
return False
for x in range(2, n):
if n % x == 0:
return False
else:
return True
def list_primes():
for n in range(1, 1000):
if is_prime(n):
print(n, end=" ", flush=True)
print()
list_primes()
💯
@mellow oak can i get some shoes?
damn...
@bold sky They're having a discussion, please wait until they're done, and ask them privately instead of (whether by purpose or accident) interrupting them
this is a public channel wdym? im just trying to be clued in?
There's something to be said for "reading the room"/context. The "cluing in" can come after the mod (Hemlock) is finished.
test
yo guys i have question
how do you fix this test
it does have the unitest correctly right??
or do i need to add other assert()
ah okay
Hello, I could need some help with a façade pattern prog I am making. is there anyone experienced that can have a look at my code?
hello! i’m just watching guys ^^
Within an exception you can catch mistakes, which we call a handle.
true or false is the answer
how do you make bricks in python to get the result like in the picture#
have the function return an empty string and a '0' (zero) twice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
print('Hii')
Converting to "int" failed for parameter "pep_number".
Why is this channel always closed
huh?
??
Hi
Sup
hello
!e
return aL if aLen >= bLen else bL to return aL if aLen <= bLen else bL
@keen hare :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | return aL if aLen >= bLen else bL to return aL if aLen <= bLen else bL
003 | ^^
004 | SyntaxError: invalid syntax
!e
def minSum(aL, bL):
aLen = 0
for x in aL:
aLen += len(x)
bLen = 0
for x in bL:
bLen += len(x)
return aL if aLen <= bLen else bL
@keen hare :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
a = [[2,3],[1],[1],[3,4,2]]
b = [[2],[2,3,4,4,1],[3,2]]
def minSum(aL, bL):
aLen = 0
for x in aL:
aLen += len(x)
bLen = 0
for x in bL:
bLen += len(x)
return aL if aLen <= bLen
else bL
print(minSum)
@keen hare :white_check_mark: Your 3.11 eval job has completed with return code 0.
<function minSum at 0x7f4221480680>
!e
a = [[2,3],[1],[1],[3,4,2]]
b = [[2],[2,3,4,4,1],[3,2]]
def minSum(aL, bL):
aLen = 0
for x in aL:
aLen += len(x)
bLen = 0
for x in bL:
bLen += len(x)
return aL if aLen <= bLen
else bL
print(minSum)
@keen hare :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 10
002 | return aL if aLen <= bLen
003 | ^^^^^^^^^^^^^^^^^^
004 | SyntaxError: expected 'else' after 'if' expression
!
!e heat=float(input("Please enter the pool temperature in F: "))
pur=input("The purpose for swimming (adult, children, or racing):")
def isSafe(pur,heat):
if pur=="adult" and heat>=83 and heat<87:
return True
elif pur=="children" and heat==90:
print=("The saftey is: True")
elif pur=="racing":
distance=float(input("Please enter the length in M: "))
if distance>5 and heat>=77 and heat <=87.9:
print("The saftey is: True")
elif distance <5 and heat>=77 and heat<=86:
print("The saftey is: True")
else:
print("The saftey is: False")
else:
print("The saftey is: False")
isSafe(pur,heat)
@obtuse knot can you allow me screenshare
Our policy is that we need at least one mod in the channel for someone to get streaming perms, and I'm not currently free to supervise sorry
Hey guys!! Is someone here down to help me learn python a little faster? I'll share my screen and do some very nooby coding and we can just chill and talk 😄
threading
@pliant prairie
Hello, Could someone help me? I have a doubt about numpy, I need insert 5 arrays into the function ARRAY (this function is the numpy). But, it show the error. Bellow fallow the error:
typeError Traceback (most recent call last)
TypeError: only size-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
<ipython-input-11-80125816d1f7> in <module>
60 m = a[i,k]/a[k,k]
61 a[i,:] = a[i,:]-ma[k,:]
---> 62 b[i] = b[i]-mb[k]
63 print(a,b)
64 print("")
ValueError: setting an array element with a sequence.
if not all(k in answer for k in ('answer','correct','order')):
any one help me
Hey @wintry acorn!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
.text
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\slither_main_.py", line 826, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\slither_main_.py", line 86, in process_all
compilations = compile_all(target, **vars(args))
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\crytic_compile\crytic_compile.py", line 637, in compile_all
compilations.append(CryticCompile(target, **kwargs))
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\crytic_compile\crytic_compile.py", line 117, in init
self._compile(**kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\crytic_compile\crytic_compile.py", line 548, in compile
self.platform.compile(self, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\crytic_compile\platform\hardhat.py", line 92, in compile
os.listdir(build_directory), key=lambda x: os.path.getmtime(Path(build_dire
ctory, x))
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'art
ifacts\build-info'
Error in .
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\slither_main.py", line 826, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\slither_main.py", line 86, in process_all
compilations = compile_all(target, **vars(args))
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages
\crytic_compile\crytic_compile.py", line 637, in compile_all
compilations.append(CryticCompile(target, **kwargs))
File
any one help me solve this error
how do you ask a user to input their name and print the name?
I am stuck on the second part
hi all, I have a question
I have a list
list=['nick', 'george', 'kate']
Is it possible to convert it into a dataframe with headers the names of the list ? ('nick' etc.)
probably it's easy but I am a beginner so I struggle a little bit thanks!
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!eval [3] <print("sup")
@heady nova :x: Your 3.11 eval job has completed with return code 1.
001 | sup
002 | Traceback (most recent call last):
003 | File "<string>", line 1, in <module>
004 | TypeError: '<' not supported between instances of 'list' and 'NoneType'
!eval [3] print("sup")
@heady nova :x: Your 3.10 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [3] print("sup")
003 | ^^^^^
004 | SyntaxError: invalid syntax
!eval print("hello")
@heady nova :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello
!eval a = [3, 4, 5, 6, 4, 3, 4, 5, 6, 4, 3, 2, 3, 9]
maxx = max(a)
print("max")
@heady nova :white_check_mark: Your 3.11 eval job has completed with return code 0.
max
!eval a = [3, 4, 4, 4, 5, 3, 2, 1, 5, 6, 7, 8, 5, 3 ,4]
maxx = max(a)
print(maxx)
@heady nova :white_check_mark: Your 3.11 eval job has completed with return code 0.
8
@heady nova :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | input("sup)
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
!eval input("sup")
@heady nova :x: Your 3.10 eval job has completed with return code 1.
001 | supTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!coiceverify
You are not allowed to use that command.
!voiceverify
You are not allowed to use that command.
hi guys what are you doing tonight
trying to figure out how to integrate c code as a python module.
!voiceverify
Hello
you could try googling how to install selenium, likely using pip. If it is installed already then it is more finicky, you must find why it is not being detected, wrong version, wrong search path, wrong python version are common reasons
!eval print("haha")
@fiery yarrow :white_check_mark: Your 3.11 eval job has completed with return code 0.
haha
i need voiuce verification
guys anyone here? need help with python code
!eval print("How Much C would C Would a C++ if a C++++")
@spice pumice :white_check_mark: Your 3.10 eval job has completed with return code 0.
How Much C would C Would a C++ if a C++++
Am looking for a one teammate or two by max so we can learn together and solve ex. From leetcode everyday by choose a specific hour. I just start to attend udacity course for algorithms and data. Anyone interested DM me
hii which dsa course do u follow on udacity
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
ابها الإسلام لنا دينا وجميع الكون لنا وطنا وخلقت الروح لنا نورٌ في جميع الدهر وهمتنا والكون يزول ولا تمحى في الدهر صحائف سوؤنا بنيت في الارض مساجدنا والبيت الاول كعبتنا
advanced stuff
What are you programming?
Cool, do you work as a programmer?
Good luck man
Ah
@dull anvil can u provide a roadmap kind of thing for beginners
@dull anvil I am just starting things
haven't decided , its kind of my first programming language
any good tutors or kind of things
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
okay i will give it a try
bro u got very good coding skills
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | abstract fruit, abstract fruit, abstract fruit
002 | apple, apple, apple
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
no i got more confused yes i have a sql table
empy sql table
okay... and how i will send the data from google sheets too postgresql without paying
an api?
and that google sheets is the answer of googleforms
i cant post the link of the survey?
ok...
soo column, table,shema
but how i connect google sheets with postgresql?
and updated automatically depending on the survey
:S no
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
apple
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
abstract fruit
IF DATAFRAME IS BIG I CAN PULL AND PUSH EASLY
no size but imagen 400x5000
is that start with oje survey and then start the survey over whole year
like one survey and start fill one row soo i can have aroun 1000-4000 person pero year felling 400 undres questions around
the biggest is 3 to 4 or 5 setences
if the usar delete data from the sql?
user
okay i will tried but i will have to always ask to postgresql about the state of that table
for a special column
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
eggs = [4, 5, 6]
print(eggs)
!e
print("hi")
@gentle walrus :white_check_mark: Your 3.11 eval job has completed with return code 0.
hi
!e
print("hi")
@gentle walrus :white_check_mark: Your 3.11 eval job has completed with return code 0.
hi
!e
code
code
can anyone come up with the code name Meow?
yooo
@steady forge :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello {a}
#!pip install -q pyscbwrapper
from matplotlib import pyplot as plt
#Bibliotek som innehåller ett API för att hämta data från Statistiska Centralbyrån
(SCB):
from pyscbwrapper import SCB
scb=SCB("sv")
scb_data['data']
#Du skall skapa funktionens parameterlista:
def generateGraphFile(?, ?, ?...)
#denna funktion skall du skriva koden till.
def generateGraphData(scb, valueIndex, keyIndex):
scbData = []
scbData = scb.get_data()
#Filter out metadata:
scbFetchData = scbData['data']
xData = []
yData = []
for i in range(len(scbFetchData)):
yData.append(float(scbFetchData[i]['values'][valueIndex]))
xData.append(scbFetchData[i]['key'][keyIndex])
return xData, yData
#Alternativ 1: Antal invånare i Sverige mellan 2010 och 2021
scb = SCB('en','BE','BE0101','BE0101C', 'BefArealTathetKon')
scb.set_query(observations=["Population"], year =
["2010","2011","2012","2013","2014","2015","2016","2017","2018", "2019", "2020",
"2021"])
xData, yData = generateGraphData(scb, 0, 0)
generateGraphFile(?, ?, ?,....) #här sker anropet till funktionen som du skriver
färdigt ovan.
@daring kernel :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 'values' is not defined
Hi
df1=pd.read_excel("E:\Microsoft Excel\Databases\cawd_original.xlsx")
df2=pd.read_excel("E:\Microsoft Excel\Databases\mark_revised.xlsx")
for row_num in range(len(df1)):
row_1 = df1.values[row_num]
row_2 = df2.values[row_num]
values = ([(a, b) for a, b in zip(row_1[3:], row_2[3:]) if a != b])
if len(values) != 0:
print(f'{row_1[0]} {row_1[1]} {row_1[2]} ({values[0][0]}){values[0][1]}')```
Can anyone tell me how do i get the column name to be printed with those values as well?
hi
hey
Yo
what does "!e" do?
@lean sentinel execute I presume
Y
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 0
003 | 1 a a
004 | 1 b b
hi @atomic phoenix sorry for having to ping you but as beginner i was eager to know if your a data analyst? (if so from where?)
operator.matmul(a, b)``````py
operator.__matmul__(a, b)```
Return `a @ b`.
New in version 3.5.
you could use yield from and call filter()
@pliant prairie wud?
. . .
hi
i am scraping a website
but i cnat talk becoause i entered today in this server
ok
@visual stirrup can i pls me unrestricted? i would like to share screen
no beautiful soup, but i think i will use selenium because i cant get an h3 tag, it's a dynamic
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i do that but i am newbie
now i am going to learn selenium
oky
will tell how to use selenium
i write you
hi all I am trying to select from a dataframe the names that contain the letters "Nik". I tried this but it's not working can you help me? thanks
import pandas as pd
list=['abcNikolas', 'cdfNiki', 'rtfNiko', 'wetGeorge', 'fghKate']
df_1 = pd.DataFrame(list, columns =['name'])
df_1 = df_1[df_1['name'].str.find('Nik') == 0]
why cant ı speak voice chat channel ?
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voiceverify
!voiceverify
Cheers!
ge
Is this good
!voice
hey
listen
how do I get permission to speak
I want to speeak
I don't know why I can''t speak
I have been here for 3 days
And still they aren't allowing me to speak
what can I do now
can anyone help me
I literally need help
bcz I am stuck
I don't know what to do
Some people say to me that write 50 messages
So, that's exactly what I am doing
How do I code
Anyone can join
I want to code though
We can code together
In this
I have an iPhone 14 Pro Max can I still code ?
This is a coding website
Yeah
Nice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
@buoyant kestrel actually Python
!e
# Initialize variables to track the current and previous numbers in the sequence
current_number = 0
previous_number = 1
# Create an empty list to store the Fibonacci sequence
fibonacci_sequence = []
# Set the number of iterations to generate the sequence
num_iterations = 10
# Iterate through the desired number of iterations
for i in range(num_iterations):
# Add the current number to the list
fibonacci_sequence.append(current_number)
# Calculate the next number in the sequence
next_number = current_number + previous_number
# Update the current and previous numbers for the next iteration
previous_number = current_number
current_number = next_number
# Print the resulting Fibonacci sequence
print(fibonacci_sequence)
@wide aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
@next quail ^ also you, cos you asked
Sup brahseph
Called it
I've had a couple professors say that's what they do
NY
Read the article this morning
No no
Even TEACHERS can't use it
Actually, we should migrate up to VC0 if we're not live coding
@merry ocean And yet my brain is hearing you say it in that racist accent you did
lmao is that my identifier now