#off-topic-lounge-text
1 messages Β· Page 5 of 1
"\""
Oh right yeah, + is greedy.
Which means it consumes as much input as possible.
I am so confusedπ³
So the earlier "s are captured by the .*
Sorry btw, I meant * not +, although + is also greedy.
Yep
Need a hint? π
You might need another group in your expression.
Alright, how would you match either of:
- anything except
"or\ \"
Just once
Then figure out how to fit that into the larger regex.
[] only ever matches a single character.
You might be able to do that with a look-ahead, although I'm not sure.
But here's "not quote or backslash": [^\"\\]
You'd only be cheating yourself 
Yeah I've never really figured out how look-behinds work exactly.
Essentially python string literals.
Let's take a step back. You need to match ", followed by zero of more X, followed by ", where X is either:
\"
- anything except
"
"hello \\" world"
hmm
Oh yeah 
It is still a regular language, but you'll need to determine whether there are an odd or even number of \
So to add one more case to this:
\\
[^\\](\\\\)*\\"
and this would be anything except " or \
only matches odd number of backslashes before "
Imagine writing this out without r" π
Here's what I have for single-quoted strings: ```
'(\'|\\|[^'\])*'
Sorry it should have a ' at the start and end 
Nono
You're missing the opening and closing single quotes.
Idk why it's removing them when you paste it.
Erm, not sure, but you can always just take group 0 (the whole match).
You can also use non-capturing groups, but they have an ugly syntax.
Yeah, non-capturing group.

