#voice-chat-text-0
1 messages Β· Page 584 of 1
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print("apple" < "banana")
print([1, 2, 3] < [1, 2, 4])
print((1, 5) > (1, 2))
print([1, 2] < [1, 2, 0])
print([1, 2] == (1, 2))
print([1, 2] < "abc")
:x: Your 3.14 eval job has completed with return code 1.
001 | True
002 | True
003 | True
004 | True
005 | False
006 | Traceback (most recent call last):
007 | File [35m"/home/main.py"[0m, line [35m6[0m, in [35m<module>[0m
008 | print([1;31m[1, 2] < "abc"[0m)
009 | [1;31m^^^^^^^^^^^^^^[0m
010 | [1;35mTypeError[0m: [35m'<' not supported between instances of 'list' and 'str'[0m
!e
print("aPpple" < "bAnana")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print("apple" < "BAnana")
!e ```py
print((1, 2, 3) < (1, 2, 4))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
As we looked earlier at the starting there was UTF-8. i think it is encoding every character in the same type while comparing and assigning a unicode codepoint to it.
??
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print("Banana" < "appLe")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
or is it comparing ASCII values ??
A complete list of all ASCII codes, characters, symbols and signs included in the 7-bit ASCII table and the extended ASCII table according to the Windows-1252 character set, which is a superset of ISO 8859-1 in terms of printable characters.
!e
print(ord('A'), ord('a'
))```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
65 97
!e
print(ord("z"))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
122
!e
print((1,2,('aa','ab')) < (1,2,('abc', 'a'),4))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print((1,2) < (1,2,-1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e py print((999,) < (1, 2))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print((1,2,('aa','ab'),4) < (1,2,('ab', 'aa'),4))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e ```py
print((999,) < (1, 2))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
i think it is still evaluating based on assigned Unicode code point.
!e ```py
ord(a)
ord(b)
!e
print((10, 11) < (10, 10, 12))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print((10, 11) < (10, 11, 12))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | [31mord[0m[1;31m(999)[0m
004 | [31m~~~[0m[1;31m^^^^^[0m
005 | [1;35mTypeError[0m: [35mord() expected string of length 1, but int found[0m
What about this ?
!e print((1, 0) < (1, 1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print(1<1)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
print(ord(a))
!e
print(ord("a"))
!e
print(ord('a'))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
97
:white_check_mark: Your 3.14 eval job has completed with return code 0.
97
!e ```py
print((1, 2) < (1, 2, -1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print((1,3) < (1,2,-1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print((1,1) < (1,1))
!e
print((1,) < (1,1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
@cerulean roost
Opal's example prove it not about length
we came up with assumption that it has to be short circuit
!e ```py
print((999,) < (1, 999))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
!e
print((1,2) < (1,2,-1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
This one he's talking about.
!e
print((1,2) < (1,2))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
.
!e
print((1,2,) < (1,2,-1))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
div = 1
while number > div:
div *= 10
num = 1
while num < div:
number = number % div
div //= 10
a = number // div
print(f"{number}/{div} --> {a}")```
please roast this program'
Stop bro
i'm begginer is this good
Okay what if we do.
improve myself
!e
print((1, 97,'a') < (1,97,))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
It says lexicographical ordering evaluates based on sort(), sorted() and min(), max() builtin functions of python
!e ```py
class MyInt(int):
def lt(self, obj):
result = super().lt(obj)
print(f"{self} < {obj} ==", result)
return result
class MyTuple(tuple):
def len(self):
result = super().len()
print(f"{self} length is {result}.")
return result
one = MyInt(1)
trip9 = MyInt(999)
a = MyTuple((trip9,))
b = MyTuple((one, trip9))
print(a < b)```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 999 < 1 == False
002 | False
!e ```py
class MyInt(int):
def lt(self, obj):
result = super().lt(obj)
print(f"{self} < {obj} ==", result)
return result
class MyTuple(tuple):
def len(self):
result = super().len()
print(f"{self} length is {result}.")
return result
one = MyInt(1)
trip9 = MyInt(999)
a = MyTuple((trip9,))
b = MyTuple((trip9, trip9))
print(a < b)```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print((3,3) < (3,3,0))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
!e
print((3,3,0) < (3,3,0))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
False
It uses NFA to circuit out of the comparison.
non deterministic finite automata
Theory of computation.
All regular expressions uses that.
See: __lt__, __gt__ , __len__ et al.
what are we talking about?
I wish I could explain but it will talk much longer time to explain
try me
Type sequencing comparison.
okay? so sorting by ascii or UTF-8 codes?
Yep
!if-name-main
This is a convention for code that should run if the file is the main file of your program:
def main():
...
if __name__ == "__main__":
main()
If the file is run directly, then the main() function will be run. If the file is imported, it will not run.
For more about why you would do this and how it works, see if __name__ == "__main__".
but what's the question?
python -m pip install pipenv
are we still discussing 5.8. Comparing Sequences and Other Types
Nah, we are on modules
what, chapter
from fibo import fib, fib2
ohh
!e py import math print(math.dist)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
<built-in function dist>
So import brings the whole module
!e py from math import dist print(dist)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
<built-in function dist>
from .... import .... gets specific thing of a module.
Hey everyone π
Iβm into tactical games, late-night chats, music, memes, and meeting cool people from around the world. Always down for gaming, VC, and making new friends on Discord π
If youβre chill, funny, and active, send me a message β letβs vibe and build a fun community together!
!e
from fibo import fib, fib2
fib(10)
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | from fibo import fib, fib2
004 | [1;35mModuleNotFoundError[0m: [35mNo module named 'fibo'[0m
!e
from os import *
system("lsb_release -a")
!e py from math import dist as fuck print(fuck)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
<built-in function dist>
from fibo import fib, fib2
# Fibonacci numbers module
def fib(n):
"""Write Fibonacci series up to n."""
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()
def fib2(n):
"""Return Fibonacci series up to n."""
result = []
a, b = 0, 1
while a < n:
result.append(a)
a, b = b, a+b
return result
what's AAU?
uni
ah okay congrats
University of Alborg
congrats brother
Question what if i create my own module ?
Welcome @versed lichen
yup
thnks
bye π @candid spire
It depends actually where you want to run your python from.
It'' help when you work around with Virtual environments.
Yup.
It does'nt create conflicts with the base python.
imagine it like a keepsafe virtual environment.
where you don't mix up multiple packages.
@jovial surge π
@stray pewter π±οΈ π±οΈ π±οΈ π±οΈ π±οΈ
@tacit patio π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
btw how is the day going
chinook πͺ
!e
print(sys.path)
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | print([1;31msys[0m.path)
004 | [1;31m^^^[0m
005 | [1;35mNameError[0m: [35mname 'sys' is not defined. Did you forget to import 'sys'?[0m
!e
import sys
print(sys.path)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
['/home', '/snekbin/python/3.14/lib/python314.zip', '/snekbin/python/3.14/lib/python3.14', '/snekbin/python/3.14/lib/python3.14/lib-dynload', '/snekbox/user_base/lib/python3.14/site-packages', '/snekbin/python/3.14/lib/python3.14/site-packages']
!e
import sys
print(sys)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
<module 'sys' (built-in)>
!e
import sys
print(dir(sys))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
['__breakpointhook__', '__displayhook__', '__doc__', '__excepthook__', '__interactivehook__', '__loader__', '__name__', '__package__', '__spec__', '__stderr__', '__stdin__', '__stdout__', '__unraisablehook__', '_base_executable', '_baserepl', '_clear_internal_caches', '_clear_type_cache', '_clear_type_descriptors', '_current_exceptions', '_current_frames', '_debugmallocstats', '_dump_tracelets', '_framework', '_get_cpu_count_config', '_getframe', '_getframemodulename', '_git', '_home', '_is_gil_enabled', '_is_immortal', '_is_interned', '_jit', '_setprofileallthreads', '_settraceallthreads', '_stdlib_dir', '_xoptions', 'abiflags', 'activate_stack_trampoline', 'addaudithook', 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix', 'breakpointhook', 'builtin_module_names', 'byteorder', 'call_tracing', 'copyright', 'deactivate_stack_trampoline', 'displayhook', 'dont_write_bytecode', 'exc_info', 'excepthook', 'exception', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info'
... (truncated - too long)
Full output: https://paste.pythondiscord.com/YQOOWVIAVINA4HHFMPOEYDBDZA
!e
import builtins
print(dir(builtins))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BaseExceptionGroup', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EncodingWarning', 'EnvironmentError', 'Exception', 'ExceptionGroup', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'PythonFinalizationError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning
... (truncated - too long)
Full output: https://paste.pythondiscord.com/EM6BF3GJ5ZYJLNRL5SSKFFXKNQ
!e
import sys
print(dir(sys))
:white_check_mark: Your 3.14 JIT-compilation enabled eval job has completed with return code 0.
['__breakpointhook__', '__displayhook__', '__doc__', '__excepthook__', '__interactivehook__', '__loader__', '__name__', '__package__', '__spec__', '__stderr__', '__stdin__', '__stdout__', '__unraisablehook__', '_base_executable', '_baserepl', '_clear_internal_caches', '_clear_type_cache', '_clear_type_descriptors', '_current_exceptions', '_current_frames', '_debugmallocstats', '_dump_tracelets', '_framework', '_get_cpu_count_config', '_getframe', '_getframemodulename', '_git', '_home', '_is_gil_enabled', '_is_immortal', '_is_interned', '_jit', '_setprofileallthreads', '_settraceallthreads', '_stdlib_dir', '_xoptions', 'abiflags', 'activate_stack_trampoline', 'addaudithook', 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix', 'breakpointhook', 'builtin_module_names', 'byteorder', 'call_tracing', 'copyright', 'deactivate_stack_trampoline', 'displayhook', 'dont_write_bytecode', 'exc_info', 'excepthook', 'exception', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info'
... (truncated - too long)
Full output: https://paste.pythondiscord.com/ZGWHDTSUVXM7EVL7SD45YIL7LM
The eastern spinebill (Acanthorhynchus tenuirostris) is a species of honeyeater found in south-eastern Australia in forest and woodland areas, as well as gardens in urban areas of Canberra, Sydney, Melbourne, Adelaide and Hobart. It is around 15 cm long, and has a distinctive black, white and chestnut plumage, a red eye, and a long downcurved bi...
try:
<somecode>
except:
print("a error has occured in the try block")
if the code in try throws an error/exception, the except code runs, if no error occurs in the try section then the except section does not run
you can except Exception as e: which gives you access in basic terms to a object of the error thrown above in the try section, for example what the error was and how it was
!e ```py
print("Hello.")
try:
print(1 / 2)
except ZeroDivisionError:
print("ZDE caught")
print("Goodbye.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello.
002 | 0.5
003 | Goodbye.
!e ```py
print("Hello.")
try:
print(1 / 0)
except ZeroDivisionError:
print("ZDE caught")
print("Goodbye.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello.
002 | ZDE caught
003 | Goodbye.
!e
Κ€,Κ£=1.79175946923,1.94591014906;print(str(round(2.718281828 ** Κ€))+str(round(2.718281828 ** Κ£)))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
67
!e py try: 1 / 0 except ZeroDivisionError: print("ZeroDivisionError caught.") except IndexError: print("IndexError caught.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
ZeroDivisionError caught.
!e py try: "abc"[999] except ZeroDivisionError: print("ZeroDivisionError caught.") except IndexError: print("IndexError caught.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
IndexError caught.
!e py try: "abc"[999] except (ZeroDivisionError, IndexError): print("ZeroDivisionError or IndexError caught.") except KeyError: print("KeyError caught")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
ZeroDivisionError or IndexError caught.
!e py try: 1 / 0 except (ZeroDivisionError, IndexError): print("ZeroDivisionError or IndexError caught.") except KeyError: print("KeyError caught")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
ZeroDivisionError or IndexError caught.
!e py try: {"abc": 123}["no such key"] except (ZeroDivisionError, IndexError): print("ZeroDivisionError or IndexError caught.") except KeyError: print("KeyError caught")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
KeyError caught
brb
!e py print("Hello.") try: pass except ZeroDivisionError: print("ZeroDivisionError caught.") else: print("No except block run.") print("Goodbye.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello.
002 | No except block run.
003 | Goodbye.
!e py print("Hello.") try: 1 / 0 except ZeroDivisionError: print("ZeroDivisionError caught.") else: print("No except block run.") print("Goodbye.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello.
002 | ZeroDivisionError caught.
003 | Goodbye.
!e ```py
def func():
try:
return "abc"
finally:
print("Finally.")
print(func())```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Finally.
002 | abc
!e
_O,_o,_OO,_Oo,_oO=(lambda O:lambda _:_),(lambda O:lambda _:lambda o:_(O(_)(o))),(lambda O,_O:lambda _:lambda o:O(_)(_O(_)(o))),(lambda O,_O:lambda _:lambda o:O(_O(_))(o)),(lambda O,_O:_O(O))
_oo=_OO(_oO(_o(_o(_O)),_Oo(_o(_o(_O)),_o(_o(_o(_O))))),_o(_o(_o(_O))));_=_oo(lambda _O:_O-~(False*False))(False*False)
getattr(__import__(str().join([bytes.__name__[False],tuple.__name__[True],int.__name__[False],list.__name__[False],tuple.__name__[False],int.__name__[False],int.__name__[True],str.__name__[False]])),str().join([property.__name__[False],reversed.__name__[False],int.__name__[False],int.__name__[True],tuple.__name__[False]]))(_)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
67
!e
l,O=(lambda O_O: (not O_O, not not O_O))(tuple())
O0,OO,O0O,OO0,O00,OOO=l<<l,l<<l<<l,l<<l<<l<<l,l<<l<<l<<l<<l,l<<l<<l<<l<<l<<l,l<<l<<l<<l<<l<<l<<l
l0=lambda x:int(str(sum([OOO,O00,x,O,O,O])-(O*OOO))[O:])
_=lambda __:type('O0O',(),{'__':(lambda O0,OO:O0.join(OO))(str(O)*O,map(chr,__))}).__
__=_([l0(O0),l0(OO0+OO+l),l0(O0O+l),l0(O0O+OO),l0(OO0+OO),l0(O0O+l),l0(O0O+OO+O0),l0(OO0+O0+l)])
___=_([l0(OO0),l0(OO0+O0),l0(O0O+l),l0(O0O+OO+O0),l0(OO0+OO)])
____=getattr([_0 for _0 in map(__import__,[__])][O],___)
_____=type('O0',(object,),{'_':lambda self,O0O:(lambda OOO0:____(OOO0))(O0O)})()
______=type('______',(object,),{'__lshift__':lambda self,other:other._(OOO+O0+l)})()
type('O_O',(),{'__':______<<_____})
:white_check_mark: Your 3.14 eval job has completed with return code 0.
67
!e ```py
name = 'discord'
name = True
try:
print("hello" + name)
except Exception as e:
print(f"an error has occurred: {e}")
finally:
print("Execution complete.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | an error has occurred: can only concatenate str (not "bool") to str
002 | Execution complete.
@clear bluff π
hello
Hi does anyone know how to get to general?
Please define general.
still muted, but i'm just gonna chill and ponder in vc lol
There are three off-topic channels:
Use any of the three, it doesn't matter.
The channel names change every night at midnight UTC and are often fun meta references to jokes or conversations that happened on the server.
See our off-topic etiquette page for more guidance on how the channels should be used.
There is also #python-discussion for Python-related talk.
yah man
!e ```py
name = 'discord'
name = True
try:
print(name)
except Exception:
traceback.print_exc()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
True
oof im doing a boot camp atm
There was an old woman who lived in a shoe.
She had so many children, she didn't know what to do.
She gave them some broth without any bread;
Then whipped them all soundly and put them to bed.```
were ur print("") lol
jk
i love how fun it is to learn python
this boot camp is class
It has its moments. π
the lueage of legend anti cheat is rubbish
especially with that launcher @vagrant pumice
i knowhow u feel tho
most of those are servers tho bad servers and bank terminals @full dagger
hi
im learin python
@brisk bridge u have C ++ tag must be Professional in C++
not really
!code
@shadow stirrup
@celest bane π
help me understand, why in docs in chapter 6.1 expressions but for Kai its more on modules
?
idk why but I fdound the correct page
its difficult to navigate through docs when you are new
Hello pal
failed, gotta be more active π
@rotund cairn π
Hello
Doing good in my life
I am from india
Whats your age
I am 13 lol
Ye
I am good in python programming
Thats why I joined here
Btw
Wait the attachment is loading
Nice singer
You play roblox
My internet's kinda weak
See this
Yoo bro
Just a few moments away to show you my stuff
Dine
I mean done
See this
rk5
pack a punched rk5
mustang and sally
galvaknuckles
Ah. Muramasa.
muramasa from terraria
@cerulean roost I could deflect a knife with my forehead no lie
ur a bjj red belt right
Hello π
hi welcome to the discussion
What are we discussing about ?
krav maga vs bjj
@obtuse egret π
I think Opal needs to put a disclaimer. π Same Questions again and again.
@somber heath so... how long have u been programming
imma guess and say 10 years or so for Python...?
!e
import builtins
print(dir(builtins))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BaseExceptionGroup', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EncodingWarning', 'EnvironmentError', 'Exception', 'ExceptionGroup', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'PythonFinalizationError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning
... (truncated - too long)
Full output: https://paste.pythondiscord.com/XSGDGKTRCJUVZ54G5PE2D43CZY
!e
import sys
print(dir(sys))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
['__breakpointhook__', '__displayhook__', '__doc__', '__excepthook__', '__interactivehook__', '__loader__', '__name__', '__package__', '__spec__', '__stderr__', '__stdin__', '__stdout__', '__unraisablehook__', '_base_executable', '_baserepl', '_clear_internal_caches', '_clear_type_cache', '_clear_type_descriptors', '_current_exceptions', '_current_frames', '_debugmallocstats', '_dump_tracelets', '_framework', '_get_cpu_count_config', '_getframe', '_getframemodulename', '_git', '_home', '_is_gil_enabled', '_is_immortal', '_is_interned', '_jit', '_setprofileallthreads', '_settraceallthreads', '_stdlib_dir', '_xoptions', 'abiflags', 'activate_stack_trampoline', 'addaudithook', 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix', 'breakpointhook', 'builtin_module_names', 'byteorder', 'call_tracing', 'copyright', 'deactivate_stack_trampoline', 'displayhook', 'dont_write_bytecode', 'exc_info', 'excepthook', 'exception', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info'
... (truncated - too long)
Full output: https://paste.pythondiscord.com/JSNMG3LPWAWP7QJ2QAQ3FLU6GM
!e ```py
class Foo:
def init(self):
print("Hello, world.")
Foo()```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, world.
!e ```py
class Foo:
def init(self, value):
print(value)
Foo("Hello, world.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, world.
!e ```py
class Foo:
def bar(self):
print("Hello, world.")
baz = Foo()
baz.bar()```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, world.
!e ```py
class Foo:
def set(self, value):
self.value = value
def get(self):
return self.value
baz = Foo()
baz.set(123)
print(baz.get())```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
123
!e
class Sum:
def __init__(self, a, b):
print(a+b)
Sum(3,5)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
8
!e ```py
class Person:
def init(self, name, age):
self.name = name
self.age = age
def greet(self):
print(f"Hello, my name is {self.name} and I am {self.age} years old.")
sally = Person("Sally", 19)
peter = Person("Peter", 16)
peter.greet()
sally.greet()```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello, my name is Peter and I am 16 years old.
002 | Hello, my name is Sally and I am 19 years old.
@undone frost Where you from ?
@smoky flicker π
Oh.
hi @somber heath
._.
Ahh, Yeah.
but you cannot get π there.
But it's bad here for the delivery guys.
Lol. Yeah, people don't accept money here. they prefer to earn unless they lazy.
π
Kurtas.
They are great.
Sherwani's are fancy.
Yup. I get it.
@wintry prawn π
hello
lol
Did you teach him some moves from kungfu panda ?
Was he the dragon warrior ?
It's a very diverse country.
Imagine each state having their own small hollywood shit going on with their own laguage.
Yeah they use funny names. in Dub version and it's even funny.
hahaha yeah
Drums of liberations hahaha
Yeah, weddings are like a family festival here. Everybody's excited.
was liquor involved ?
haha yeah. peeps go nutz here
Yup.
Fireworks
They dgaf
XD
It's an auspicious time of ther year for most of the people.
a little off accent but good try.
Yo
Everybody in one piece is dying. but the one piece won't end.
I caught up but im talking about IRL.
The voice actors
just wait until every character has been replaced
Yoo guys wassup
Ahh, the remake. Idts it'll be good enough.
How are you all ?
https://youtu.be/-lLbMfutZnA?si=R5j1pWywvJKo3gBe They're magicians and Penny, the Indian dude, has entered his friend, Quentin's, mind, where Penny meets a manifestation of himself.
The Magicians (S1/E4) The World in the Walls - Penny Enters Quentin's Nightmare Scene : Penny (Arjun Gupta) interrupts Quentin's (Jason Ralph) nightmare.
BUY THE SERIES: https://www.vudu.com/content/browse/details/The-Magicians-Season-1/733310?cmp=Movieclips_YT_Description
Watch the best The Magicians scenes: https://www.youtube.com/playlist?li...
How are you all guys
@floral pulsar π
@half pebble π
heyy
@half pebble yooo
my laptop so old i cant even connect to vc i can get my phone
butttt the verification
what you guys talking about?
kk
maybe try linux
Remember me
too much troublee
I use windows 11
How are you doing
I play blox fruits , game related to one piece
same
blox fruit that gave me alot of memories
Amazing bro
what abt u
i started at 13 on and off
and got confused
and stopped completely
and even last year
but i got my focus back yesterday
Sry, was on a call.
Yo
Kuma's Back story is
Yeah, i'll just sob in a corner for G merry.
i'm just trying to divert.
You see the 1st episode @undone frost ?
Yeah
how old are u
one piece π
If you see it again you'll know things which Oda Foreshadowed
My achievement
skypiea
it foreshadow the whole story
I mean the skypiea Dance was the dance of Joyboy.
@undone frost did you see my attachment
there is many other things
Yeah but i'm trying to avoid it. for now.
lol
meow
@undone frost did you see my attachment
@nova ruin π
Hello
Ya?
Ik
Thx
I am fewer than 3 days
!d help
help()``````py
help(request)```
Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.
Note that if a slash(/) appears in the parameter list of a function when invoking `help()`, it means that the parameters prior to the slash are positional-only. For more info, see [the FAQ entry on positional-only parameters](https://docs.python.org/3/faq/programming.html#faq-positional-only-arguments).
This function is added to the built-in namespace by the [`site`](https://docs.python.org/3/library/site.html#module-site) module.
!e print(help.doc)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Define the builtin 'help'.
002 |
003 | This is a wrapper around pydoc.help that provides a helpful message
004 | when 'help' is typed at the Python interactive prompt.
005 |
006 | Calling help() at the Python prompt starts an interactive help session.
007 | Calling help(thing) prints help for the python object 'thing'.
For the bot commands
!e ```
import _sitebuiltins
help = _sitebuiltins._Helper
help(int)
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m3[0m, in [35m<module>[0m
003 | [31mhelp[0m[1;31m(int)[0m
004 | [31m~~~~[0m[1;31m^^^^^[0m
005 | [1;35mTypeError[0m: [35m_Helper() takes no arguments[0m
it takes no argument..
!e ```
import _sitebuiltins
help = _sitebuiltins._Helper
help()(int)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Help on class int in module builtins:
002 |
003 | class int(object)
004 | | int([x]) -> integer
005 | | int(x, base=10) -> integer
006 | |
007 | | Convert a number or string to an integer, or return 0 if no arguments
008 | | are given. If x is a number, return x.__int__(). For floating-point
009 | | numbers, this truncates towards zero.
010 | |
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/JUO36WDNOAQ76IMFEZD66XWETA
!e ```py
class Foo:
def call(self, value):
print(value)
bar = Foo()
bar("Hello, world.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, world.
@real yew π
!e ```py
class Foo:
def call(self, value):
print(value)
Foo()("Hello, world.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, world.
!e ```py
class Foo:
pass
Foo()()```
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m4[0m, in [35m<module>[0m
003 | [31mFoo()[0m[1;31m()[0m
004 | [31m~~~~~[0m[1;31m^^[0m
005 | [1;35mTypeError[0m: [35m'Foo' object is not callable[0m
you can make something callable by adding a _call_ attr
Hello again
woof
@velvet jewel π
Brb
context?
@velvet jewel kindly no n word
wait my internet is doing somehting weird...
was 'packing' us for being skids apparently and every third word was n
i see
@sudden spruce π
It's pretty quite.
yeah
I've not been enough active in this channel
Actually I left
the channel
Due to some
reason
exam
and now I'm back
anyways
I had a question
Do u guys know about webscraping
That where is his silver surfer
A bit.
i killed him
I've a bigger version of them both @somber heath
for selenium -> playwright/httpx , for beutifulsoup -> selectolax
but my question is
It's too difficult
yk
@wind raptor
hey
btw, are u guys like
university students?
yeah
i agree
Hi hi
Hello π
Hi
"My food source is back!"
It's giving CPR π
massaging after a long day of work
My bros
btw, my question was, how do we scrape data in a structured way, since its too dificil to do
As website structure is so unique, and changing in days
so, it's pretty hard for me to gather every data in a unique format
Bye guys
I walk
Small steps compound
e!```number = int(input("enter any number to reverse number:- "))
value = number
#convert divisible *10
div = 1
while div * 10 < value:
div *= 10
#this loop decrease the div by // 10
count = 0
while 0 < div:
a = (number % 10) * div
print(f"{a}")
count += a
number //= 10
div //= 10
print(f"\n{count}")```
roast this
the python interpreter bot doesnt sujpport inputs
!e
meh
print(input())
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | meh
004 | [1;35mNameError[0m: [35mname 'meh' is not defined[0m
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | print([31minput[0m[1;31m()[0m)
004 | [31m~~~~~[0m[1;31m^^[0m
005 | [1;35mEOFError[0m: [35mEOF when reading a line[0m
it said EOF
!e```number = 123456789
value = number
#convert divisible *10
div = 1
while div * 10 < value:
div *= 10
#this loop decrease the div by // 10
count = 0
while 0 < div:
a = (number % 10) * div
print(f"{a}")
count += a
number //= 10
div //= 10
print(f"\n{count}")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 900000000
002 | 80000000
003 | 7000000
004 | 600000
005 | 50000
006 | 4000
007 | 300
008 | 20
009 | 1
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/3DLQPL6EUDWRXJ5ZFEQNWQAO54
!e```number = 543
value = number
#convert divisible *10
div = 1
while div * 10 < value:
div *= 10
#this loop decrease the div by // 10
count = 0
while 0 < div:
a = (number % 10) * div
print(f"{a}")
count += a
number //= 10
div //= 10
print(f"\n{count}")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 300
002 | 40
003 | 5
004 |
005 | 345
@mighty flume sorry about the whole Krav Maga vs BJJ topic !
!e
async def a():...
print(type(a()))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | /home/main.py:2: RuntimeWarning: coroutine 'a' was never awaited
002 | print(type(a()))
003 | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
004 | <class 'coroutine'>
hii sir
sorry i didnt hear, im having network issues dam
@cerulean roost
i didnt hear most of the thing you probably said lol
import vocal, discord
user = discord.user('this.user')
user.say.language("pythonese").use
@cerulean roost
@candid spire
import discord
vc_users = discord.vc('this.vc').getUsers()
me = discord.user('this.user')
for user in vc_users:
me.sayAt(user).say('hello')
import discord
for user in Voice.VoiceChat("Voice Chat 0"):
print(f"hello there! {user}")
!e
import discord
vc_users = discord.vc('this.vc').getUsers()
me = discord.user('this.user')
for user in vc_users:
me.sayAt(user).say('hello')
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | import discord
004 | [1;35mModuleNotFoundError[0m: [35mNo module named 'discord'[0m
@somber field
!e
import numpy as np
# 1D array
a = np.array([1, 2, 3])
# 2D array (matrix)
b = np.array([[1, 2], [3, 4]])
# Zeros, ones, identity
zeros = np.zeros((2, 3))
ones = np.ones((3, 3))
identity = np.eye(3)
:warning: Your 3.14 eval job has completed with return code 0.
[No output]
!e
import sys
for path in sys.path:
print(path)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | /home
002 | /snekbin/python/3.14/lib/python314.zip
003 | /snekbin/python/3.14/lib/python3.14
004 | /snekbin/python/3.14/lib/python3.14/lib-dynload
005 | /snekbox/user_base/lib/python3.14/site-packages
006 | /snekbin/python/3.14/lib/python3.14/site-packages
export PYTHONPATH=/home/user/mylibs
i dont think thats a valid python code
It's not python code
but ur running it as python...
My bad
.
.
Python script is module
Directory containing script is library
.
.
export PYTHONPATH=/home/user/mylibs
!!
@candid spire
Gtg now
Hi @blissful spindle
#voice-verification
@candid bluff
sorry can't talk yet
It's okay
yeah
i am
yeah just never did much with this Server
yeah
Canada
nm
nothing
@tidal wedge
See ya tom! @rough tapir π π
Hay
where is
the voice verification
You are not currently eligible to use voice inside Python Discord for the following reasons:
You have been on the server for fewer than 3 days.
You have not been active enough on the server yet.
π
and I cant share what I'm doing...
because right now I'm fixing the docker compose data
hello bye?!
@ivory copper π
dont worry... I found this server today
because my main framework its rails, however I need to learn and have something with python
and I always use this kind of project: react/vite frontend and having the same connection and results using different backends/frameworks
π
understand?
its fun
like, okay, its running with react but for the backend... I want to use rails only api
hummm now lets change to django
and now changes to irails
and should have the same result in frontend
I dont think that I need to know about everything...
anyone should know everything...
but I'm trying to get a job and they mentioned python and nodejs
for the frontend I like to use rails, react or nextjs
elixir?!
these frameworks that I mentioned, in my opinion of course, have community, positions to apply and always upgrading
sorry for my english, I'm a brazillian
trying to find a job rsrsrsrsrsrsrsrsrs
Do you know this package? irails?
if i have permission I share the project now
I'll record now and share there.. its okay?
Okay check the rules, because I need to understand if will be a problem
I'm not a youtuber
hahhaa
I'll record a loom video and post there...
just a second...
I finished...
I'll update the post...
Right now I'm learning about python with different frameworks like django and irails... because need to get a job
Do you know about crewai?!
I need to wait 19 minutes to upload my video on youtube...
The title in video its wrong, should be iRails
I dont have permission to speak yet
π
I'm building a x clone with iRails
irails = fastapi but with a lot of packages
@eternal socket π
hello
i finally figured out how to remove static from obs
finished coding a greeter for c64 in assembly
Hello π
Good.
HBU ?
Then you must call Opal
Yup.
You're in IO section.
Yeah, using the 'f' string.
can anyone help me
with web scraping
data structure
like, I can't pull a structured data from a known or big website
there data is messy
!e
s = ' spacious '.lstrip()
print(s)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
spacious
could use strip()
that's better
https://docs.python.org/3/tutorial/inputoutput.html @waxen veldt
what is this
Bro i cannot speak what u sayin
Yeah
and .3f means the decimal you want to allow
!e
import math
print('The value of pi is approximately %6.4f.' % math.pi)
https://docs.python.org/3/tutorial/inputoutput.html @marble rock
:white_check_mark: Your 3.14 eval job has completed with return code 0.
The value of pi is approximately 3.1416.
Can't speak in the channel yet
Yeah
@marble rock
Lemme resolve quick
Yeah
@weak garden π
I've not been active in the server,my bad!
Nobody uses it unless they working with something specific
Β» args-kwargs
Β» async-await
Β» beginner
Β» blocking
Β» botvar
Β» class
Β» classmethod
Β» codeblock
Β» comparison
Β» contribute
Β» customchecks
Β» customcooldown
Β» customhelp
Β» dashmpip
yes
import math
print('The value of pi is approximately %6.4f.' % math.pi)
!e
s = ' spacious '.lstrip()
print(s)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
spacious
!e
a="helloworld"
print(a.upper())
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | [1;31mPrint[0m(a.upper())
004 | [1;31m^^^^^[0m
005 | [1;35mNameError[0m: [35mname 'Print' is not defined. Did you mean: 'print'?[0m
!e
for x in range(1, 11):
print('{0:2d} {1:3d} {2:4d}'.format(x, xx, xx*x))
!e
for x in range(1, 11):
print('{0:2d} {1:3d} {2:4d}'.format(x, xx, xx*x))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 1 1 1
002 | 2 4 8
003 | 3 9 27
004 | 4 16 64
005 | 5 25 125
006 | 6 36 216
007 | 7 49 343
008 | 8 64 512
009 | 9 81 729
010 | 10 100 1000
!e
s = 'Hello, world.'
str(s)
repr(s)
str(1/7)
x = 10 * 3.25
y = 200 * 200
s = 'The value of x is ' + repr(x) + ', and y is ' + repr(y) + '...'
print(s)
The repr() of a string adds string quotes and backslashes:
hello = 'hello, world\n'
hellos = repr(hello)
print(hellos)
The argument to repr() may be any Python object:
repr((x, y, ('spam', 'eggs')))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | The value of x is 32.5, and y is 40000...
002 | 'hello, world\n'
Hi
what are the metrics to become more active on the server?
Yoo
@dense path 1 sec Iβm on the phone
@cerulean roost https://coffeebyte.dev
@crude nova
@m
!e >>> py
print("Hello World")
:x: Your 3.14 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m1[0m
002 | [1;31m>>[0m> py
003 | [1;31m^^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax[0m
`
:warning: Your 3.14 eval job has completed with return code 0.
[No output]
!e
import sys
for path in sys.path:
print(path)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | /home
002 | /snekbin/python/3.14/lib/python314.zip
003 | /snekbin/python/3.14/lib/python3.14
004 | /snekbin/python/3.14/lib/python3.14/lib-dynload
005 | /snekbox/user_base/lib/python3.14/site-packages
006 | /snekbin/python/3.14/lib/python3.14/site-packages
!e
code
import sys
for path in sys.path:
print(path)
!e
import sys
for path in sys.path:
print(path)
print("Hello World")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | /home
002 | /snekbin/python/3.14/lib/python314.zip
003 | /snekbin/python/3.14/lib/python3.14
004 | /snekbin/python/3.14/lib/python3.14/lib-dynload
005 | /snekbox/user_base/lib/python3.14/site-packages
006 | /snekbin/python/3.14/lib/python3.14/site-packages
!e
import sys
for path in sys.path:
print(path)
print("Hello World")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | /home
002 | /snekbin/python/3.14/lib/python314.zip
003 | /snekbin/python/3.14/lib/python3.14
004 | /snekbin/python/3.14/lib/python3.14/lib-dynload
005 | /snekbox/user_base/lib/python3.14/site-packages
006 | /snekbin/python/3.14/lib/python3.14/site-packages
007 | Hello World
How delicious
@mighty flume MC7X4ABA
Model number
Contribute to Viruliant/SpaghettC development by creating an account on GitHub.
ex_client.py line 79
cfg1 = vg_io.cfg.inline_set(CFG_groq_gpt20b, some_key_path)```
hi
@peak siren can i get streaming permission
@wind raptor can i get streaming permissoin
ll
Hi
Where r the VCs I can't see any active ones
@fiery forge yo
yes
wat
hi
uuuh
@whole rover join the voice you voice person
crazy shit
It shouldn't
i will join voice but dont have any mic or speakers muahaha
or turn on mic playback
oops
nada
i thought you wanted to repeat stuff
My mic's just off π
shall i turn on my mic with an about 50 50 chance of your ears getting cancer because of windows not liking it?
you hear sth?
YES
lmao
Made by Joe Capo on YouTube.com. I have very few oats brother. Sorry brother, but I must consume these oats. Kek. Bonus video: https://www.youtube.com/watch?...
dentist appointment in the morning 
yeah
yes
mhm
yes
L7C1
moon base
It's simple enough
yeah
microsoft
'country'
and FUCKING WINDOWS IS NOT ACCEPTING IT

yes but wouldnt u expect microsoft shit to work with other microsoft shit?
awwww
ha expecting stuff to work with other stuff when both are using a world wide standard good joke...
awwww
Multiple Boxes
Remember Filebox, the cloud storage site Bulldog gang member Billy Johnson was using to store his files? Well, it seems he's not the only gang member to store his secret files there.
As we know it's vulnerable we want to look at other ways to find the gangs files. We think files can be exposed with directory traversal and there are some two levels up from the account page. See if you can get access to them.
Tip: Find the file to get the flag.
if this linux kernel build i have been preparing for the last 3 hours fails .........
http://www.easy-filebox.com/u/2374682/account/files
two levels up from the account page
http://www.easy-filebox.com/u/2374682/account/../..
http://www.easy-filebox.com/u/2374682/account/..%2F..
http://www.easy-filebox.com/u/2374682/?
hmm
http://www.easy-filebox.com?
how peculiar
like
no
I'll just
google it
sec
yeah
yup
right
same
have you tried
http://www.easy-filebox.com/u/2374682/account/files/../../../
rip
so
http://www.easy-filebox.com/u/2374682/account/files/..%2F..%2F..%2F?
!airhorn
!airhorn
!wtc
oh dear
!help
Music
!stop Makes me stop playing music
!add name_of_the_music Adds a new song in the queue
!next Makes me jump to the next song in the queue
!join Makes me join your current voice channel
!playlist Shows the songs in the playlist
!play Makes me play the next song in the queue
!leave Makes me leave my current voice channel
brb
!stan moo
they are everywhere
!cow
!ban @glossy umbra hi
:ok_hand: banned Mee6#4876 (hi)
oooohhh
xD
BURN IT
we gucci now gary?
!help
:ok_hand: kicked AIRHORN SOLUTIONS#6723
:P
!kick @whole rover
!airhorn
kek
!kick @whole rover
:no_entry_sign: cannot execute that action on yourself
wtf
thank you for noticing
shady
stop
you took the joke too far
rowboat could be rowsubmarine
shady, you on gnome?