Wellll, we haven't included other escape sequences.
Uhhh
My intuition says it's regular.
Ah ok
'(\\'|\\\\|\\.|[^'\\])*'
```?
Which could be simplified to ```
'(\.|[^'\])*'
I don't see anything that would suggest it isn't regular, is all I'm saying.
Are you trying this one?
Quotes missing?
'(\\.|[^'\\\n])*'
To exclude multi-line strings.
^\"((\\\\)*(\\[^\\]|(?!\\)[^\"]))*\"$
yey
or anything except a backslash, quote, or newline
Erm, that's absorbed by \\.
\\. matches \\
So \ escapes any subsequent character.
Maybe a bit hacky 
That was, er, more difficult than I expected lol
@cold lintel's
'(?:\\.|[^'\\\n])*'
Do you know about verbose regexes?
It just lets you include line breaks and comments in your regex pattern.
Yeah, that makes me sad
I think it just checks that all the characters are numeric characters.
By some definition of "numeric".
!e
print(float('+1.23'))
print(float(' -12345\n'))
print(float('1e-003'))
print(float('+1E6'))
print(float('-Infinity'))
@vernal snow :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1.23
002 | -12345.0
003 | 0.001
004 | 1000000.0
005 | -inf
β @tawdry juniper can now stream until <t:1674252835:f>.
Member "stream" not found.
!unstream 193547000489312256
β Revoked the permission to stream from @tawdry juniper.
!stream 193547000489312256 30M
β @tawdry juniper can now stream until <t:1674254553:f>.
teach me that emoji shortcut @calm bay π
MacOS emoji shortcut
ctrl + cmd + space π it works!
yaay
it is just "." life changed
@buoyant kestrel i said hi goddammit
yo
@calm bay What is the name of this particular syntax:
x = function % Object(args)
what do you mean name of this syntax?
i just overrode the modulus operator
Ohhh
I don't know if it's called anything
I see, that's so interesting
Yeah, I forgot that there are helper functions for those things for any object
parsyc/parser.py lines 191 to 203
def __mod__(self, container):
"""
Example:
mysum = lambda a, b: a + b
sumParser = mysum % (Integer + ~Terminal("+") + Integer)
This will consume run the parser, and then unpack the tuple of results
from the parser into the arguments of the function. The result of the
function evaluation will then be stored as the value
"""
return self.map(lambda vals: container(*vals))
__rmod__ = __mod__```
Thankyou
This is so awesome, the python bot is sick
A cat, mum, our street down was chasing dog this little boy's!
.xkcd 643
can someone correct my code please its not working
any one give python book pdf pleaseπ₯Ί
Hmm what kind of book are you looking for
segments = {0:['###','# #','# #','# #','###'],
1:[' #',' #',' #',' #',' #'],
2:['###',' #','###','# ','###'],
3:['###',' #','###',' #','###'],
4:['# #','# #','###',' #',' #'],
5:['###','# ','###',' #','###'],
6:['###','# ','###','# #','###'],
7:['###',' #',' #',' #',' #'],
8:['###','# #','###','# #','###'],
9:['###','# #','###',' #','###']
}
def segment_helper(number: str):
out = ["","", "", "", ""]
try:
for digit in number:
for i, line in enumerate(segments[int(digit)], 0):
out[i] += (" "+line if out else line)
return "\n".join(out)
except KeyError:
return "Invalid number"
except ValueError:
return "Invalid number"
print(segment_helper("1234"))
!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
segments = {0:['###','# #','# #','# #','###'],
1:[' #',' #',' #',' #',' #'],
2:['###',' #','###','# ','###'],
3:['###',' #','###',' #','###'],
4:['# #','# #','###',' #',' #'],
5:['###','# ','###',' #','###'],
6:['###','# ','###','# #','###'],
7:['###',' #',' #',' #',' #'],
8:['###','# #','###','# #','###'],
9:['###','# #','###',' #','###']
}
def segment_helper(number: str):
out = ["","", "", "", ""]
try:
for digit in number:
for i, line in enumerate(segments[int(digit)], 0):
out[i] += (" "+line if out else line)
return "\n".join(out)
except KeyError:
return "Invalid number"
except ValueError:
return "Invalid number"
print(segment_helper("1234"))
@fallen topaz :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 'py' is not defined
oh
!e
segments = {0:['###','# #','# #','# #','###'],
1:[' #',' #',' #',' #',' #'],
2:['###',' #','###','# ','###'],
3:['###',' #','###',' #','###'],
4:['# #','# #','###',' #',' #'],
5:['###','# ','###',' #','###'],
6:['###','# ','###','# #','###'],
7:['###',' #',' #',' #',' #'],
8:['###','# #','###','# #','###'],
9:['###','# #','###',' #','###']
}
def segment_helper(number: str):
out = ["","", "", "", ""]
try:
for digit in number:
for i, line in enumerate(segments[int(digit)], 0):
out[i] += (" "+line if out else line)
return "\n".join(out)
except KeyError:
return "Invalid number"
except ValueError:
return "Invalid number"
print(segment_helper("123456789101112131415161718"))
@fallen topaz :white_check_mark: Your 3.10 eval job has completed with return code 0.
001 | # ### ### # #
002 | # # # # #
003 | # ### ### ###
004 | # # # #
005 | # ### ### #
!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
segments = {0:['###','# #','# #','# #','###'],
1:[' #',' #',' #',' #',' #'],
2:['###',' #','###','# ','###'],
3:['###',' #','###',' #','###'],
4:['# #','# #','###',' #',' #'],
5:['###','# ','###',' #','###'],
6:['###','# ','###','# #','###'],
7:['###',' #',' #',' #',' #'],
8:['###','# #','###','# #','###'],
9:['###','# #','###',' #','###']
}
def segment_helper(number: str):
out = ["","", "", "", ""]
try:
for digit in number:
for i, line in enumerate(segments[int(digit)], 0):
out[i] += (" "+line if out else line)
return "\n".join(out)
except KeyError:
return "Invalid number"
except ValueError:
return "Invalid number"
print(segment_helper("12345678910111213"))
@fallen topaz :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | # ### ### # # ### ### ### ### ### # ### # # # ### # ###
002 | # # # # # # # # # # # # # # # # # # # # #
003 | # ### ### ### ### ### # ### ### # # # # # # ### # ###
004 | # # # # # # # # # # # # # # # # # # # #
005 | # ### ### # ### ### # ### ### # ### # # # ### # ###
β @fallen topaz can now stream until <t:1674322010:f>.
Ah nice
!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!
"finished with exit code 1"
I think the last test failed?
Errm, like filter them from a list?
There is filter
You can do filtered_list = list(filter(None, some_list))
You have to wrap it in list because filter returns a generator.
!docs filter
filter(function, iterable)```
Construct an iterator from those elements of *iterable* for which *function* returns true. *iterable* may be either a sequence, a container which supports iteration, or an iterator. If *function* is `None`, the identity function is assumed, that is, all elements of *iterable* that are false are removed.
Note that `filter(function, iterable)` is equivalent to the generator expression `(item for item in iterable if function(item))` if function is not `None` and `(item for item in iterable if item)` if function is `None`.
See [`itertools.filterfalse()`](https://docs.python.org/3/library/itertools.html#itertools.filterfalse "itertools.filterfalse") for the complementary function that returns elements of *iterable* for which *function* returns false.
Erm, it lazily generates its elements.
Which means, they only get calculated when you request the next element from the generator.
Ah right ok.
Actually the list comprehension is probably clearer than filter.
π
Yeah. Although we do have a policy of only allowing streaming while a mod is in the channel.
Erm, sorry, I didn't understand that.
What would you like to stream @primal bison ?
Erm, we're not really a computer-security oriented server unfortunately.
You could ask in #cybersecurity but it's not a very active channel. Our server rules prevent a lot of security discussion.
@fallen topaz hey
why am i muted?
@fallen topaz i am kinda need help, and why am i muted
img = rq.get(https://play.pokemonshowdown.com/sprites/dex/arbok.png)
π©πͺ
on Wednesday I will have an interview for a data engineering job with python and SQL. Fingers crossed. Learned something here...
!e elif(response==2):
Board = [[1,2,3],
[4,5,6],
[7,8,9]]
for i in Board:
print(i)
@keen hare :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | elif(response==2):
003 | ^^^^
004 | SyntaxError: invalid syntax
hi, no mic for me
hello
hi need some help
can anyone here help with pandas I have a couple of questions?
yes i can help
Do you know any courses that would help?
not about course, i did just by experimenting
anyone got a fix for the subprocess.run?
damn
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("cool")
that screenshot is of repl.it iirc (what it looks like at least)
hiberbee dark
@obtuse knot can you give me screen share ability
Mods only give streaming privileges if they're available to be in vc to supervise, and I'm unfortunately unavailable
ok
Is your foo() correct though? Does it not return " " if there's trailing whitespace?
iirc it passes
Actually, I want to be a programmer but I don't know what is the first step this.
How should I make it?
lmao
was typing in vc0 oops
linear space complexity tho
no?
parens are confusing me
ah yep confusing parens
cool
yep, that's lazy
zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.
Example:
```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
... print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
this one too?
oh lol sorry
intermediate version in clipboard history
my bad
def lengthOfLastWord(self, s: str) -> int:
end_of_word = -1
for i in reversed(range(len(s))):
if s[i] != " ":
end_of_word = max(end_of_word, i)
continue
if end_of_word >= 0:
return end_of_word - i
return end_of_word + 1
@dull anvil
!voiceverify
@empty gale sorry, to confused you; were supposed to do that command in #voice-verification
!voiceverify
we don't ping admins for help with GitHub, dude.
we have a whole help system for you to use.
can anyone tell me, how can i get the permission to speak on voice chat 0 channel
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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.
Hello'
What are you guys talking about?

Python is OOP
Ruby is at the max of OOP π
O thank you my bad
can someone help with some python database stuff in a call before i cry
And if someone help him i want be in the call for get more knowledge
Can you help or are you new?
Im new
ah ok all good haha
python -m pip install chatterbot==1.0.4 pytz
Chili peppers (also chile, chile pepper, chilli pepper, or chilli), from Nahuatl chΔ«lli (Nahuatl pronunciation: [ΛtΝ‘ΚiΛlΛi] (listen)), are varieties of the berry-fruit of plants from the genus Capsicum, which are members of the nightshade family Solanaceae, cultivated for their pungency. Chili peppers are widely used in many cuisines as a spice ...
@staticmethod
def len_last_word(s: str) -> int:
return len(s.split()[:-1])
```?
" hello "
Hello there
(but also, .split() takes linear space)
π
@raw rock here
very small space... which usually gets quickly disposed by the garbage collector.
python loops are kinda slow compared to builtins ;-;
ahh yes
@untold hound you're verified!!π
Not necessarily small, if your string is very large, let's say 50MB, you use at least 50MB of intermediate data for the function
the point of the exercise is to use the least amount of space/time asymptotically
Phatic expressions π
is it a problem with the module itself?
Ooo
@fresh sail
why aren't you using pyenv tbf?
Chatbot uses SQLLite
makes no sense to have this in a folder with thousands of other projects
k imma go off a bit
If its a virus
its on hemlock
@fresh sail take a look at this
should be a tad more secure
i mean, theres no proof
!rule 2 5
2. Follow the Discord Community Guidelines and Terms Of Service.
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
Erm, maybe you could get Hem's permission to install something that records his messages lol
Hey @buoyant kestrel we miss you, may I download all of your messages from discord?
the only proof regarding actual userbotting
is you admitting
ofc
it used to support nitro features aswell
i think they had it closed or smth
Yeah, that's account automation I think.
If you had a bot running in the server, that with their permission, trained a language model on someone's messages, I think that might be ok.
Add a .hembot command to @vivid terrace π
π π π
i mean discord API's suck by default
they for some reason parse invalid headers
and thus lag
I would think so yes. If it allows you to export data that you can't get through the bot api.
Even using alternative clients is against ToS.
Erm, @fresh sail, in all seriousness, you can't stream this.
I have to put my serious mod hat on.
must be a nice hat
π€
Sure, Discord weirdly gave up on it. I think at some point they will crack down hard
and go on another Music Bot banning spree and squash any replacements
its also weird how discord it self doesnt show youtube ads
although discord youtube embed sucks, still ....
i mean most youtubers do sponsors
there are also some anti sponsor thingies
LTT the king of sponsors
nothing better than 3 sponsors in a 20 minute video
Video is SOOOOOOO expensive
twitch is not youtube
at the end of a day a product by google will be 100x better than any alternitive
We will all communicate through dance routines.
just the amount of storage youtube has is unbelievable
You'll have to submit your tax information as an interpretive dance.
Tik_Tok is the new educational system of the U.S.
none
but tell me the market cap of Gmail vs Yahoo Mail, Icloud, Protonmail all combied
It worked, I got messages.
no it depends on the bitrate and fps
i can have a 4k60 video run for 1 minute, take up 1G
maybe 150MB?
sorry 150*20 for 20 minutes
so 3G
Nah
Thank you for reigning in these folks, @cold lintel
i think they use 100TB
Because they shoot 4k60 by default
also you should remember
youtube never deletes videos
TLDR; youtube has all the storage in the world
well gonna head out guys bye
pretty please with sugar on top?
No
Good evening
@rare acorn chatgpt does the same thing too
plt.ion()
fig1 = plt.figure()
fig2= plt.figure()
ax = fig1.add_subplot(111)
ax2= fig2.add_subplot(111)
circle1 = plt.Circle((0, 0), 1, fill=False)
plt.gca().add_patch(circle1)
plt.xlim(0,1)
plt.ylim(0,1)
ax.set_aspect('equal', adjustable='box')
UI=int(input("Wie viele DurchlΓ€ufe: "))
total,inside = 0,0
for a in range(UI):
x = random.uniform(0,1)
y = random.uniform(0,1)
total += 1
if (x*x+y*y)**0.5 <= 1:
inside += 1
plt.scatter(x,y,8,color="#00ff00")
else:
plt.scatter(x,y,8,color="#ff0000")
fig1.canvas.flush_events()
plt.draw()
print(inside/total*4)
x= np.arrange(1,10)
y= []
for i in range(1,10):
y_val= random.random()
y.append(y_val)
@calm bay
Noo why
Hii
hello
Hello
anyone know how to cracka mod?
` plt.ion()
fig1 = plt.figure()
fig2= plt.figure()
ax = fig1.add_subplot(111)
ax2= fig2.add_subplot(111)
circle1 = plt.Circle((0, 0), 1, fill=False)
plt.gca().add_patch(circle1)
plt.xlim(0,1)
plt.ylim(0,1)
ax.set_aspect('equal', adjustable='box')
UI=int(input("Wie viele DurchlΓ€ufe: "))
total,inside = 0,0
for a in range(UI):
x = random.uniform(0,1)
y = random.uniform(0,1)
total += 1
if (xx+yy)**0.5 <= 1:
inside += 1
plt.scatter(x,y,8,color="#00ff00")
else:
plt.scatter(x,y,8,color="#ff0000")
fig1.canvas.flush_events()
plt.draw()
print(inside/total*4)
x= np.arrange(1,10)
y= []
for i in range(1,10):
y_val= random.random()
y.append(y_val) `
plt.ion()
fig1 = plt.figure()
fig2= plt.figure()
ax = fig1.add_subplot(111)
ax2= fig2.add_subplot(111)
circle1 = plt.Circle((0, 0), 1, fill=False)
plt.gca().add_patch(circle1)
plt.xlim(0,1)
plt.ylim(0,1)
ax.set_aspect('equal', adjustable='box')UI=int(input("Wie viele DurchlΓ€ufe: "))
total,inside = 0,0
for a in range(UI):
x = random.uniform(0,1)
y = random.uniform(0,1)
total += 1
if (xx+yy)**0.5 <= 1:
inside += 1
plt.scatter(x,y,8,color="#00ff00")
else:
plt.scatter(x,y,8,color="#ff0000")
fig1.canvas.flush_events()
plt.draw()
print(inside/total*4)x= np.arrange(1,10)
y= []
for i in range(1,10):y_val= random.random() y.append(y_val)
(centerX, centerY, width, height) = box.astype("int")```
ValueError: operands could not be broadcast together with shapes (4,416,416) (4,)
I am developing a yolov3 object detection model
I have no idea what this error is
this is the code
Are you coding something live?
it does the same thing
just launches the exe then closes it down
I did install ffmpeg through another folder located in my Local Disk called "path"
i am not sure if thats the same
do you have the same issues? or does it work?
just tried them both in the same directory, still just opens then closes
i have 2 python versions, maybe thats disturbing it?
3.11.0 and 3.9.9
3.9.9 is for open ai's whisper
and 3.11.0 is for latest projects/experiments
venv?
where would I install that? and also, why wouldnt it work for exe?
would i have to install chocolatey aswell?
it is already installed in "path" but not %PATH% i dont think
because of this installment https://www.youtube.com/watch?v=XX-ET_-onYU&t
OpenAI has done some fantastic things. Whisper is a great project open to the public. Transcribe (Turn audio into text) for MANY languages, all completely for free and all from your computer. No subscription, no fees, nothing. Your data, your computer, your free unlimited transcription.
Whisper AI install guide: https://hub.tcno.co/ai/whisper/i...
@dull anvil
could i just open "run" and run %PATH%
and do I put a folder in there named "ffmpeg"?
@night lily
no permission to talk on that channel
haha okay 50 messages
hahah ..... is those counting from this channel
@glossy lintel https://stackoverflow.com/questions/24560298/python-numpy-valueerror-operands-could-not-be-broadcast-together-with-shapes
This might solve your issue
which language is this?
why is rust becoming so popular ? like i hear it everywhere now
because of its memory safety and concurrent programming
when your writing stuff in particular low level stuff you absolutely do no want any unsafe memory handling, vulnerabilities, exploits, crashes.. bad enough in app code but absolutely critical in low level kernel level code
codinggggg
hello anoyone can please tell me code of this ----- Create a list of strings based on a list of numbers
The rules:
If the number is a multiple of five and odd, the string should be 'five odd'
If the number is a multiple of five and even, the string should be 'five even'
If the number is odd, the string is 'odd'
If the number is even, the string is 'even'
numbers = [1, 3, 4, 6, 81, 80, 100, 95]
not the right channel π
look like fizzbuzz problem, you better google it
!e```python
def main():
print("Hello, World!")
if name == "main":
main()
@spark helm :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, World!
hello
!e
code
"%" or the modulus sign returns the remainder of a division
3 % 2 would be equivalent to 1
4 % 2 would be equivalent to 0
Using this, you can determine if a number is a multiple of a different one.
This means that you can also test whether a number is even or odd using modulus 2. Good luck, I hope this helps you!
!e
print ("@everyone")
@spiral tinsel :white_check_mark: Your 3.11 eval job has completed with return code 0.
@everyone
!e
print("h")
@paper ravine :white_check_mark: Your 3.11 eval job has completed with return code 0.
h
!e
input(print(Hello))
@paper ravine :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 'Hello' is not defined
!e
input(print("Hello"))
@paper ravine :x: Your 3.11 eval job has completed with return code 1.
001 | Hello
002 | NoneTraceback (most recent call last):
003 | File "<string>", line 1, in <module>
004 | EOFError: EOF when reading a line
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(@everyone)
003 | ^
004 | SyntaxError: invalid syntax
!e
print("hello world")
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello world
!e
wallet = input("Combien avez vous d'argent ?")
computer_price = 1200
if wallet < computer_price:
print("Vous pouvez acheter l'ordinateur")
else:
print("Vous n'avez pas assez d'argent")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 4
002 | print("Vous pouvez acheter l'ordinateur")
003 | ^
004 | IndentationError: expected an indented block after 'if' statement on line 3
Why ? (I'm a begginer)
!e
username = "BGK"
password = input("quel est votre mots de passe ?")
passeword2 = input("mot de passe ?")
if password β passeword2:
print("Mauvais mot de passe")
else:
print("Bon mot de passe")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 4
002 | if password β passeword2:
003 | ^
004 | SyntaxError: invalid character 'β ' (U+2260)
!e
password = input(" Quel est votre mot de passe ?")
passeword = input("Réécriture du mot de passe")
if passeword == password:
print("Le mot de passe est bon.")
else:
print("Mauvais mot de passe.")
Why ?!
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 4
002 | print("Le mot de passe est bon.")
003 | ^
004 | IndentationError: expected an indented block after 'if' statement on line 3
!e
L=list(eval(10))
a=len(L)+1
for x in range(0,a):
L[x],L[x+1]=L[x+1],L[x]
print(L)
@lone scroll :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 | TypeError: eval() arg 1 must be a string, bytes or code object
!e
L=list(10)
a=len(L)+1
for x in range(0,a):
L[x],L[x+1]=L[x+1],L[x]
print(L)
@lone scroll :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 | TypeError: 'int' object is not iterable
!cleanban 664628373657485373 1w This is not appropriate at all
:incoming_envelope: :ok_hand: applied ban to @ivory gorge until <t:1677196530:f> (7 days).
@tender urchin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | hi
002 | hi
003 | hi
004 | hi
005 | hi
006 | hi
007 | hi
008 | hi
009 | hi
010 | hi
011 | hi
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/esebuzihod.txt?noredirect
!e
n= int(input())
for i in range(n):
print('hi')
@tender urchin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e
password = input("What's your password ?")
passeword = input("Your password :")
if password == passeword:
print("good password !")
else:
print("False password !")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 4
002 | print("good password !")
003 | ^
004 | IndentationError: expected an indented block after 'if' statement on line 3
!e
password = input("What's your password ?")
passeword = input("Your password :")
if password == passeword:
print("good password !")
else:
print("False password !")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | What's your password ?Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
?
!e```python
def main():
print("hello worls")
@spark helm :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e print("Hello world")
@spark helm :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello world
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
@everyone
Mdr
!e
print("UwU")
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
UwU
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
UwuUuuuU
!e
print("sale stalker")
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
sale stalker
!e
solal = 13
if solal = 13:
print("Stalker")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | if solal = 13:
003 | ^^^^^^^^^^
004 | SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
!e
input()
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e
print("Caca")
@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.
Caca
@primal bison :white_check_mark: Your 3.11 eval job has completed with return code 0.
Ϊ©Ψ΅ ΩΩΨͺ π€
@primal bison :white_check_mark: Your 3.10 eval job has completed with return code 0.
001 | .
002 | .
003 | .
004 | .
005 | .
006 | .
007 | .
008 | .
009 | .
010 | .
011 | .
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/okigaqejuf.txt?noredirect
!e def collatz(x):
print(1) if x==1
return
if x & 1: print(f"{x}{collatz(3*x+1)}")
else:print(f"{x}{collatz(x//2)}")
@tough mortar :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(1) if x==1
003 | ^^^^^^^^^^^^^^^^
004 | SyntaxError: expected 'else' after 'if' expression
!e def collatz(x):
if x==1 :
print(x)
return
if x & 1: print(f"{x}{collatz(3*x+1)}")
else:print(f"{x}{collatz(x//2)}")
@tough mortar :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e def collatz(x):
if x==1 :
print(x)
return
if x & 1: print(f"{x}{collatz(3*x+1)}")
else:print(f"{x}{collatz(x//2)}")
collatz(123)
@tough mortar :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2None
003 | 4None
004 | 8None
005 | 16None
006 | 5None
007 | 10None
008 | 20None
009 | 40None
010 | 13None
011 | 26None
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/zegamehiju.txt?noredirect
!e def collatz(x):
if x==1 :
print(x)
return
if x & 1: print(f"{collatz(3*x+1) or x}")
else:print(f"{collatz(x//2) or x}")
collatz(123)
@tough mortar :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 4
004 | 8
005 | 16
006 | 5
007 | 10
008 | 20
009 | 40
010 | 13
011 | 26
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/nulupofuho.txt?noredirect
!e def collatz(x):
if x==1 :
print(x)
return
if x & 1: print(f"{collatz(3*x+1) or x}")
else:print(f"{collatz(x//2) or x}")
collatz(48)
@tough mortar :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 4
004 | 8
005 | 16
006 | 5
007 | 10
008 | 3
009 | 6
010 | 12
011 | 24
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/iwebajibuc.txt?noredirect
Hey @ivory osprey!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
y = list(x)
y[0] = y[0].capitalize()
n = ""
for i in y:
n += i
print(n)```
hhs
!e
code
y = list(x)
y[0] = y[0].capitalize()
n = ""
for i in y:
n += i
print(n)```
@median coyote :white_check_mark: Your 3.10 eval job has completed with return code 0.
UwuUuuuU
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("helo %%")
can someone tell me why these 2 functions are returning different types of list? its the same function running the same thing but the list results are different
i did find the answer
its choice vs choices
sry cant respond in voice
ty for being helpful! appreciate it
:incoming_envelope: :ok_hand: applied mute to @fleet bolt until <t:1676755680:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).
The <@&831776746206265384> have been alerted for review.
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
@vague oar :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World
!e for t in range (0,1000) :
print(t)
@compact dawn :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/igehodayut.txt?noredirect
!e l=[1,2,3,4,5]
t=l[-1]
For i in range (5,-1,-1):
l[I]=l[i-1]
Print(l)
Your using upper-case I and lowercase i in the same for loop
They should both be uppercase
!e l=[1,2,3,4,5]
t=l[-1]
for i in range (4,-1,-1):
l[I]=l[i-1]
Print(l)
!e l=[1,2,3,4,5]
t=l[0]
for I in range (4,-1,-1):
l[I]=l[I-1]
l[-1]=t
Print(l)
@deep sierra :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | NameError: name 'Print' is not defined. Did you mean: 'print'?
Really
!e l=[1,2,3,4,5]
t=l[0]
for I in range (4,-1,-1):
l[I]=l[I-1]
l[-1]=t
print(l)
@deep sierra :white_check_mark: Your 3.11 eval job has completed with return code 0.
[4, 1, 2, 3, 1]
Pythons syntax can be a pain in the a*** sometimes
To much case sensitive bro
Yeah

!e print("hello world")
@wintry roost :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello world
!e
code
whatcha coding? @short token
i think he is afk @scarlet delta
yh
i checked on him and he does not even say a word
i am eating something
!eval
print("hello world!")
@sly cairn :white_check_mark: Your 3.11 eval job has completed with return code 0.
hello world!
!eval
while True:
print ("evil and twisted")
@sly cairn :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | evil and twisted
002 | evil and twisted
003 | evil and twisted
004 | evil and twisted
005 | evil and twisted
006 | evil and twisted
007 | evil and twisted
008 | evil and twisted
009 | evil and twisted
010 | evil and twisted
011 | evil and twisted
... (truncated - too many lines)
Full output: too long to upload
:)
!eval
inp = input("does this work?")
if inp == yes:
print("hurray!")
else:
print("aww :(")
@sly cairn :x: Your 3.11 eval job has completed with return code 1.
001 | does this work?Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!eval
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
hi
i was wondering
can enybody help
me for an assgnment i have for school
its in jupyter
how can socket architecture be implemented in restapi ?
Aww yeah
!eval
print(os.pwd())
@opaque lava :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 | AttributeError: module 'os' has no attribute 'pwd'
@opaque lava :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 | AttributeError: module 'os' has no attribute 'get_cwd'. Did you mean: 'getcwd'?
!eval
print(os.getcwd())
@opaque lava :white_check_mark: Your 3.11 eval job has completed with return code 0.
/snekbox
!eval
f = wget.download(https://github.com/kkrypt0nn/wordlists/blob/main/names/top_female_names_usa.txt)
@opaque lava :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | f = wget.download(https://github.com/kkrypt0nn/wordlists/blob/main/names/top_female_names_usa.txt)
003 | ^
004 | SyntaxError: invalid syntax
!eval
f = wget.download("https://github.com/kkrypt0nn/wordlists/blob/main/names/top_female_names_usa.txt")
@opaque lava :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 'wget'

dang
well thannk you i just needed help with a script i didnt know there was a 3 day buffer
!eval
print("Hello World!")
@lilac delta :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
hey i am making a voice assistant if anyone can join please !!
like i wanna add new features to it so if any1 can help?
like i am making a feature where there is a file named dev.txt and it reads the number stored in the file the number increases with 1 everytime we run the program and when the number is divisible with 4 it does a thing
so i have no idea how we can do that
Saving 2D array to a csv file but when I check the csv file theres always this extra space on line 2 how do i get rid of it?
import csv
import numpy as np
arr = np.asarray([ [7,8,9], ['a','b','c']])
with open('sample.csv', 'w') as f:
mywriter = csv.writer(f, delimiter=',')
mywriter.writerows(arr)
is outputting:
7,8,9
a,b,c
!eval
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
@celest whale :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello World!
!eval pip install pygame
@hybrid magnet :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | pip install pygame
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
Sup
What're you folks up to
Attempting to
No worries
Chat website as in like... A chatroom kind of thing?
I mean it just comes with practice
Front end stuff is... tough
Hey Fred
Yep
You got it right that time
I'm dumb as shit
I wouldn't be able to do it
Story checks out
I hate npm
Fucking package version conflicts
Probably just this template I'm using
But still
Fair
Fuck it, close enough
This fucking kills me that this page hasn't been updated since 2013
Koans or cones
you're a Koan
β€οΈ
Damn it
Oh no, am I really going to do this
I'm genuinely considering modifying these tiles
I hate me
soh: sine = opposite / hypotenus
cah: cos = adjacent / hyp
toa: tan = opposite/ adjacent
@primal bison
I typing was in the wrong channel ;-;
Any recommended light weight SVG editor? Literally all I want to do is just make numbers that'll look good with the tiles
Inkscape?
anyone know how to send a message to a disc webhook
winget install Inkscape.Inkscape
or is this wrong channel
I'm not affine, I'm afgreat.
You can click the JSON button to see the actual data it will be sending
Here's the actual spec: https://discord.com/developers/docs/resources/webhook#execute-webhook
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
I need to be able to send it in a python code as I'm hosting a bot and having a private server to check if it's online and send a message saying its online every like 60s
That's a lot of messages
The last harry potter game I played was on the gameboy advanced π
Can't think
Storms are coming in and I'm getting a migraine
Hate this
Plus feeling dumb while trying to make this
Phaser really really doesn't have great docs
And NOW it's making me want to look at Godot again
Like jesus, I can't just can't pick something and stick with it
@honest pasture Don't quit your day job, I don't think you'll make it as a performer after that sorry display
But I say it with love
Oh I thought you meant make them install an old version of Poetry and see if they can manage to remove it and update
@buoyant kestrel this was to you
Charlie, oh Charlie, a name so sweet,
As cheerful as the morning, as swift as fleet,
With eyes so bright and a smile so wide,
He carries joy wherever he strides.
From dawn to dusk, he spreads his light,
Brightening up even the darkest night,
With a heart so warm, and a spirit so free,
Charlie is a symbol of hope and glee.
He walks with grace, as if on air,
And his laughter echoes everywhere,
Like a butterfly, he flutters by,
Leaving behind a trail of delight.
Charlie, oh Charlie, a name so dear,
A friend to all, with nothing to fear,
His kindness and love, so pure and true,
Remind us all of the good we can do.
So here's to Charlie, our ray of sunshine,
May he keep spreading his warmth and shine,
And may his spirit forever be,
A guiding light for you and me.
I don't think anything rhymes with Charlie π€
There once was a fellow named Charlie,
Whose smile was incredibly gnarly,
With a skip in his stride,
He couldn't hide,
The joy that he spread so farly.
Man by the name of Charlie,
Oft filled his cups with barley,
He became so crass,
LP beat his ass,
Cried on the spot, bizarrely
Not my best
Charlie, my dear friend, with a head so grand
It's hard not to see you from miles and land
Like Megamind from Disney, your noggin's quite vast
But your friendship is something that'll forever last
Your vision may be poor, but your heart's pure gold
And your humor always leaves me feeling bold
You're always there for me, no matter the hour
And your support has the power to give me the power
I know sometimes I tease, about your head so big
But let's face it, it's hard not to gig
You take it all in stride, with a smile so wide
And your loyalty is something I can't hide
So here's to you, Charlie, my buddy and pal
You may have a big head, but your heart's never stale
With you by my side, I know I'll never fall
And that's why you'll always be the best of all.
Also that took me way too long to write
I prefer mine to be bespoke, hand crafted
Oh god damn it
Why did Charlie take a job at the orange juice factory?
for a limerick, I think it's just 5 lines, aabba rhyme
It is
Because he wanted to concentrate!
Oh shit
Why did Dylan bring a pillow to the library?
Okay, I've been wrong this whole time
It's anywhere from like 7-10 for the A and 5-7 for B
How the fuck did I never know this
A very good friend, that Chuck,
The things I can say- OH FUCK
He's coming at me,
He's gonna stab me,
Try using that nickname? No luck
The point I'm trying to make is
Man I'm mad at my lack of poetry skills anymore
I used to be good
The British people aren't allowed to complain
Never stopped you before
Joi's health is my priority right now
And I have no idea when she'll get better. Yeah that's true
or did you just use to think you were good till you heard better poetry π€
Fuck if I know
I feel like someone's driving a spike through my eye and into my brain
One of my wonderful weather migraines
Yeah, for sure tossing the old effort and swapping to godot
-sighs- Wonder if I'll ever actually be able to finish this thing
Hi
What are you using currently?

Was attempting to futz with Phaser, one of the JS game libs
Why did Dylan buy a bakery?
@fresh sail Because they didn't have enough dough?
oh.
I see.
gtg π
what are we coding live
I was attempting to mess with Phaser, the JS library, but then I started to get this migraine and I stopped. We just didn't end up moving
According to the Oxford English Dictionary, there's somewhere around 171,146 words
Which is for sure undershooting
Of what age
@fresh sail Students of what age
Mmmm.... synonym toast crunch...
Somewhere in Egypt wasn't it?
One of the digs there
They found a thesaurus back then
Back in a bit
You can but you'll likely have an easier time getting help using our help system. See the #βο½how-to-get-help channel for more details about that.
Especially because... I have no idea what is even going on in here right now
thanks
@honest pasture @crystal notch could I have some context
no
huh
A random page from "The original Roger's Thesaurus":
The longest word in the English Language
!stream 182894631921516545
β @broken talon can now stream until <t:1677278595:f>.
:O
what challenge ya doing.
none?
the cipher?
it's not a challenge
Python Enhancement Proposals (PEPs)
0x.beep+3
0x0.1
5e+10
5*10^10
0x.0bee * 2 ^ 3
.1E4f
@chilly wren You can't talk because you need to verify in voice-verify
ok
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!help
www.open-std.org
(.*)\.(.*)
1 = www.open-std
2 = org
(.*?)\.(.*)
1 = www
2 = open-std.org
Sorry, my voice chat connection to discord is pretty bad right now
It has some quirks to it for sure though
123a4+123123+123123
I am sorry
Ooh
Do you have a specific problem you're trying to solve currently.
Yep that's Mustafa.
\"((\\\\)*(\\\"|[^\"]))*\"
\"((\\\\)*(\\\"|[^\\\"]))*\"
\"((\\\\))*(\\\"|[^\\\"]))*\"
Oh 
Oh right yes, something like (blah)* won't work.
Ie the number of groups in a regex pattern is finite and fixed.
Errrm I think it captures the last match? Not sure.
!eval ```py
import re
m = re.match(r'([a-z])*', 'abc')
print(m.groups())
@cold lintel :white_check_mark: Your 3.11 eval job has completed with return code 0.
('c',)
Yeah I think so
Imagine writing it without r"" strings 
Have you played around with parsers much?
Yesn't 
Yep it does!
Right yes.
I've been trying out Lark recently, it's a pretty nice parsing library.
Parsing library
Β―_(γ)_/Β―
I think it's fairly good. It has two parsers
one sec...
Right yep. It has an Earley parser, which is more general but slower. And a faster LALR(1) parser, which is more limited in the grammars it can parse.
@primal bison 
Wdym?
Errrrrm, not really my area sorry.
hey
This may consist of source code translation but is more commonly bytecode translation to machine code, which is then executed directly.
Β―_(γ)_/Β―
soooo
no one in the forum
and i need help
and there is no tutorials
im trying to make a player """""""""""class"
Yeah, Wikipedia is usually short on details when it comes to these things.
and my pygame.init is saying expected idented block
but those 2 are unrelated
and dont matter where i put it
Might be worth a read: https://eli.thegreenplace.net/2013/11/05/how-to-jit-an-introduction
Oh right nice π
Can you show us the code?
if i could stream i would shpw yall me playing
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
skeleton for ma delicious game
import pygame
import random
WIDTH = 550
HEIGHT = 400
fps
FPS = 2
#COLORS WOOOOOW
BLUE = (43, 44, 120)
GREEN = (41, 74, 30)
YELLOW = (191, 180, 25)
RED = (186, 24, 35)
BROWN = (120, 50, 14)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GRAY = (71, 71, 71)
class player(pygame.sprite.Sprite):
window
pygame.init
pygame.mixer.init
SCREEN = pygame.display.set_mode([WIDTH, HEIGHT])
clock = pygame.time.Clock()
sprites = pygame.sprite.Group()
gameloop
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit()
sprites.update()
# black screen
SCREEN.fill(BLACK)
clock.tick(FPS)
sprites.draw(SCREEN)
# double buffering
pygame.display.flip()
pygame.quit()
@devout gale It would be a lot easier if you used the paste-bin linked above.
Ah yeah @supple fossil I think that's what this article talks about.
Oh really? π
Β―_(γ)_/Β―
What was the command you used to view that?
strace
mprotect(0x4343000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x4343000, 245760, PROT_READ|PROT_EXEC) = 0

write(17, "test\n", 5) = 5
write(17, "test A:0\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test A:1\n", 9) = 9
write(17, "test B:0\n", 9) = 9
mprotect(0x3703000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x3703000, 245760, PROT_READ|PROT_EXEC) = 0
write(17, "test B:1\n", 9) = 9
write(17, "test B:2\n", 9) = 9
write(17, "test B:3\n", 9) = 9
write(17, "test B:4\n", 9) = 9
write(17, "test A:4\n", 9) = 9
mprotect(0x3703000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x3703000, 245760, PROT_READ|PROT_EXEC) = 0
write(17, "test B:0\n", 9) = 9
write(17, "test B:2\n", 9) = 9
write(17, "test B:4\n", 9) = 9
write(17, "test B:6\n", 9) = 9
write(17, "test B:8\n", 9) = 9
write(17, "test A:9\n", 9) = 9
write(17, "test B:0\n", 9) = 9
write(17, "test B:3\n", 9) = 9
mprotect(0x3703000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x3703000, 245760, PROT_READ|PROT_EXEC) = 0
write(17, "test B:6\n", 9) = 9
write(17, "test B:9\n", 9) = 9
write(17, "test B:12\n", 10) = 10
write(17, "test A:16\n", 10) = 10
write(17, "test B:0\n", 9) = 9
write(17, "test B:4\n", 9) = 9
write(17, "test B:8\n", 9) = 9
write(17, "test B:12\n", 10) = 10
write(17, "test B:16\n", 10) = 10
write(17, "test A:25\n", 10) = 10
write(17, "test B:0\n", 9) = 9
write(17, "test B:5\n", 9) = 9
mprotect(0x3703000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC)
Python is just interpreted.
Or the byte-code is anyway.
Errrm
Riiight I remember something like that from the release stream.
Timestamps00:00 - Introduction24:30 - Brandt Bucher, Specializing Adaptive Interpreter50:40 - Mark Shannon, Other Speedups1:07:42 - Irit Katriel, Exception I...
Hullo
write(1, "test\n", 5) = 5
write(1, "test A:0\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test A:1\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:1\n", 9) = 9
write(1, "test B:2\n", 9) = 9
write(1, "test B:3\n", 9) = 9
write(1, "test B:4\n", 9) = 9
write(1, "test A:4\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:2\n", 9) = 9
write(1, "test B:4\n", 9) = 9
write(1, "test B:6\n", 9) = 9
write(1, "test B:8\n", 9) = 9
write(1, "test A:9\n", 9) = 9
write(1, "test B:0\n", 9) = 9
write(1, "test B:3\n", 9) = 9
write(1, "test B:6\n", 9) = 9
write(1, "test B:9\n", 9) = 9
write(1, "test B:12\n", 10) = 10
write(1, "test A:16\n", 10) = 10
write(1, "test B:0\n", 9) = 9
write(1, "test B:4\n", 9) = 9
write(1, "test B:8\n", 9) = 9
write(1, "test B:12\n", 10) = 10
write(1, "test B:16\n", 10) = 10
write(1, "test A:25\n", 10) = 10
write(1, "test B:0\n", 9) = 9
write(1, "test B:5\n", 9) = 9
write(1, "test B:10\n", 10) = 10
write(1, "test B:15\n", 10) = 10
write(1, "test B:20\n", 10) = 10
write(1, "test A:36\n", 10) = 10
write(1, "test B:0\n", 9) = 9
write(1, "test B:6\n", 9) = 9
write(1, "test B:12\n", 10) = 10
write(1, "test B:18\n", 10) = 10
write(1, "test B:24\n", 10) = 10
β @supple fossil can now stream until <t:1677294774:f>.
Do you want me to do it again? π
Erm, black history month.
They're the pan-african colours.
I'm not sure really.
You can effectively do dynamic typing in a language like C, using tagged unions.
(I.e. types are part of the data of the program.)
One of the cool things about JIT compilers is they can gather information while the program is running which they can then use to apply optimisations.
E.g. they might record which functions the program is spending most of its time in, then optimise just those functions.
Ah yeah, that's inlining?
Errrr 
Yeah, it's like the core part of the OS.
It does things like process scheduling, memory management, arbitrating access to IO.
Yeah. It's like a layer between applications and the hardware.
Device drivers are part of the kernel right?
Processes are an example of an abstraction provided by the kernel
Honestly my knowledge of this stuff is really superficial.
I never completed the OS course at uni π

I think just the first part of each chapter.
It's like an introduction.
Yeah like mailing list archives
hey sorry to bother but im stuck as a new learner and cannot find a wayto do something simple can u spare me a minute for a explaining ?
The thing i wanna do is do a check for input if its and integer and if not to make user type again, and if its an int use this int
z=""
def zfunc():
while z.isdigit()==False:
z=input("input number:")
if z.isdigit() == False:
print("Try again")
else:
return int(z)
zfunc()
Hey π Your best bet is to make a post in the help forum. See #βο½how-to-get-help
Thank you very much will give it a try
Hello
this should not have taken so long π
and mostly credit to @steady viper, absolute legend helped we with it ( not the last bit probably why it doesn't look pretty
Hi
enter the no. unto which you want to print the Fibonacci Series:-
2
0
1
enter the no. unto which you want to print the Fibonacci Series:-
5
0
1
1
2
3
@drowsy lance
search it
you will get the note
i have to go @drowsy lance
!e
username_passeword = (input("Your username?"), input("Your passeword?")
Username_passeword_confirm = (input("confirme your username"), input("Confirme your passeword. ")
if username_passeword == Username_passeword_confirm:
print("Welcome")
else:
print("username or passeword false.")
@scarlet mulch :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | username_passeword = (input("Your username?"), input("Your passeword?")
003 | ^^^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
do you have a mic?
yes
but not working properly
what kind of
i am also beginner in python
yes
i have create it
can you show me the code
here
def main():
fib = [0, 1]
num1 = 0
num2 = 1
you = input("enter a number here to create a fibonacci sequence ranging from 0 to your number!\nenter your number here:")
bruh = int(you)2 *5 +4
bruh2 = int(you)2 *5 -4
print(bruh0.5)
print(bruh20.5)
#math here
if isinstance(bruh**0.5,float) and isinstance(bruh2**0.5,float):
print("your number dose not exist in the fibonacci sequence try again ")
main()
else:
while fib.count(int(you)) == False :
fib1 = fib[num1]
fib2 = fib[num2]
add = fib1 + fib2
fib.append(add)
num1 += 1
num2 += 1
print(fib)
main()
yes
littile bit
yes
ok
you want both
ok wait i check
you only want int
?
@yu can you help this guy
this is the code
this is the code
def main():
fib = [0, 1]
num1 = 0
num2 = 1
you = input("enter a number here to create a fibonacci sequence ranging from 0 to your number!\nenter your number here:")
bruh = int(you)2 *5 +4
bruh2 = int(you)2 *5 -4
print(bruh0.5)
print(bruh20.5)
#math here
if isinstance(bruh0.5,float) and isinstance(bruh20.5,float):
print("your number dose not exist in the fibonacci sequence try again ")
main()
else:
while fib.count(int(you)) == False :
fib1 = fib[num1]
fib2 = fib[num2]
add = fib1 + fib2
fib.append(add)
num1 += 1
num2 += 1
print(fib)
main()
def mysum(n1, n2):
return n1+n2
b=int(input("enter the number of entries: "))
for i in range(0,b): int(input("enter the number you wanna add:"))
c= mysum(b)
print(c)
If i want to add more than 2 numbers(or the number of numbers user wants to enter). Then what shud i do?
a = int(input("Enter any number : "))
def fibonacci(n):
if (n == 1 or n == 0):
return n
else:
return fibonacci(n-1)+fibonacci(n-2)
for i in range(a):
print(fibonacci(i))
@drowsy lance you can put in chatgpt
in #math here
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
2.0
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 4 ** .5 % 1=0.0
002 | 5 ** .5 % 1=0.2360679774997898
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
0.45600000000000307
bruh ** 0.5 % 1.0 != 0.0
!e def main():
fib = [0, 1]
num1 = 0
num2 = 1
you = input("Enter a number to create a Fibonacci sequence ranging from 0 to your number!\nEnter your number here: ")
bruh = int(you) * 2 + 4
bruh2 = int(you) * 2 - 4
print(bruh0.5)
print(bruh20.5)
#math here
if isinstance(bruh**0.5, float) and isinstance(bruh2**0.5, float):
print("Your number does not exist in the Fibonacci sequence. Please try again.")
main()
else:
while fib.count(int(you)) == 0:
fib1 = fib[num1]
fib2 = fib[num2]
add = fib1 + fib2
fib.append(add)
num1 += 1
num2 += 1
print(fib)
main()
@potent wharf :x: Your 3.11 eval job has completed with return code 1.
001 | Enter a number to create a Fibonacci sequence ranging from 0 to your number!
002 | Enter your number here: Traceback (most recent call last):
003 | File "<string>", line 26, in <module>
004 | File "<string>", line 5, in main
005 | EOFError: EOF when reading a line
math.isqrt(n)```
Return the integer square root of the nonnegative integer *n*. This is the floor of the exact square root of *n*, or equivalently the greatest integer *a* such that *a*Β² β€ *n*.
For some applications, it may be more convenient to have the least integer *a* such that *n* β€ *a*Β², or in other words the ceiling of the exact square root of *n*. For positive *n*, this can be computed using `a = 1 + isqrt(n - 1)`.
New in version 3.8.
@drowsy lance check i have dm you
@dull anvil :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | is_square(1)=True
002 | is_square(2)=False
003 | is_square(3)=False
004 | is_square(4)=True
005 | is_square(5)=False
ok
bye
gn
@dull anvil hi i also one problem
with microsoft word
i want to delete header and foder but this not deleting the section
i am trying from 1-2 hrs
watch many videos but it didn't fix
if you have time can you please check ones
i will share the screen
yes
i delet them but still when i click on that section the are there
can you checks once>
?
here i am not able to share screen
i will share on my server
should i share you link?
yes i use this
many times
i done it
just can i show you once
yes that only i am facing
that stuff is not deleting
it get only clear
yes
when i double click on it it appears
yes
because of this my whole text contain start from there
@hollow osprey Good
@dull anvil yes!!
that is the problem
what should i do?




