#off-topic-lounge-text

1 messages Β· Page 5 of 1

cold lintel
#

Erm, I mean escaped quotes sorry.

#

"\""

#

Oh right yeah, + is greedy.

#

Which means it consumes as much input as possible.

barren tusk
#

I am so confused😳

cold lintel
#

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 lemon_angrysad

#

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 "
calm bay
#

"hello \\" world"
hmm

cold lintel
#

Oh yeah thonk

#

It is still a regular language, but you'll need to determine whether there are an odd or even number of \

calm bay
#

enforce an odd number of backslases before a quote

#

I mean it's not that bad

cold lintel
calm bay
#
[^\\](\\\\)*\\"
cold lintel
calm bay
#

only matches odd number of backslashes before "

cold lintel
#

Here's what I have for single-quoted strings: ```
'(\'|\\|[^'\])*'

calm bay
cold lintel
#

Sorry it should have a ' at the start and end pithink

#

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.

calm bay
#
\"((\\\\)*(\\\"|[^\"]))*\"
cold lintel
#

Oh sad_cat

#

Could you paste the test case so I can try it?

cold lintel
#

Quotes missing?

#
'(\\.|[^'\\\n])*'
#

To exclude multi-line strings.

calm bay
#
^\"((\\\\)*(\\[^\\]|(?!\\)[^\"]))*\"$
cold lintel
#

yey

#

or anything except a backslash, quote, or newline

#

Erm, that's absorbed by \\.

#

\\. matches \\

#

So \ escapes any subsequent character.

#

Maybe a bit hacky ThonkHappy

#

That was, er, more difficult than I expected lol

fallen topaz
#

@cold lintel's
'(?:\\.|[^'\\\n])*'

cold lintel
#

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

vernal snow
#

!e

print(float('+1.23'))
print(float('   -12345\n'))
print(float('1e-003'))
print(float('+1E6'))
print(float('-Infinity'))
timid fjordBOT
#

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

I haven't heard of this pithink Is this a new thing?

#

Yeah, more space

#

brb

wide aurora
#

HeyX

#

🧑

cold lintel
#

Hey WaveBoy

#

ic

#

!stream 193547000489312256

timid fjordBOT
#

βœ… @tawdry juniper can now stream until <t:1674252835:f>.

cold lintel
#

Just preemptively extending the permissions...

#

!unstream stream

timid fjordBOT
#
Bad argument

Member "stream" not found.

cold lintel
#

!unstream 193547000489312256

timid fjordBOT
#

βœ… Revoked the permission to stream from @tawdry juniper.

cold lintel
#

!stream 193547000489312256 30M

timid fjordBOT
#

βœ… @tawdry juniper can now stream until <t:1674254553:f>.

cold lintel
#

Got to go. Cya guys πŸ‘‹

#

@fallen topaz cya dude

velvet sedge
#

teach me that emoji shortcut @calm bay πŸ˜„

velvet sedge
#

yaay

tawdry juniper
#

it is just "." life changed

calm bay
#

@buoyant kestrel i said hi goddammit

vast kettle
calm bay
fallen topaz
#

@calm bay What is the name of this particular syntax:
x = function % Object(args)

calm bay
#

what do you mean name of this syntax?

fallen topaz
#

How can I search information on it lol

#

I want to read about it

calm bay
#

i just overrode the modulus operator

fallen topaz
#

Ohhh

calm bay
#

I don't know if it's called anything

fallen topaz
#

I see, that's so interesting

calm bay
#

in functional programming terms it's the "fmap" operator

#

but that's a rabbit hole

fallen topaz
#

Yeah, I forgot that there are helper functions for those things for any object

timid fjordBOT
#

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__```
fallen topaz
#

Thankyou

fallen topaz
carmine current
#
A cat, mum, our street down was chasing dog this little boy's!
calm bay
#

.xkcd 643

vivid terraceBOT
#

More generally, with great power comes great dEnergy/dt.

calm bay
lime rover
#

can someone correct my code please its not working

pallid jewel
#

any one give python book pdf pleaseπŸ₯Ί

cosmic falcon
#

Hmm what kind of book are you looking for

fallen topaz
#
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

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

fallen topaz
#

!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"))
timid fjordBOT
#

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

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"))
timid fjordBOT
#

@fallen topaz :white_check_mark: Your 3.10 eval job has completed with return code 0.

001 |     #  ###  ###  # #
002 |     #    #    #  # #
003 |     #  ###  ###  ###
004 |     #  #      #    #
005 |     #  ###  ###    #
timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

fallen topaz
#

!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"))
timid fjordBOT
#

@fallen topaz :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |     #  ###  ###  # #  ###  ###  ###  ###  ###    #  ###    #    #    #  ###    #  ###
002 |     #    #    #  # #  #    #      #  # #  # #    #  # #    #    #    #    #    #    #
003 |     #  ###  ###  ###  ###  ###    #  ###  ###    #  # #    #    #    #  ###    #  ###
004 |     #  #      #    #    #  # #    #  # #    #    #  # #    #    #    #  #      #    #
005 |     #  ###  ###    #  ###  ###    #  ###  ###    #  ###    #    #    #  ###    #  ###
cold lintel
#

Yo πŸ‘‹

#

Oh right sure

#

!stream 559903350024568833 30M

timid fjordBOT
#

βœ… @fallen topaz can now stream until <t:1674322010:f>.

cold lintel
#

Ah nice

buoyant abyss
#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

cold lintel
#

"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

timid fjordBOT
#

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.
cold lintel
#

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.

white drift
#

@fallen topaz hey

#

why am i muted?

#

@fallen topaz i am kinda need help, and why am i muted

primal bison
#

hey @calm bay

#

can u help me

primal bison
barren tusk
#

πŸ‡©πŸ‡ͺ

candid sierra
#

on Wednesday I will have an interview for a data engineering job with python and SQL. Fingers crossed. Learned something here...

keen hare
#

!e elif(response==2):
Board = [[1,2,3],
[4,5,6],
[7,8,9]]
for i in Board:
print(i)

timid fjordBOT
#

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

hi, no mic for me

raw rock
#

hello

shell solar
#

hi need some help

wet quiver
primal bison
#

can anyone here help with pandas I have a couple of questions?

waxen fog
warped saffron
primal bison
warped saffron
velvet mortar
#

anyone got a fix for the subprocess.run?

barren tusk
#

damn

manic egret
hallow current
#

print("Cool")

#

πŸ˜”

#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

hallow current
#

!e print("cool")

spice pumice
ebon sky
dense creek
#

@wide aurora what Pycharm theme is that?

#

its pretty cool

#

I'll try it now, thanks!

wide aurora
#

hiberbee dark

round bronze
#

@obtuse knot can you give me screen share ability

obtuse knot
#

Mods only give streaming privileges if they're available to be in vc to supervise, and I'm unfortunately unavailable

round bronze
#

ok

analog arrow
#

@atomic phoenix Do you hear me/us? =)

dreamy merlin
analog arrow
dreamy merlin
analog arrow
# dreamy merlin

Is your foo() correct though? Does it not return " " if there's trailing whitespace?

dreamy merlin
#

iirc it passes

atomic carbon
#

Actually, I want to be a programmer but I don't know what is the first step this.
How should I make it?

dreamy merlin
#

lmao

calm bay
#

was typing in vc0 oops

dreamy merlin
calm bay
#

linear space complexity tho

#

no?

#

parens are confusing me

#

ah yep confusing parens

#

cool

#

yep, that's lazy

rancid echo
#

What does zip do

#

I wanna lesrn more about esoteric python

timid fjordBOT
#
zip

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')
```...
rancid echo
#

Ohhhh

#

Mmmmmmm

#

Yes

#

I know but Its commonly used in esoteric

calm bay
#

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

empty gale
#

!voiceverify

primal bison
short depot
#

!voiceverify

visual stirrup
#

we don't ping admins for help with GitHub, dude.

#

we have a whole help system for you to use.

valid tiger
#

can anyone tell me, how can i get the permission to speak on voice chat 0 channel

timid fjordBOT
#

Voice verification

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

valid tiger
#

ohk

#

!voice

timid fjordBOT
#

Voice verification

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

vernal canyon
#

!voice

timid fjordBOT
#

Voice verification

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

barren tusk
#

Hello'

#

What are you guys talking about?

#

Python is OOP

#

Ruby is at the max of OOP πŸ˜‚

#

O thank you my bad

turbid geyser
#

can someone help with some python database stuff in a call before i cry

somber vessel
turbid geyser
somber vessel
#

Im new

turbid geyser
#

ah ok all good haha

flint echo
#

python -m pip install chatterbot==1.0.4 pytz

fresh sail
#

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

mortal fulcrum
#

i never seem to remember where to find python docs

#

always have to open everythin

cobalt hull
cobalt hull
calm bay
#

(but also, .split() takes linear space)

cobalt hull
#

πŸ‘‹

calm bay
#

No, your code doesn't work for that example LOL

#

" hello "

mortal fulcrum
#

@raw rock here

cobalt hull
raw rock
mortal fulcrum
#

@untold hound you're verified!!πŸŽ‰

raw rock
#

hey speed

#

wasgud

#

we speak ?

#

nice

calm bay
#

the point of the exercise is to use the least amount of space/time asymptotically

cold lintel
#

Phatic expressions πŸ‘‹

mortal fulcrum
#

is it a problem with the module itself?

cold lintel
#

Ooo

mortal fulcrum
raw rock
#

i wish i was a grown up one:{

#

i wanted to give interview questions as well

flint echo
#

why aren't you using pyenv tbf?

#

Chatbot uses SQLLite

#

makes no sense to have this in a folder with thousands of other projects

mortal fulcrum
#

k imma go off a bit

flint echo
#

If its a virus

#

its on hemlock

flint echo
#

should be a tad more secure

cold lintel
#

Not without breaking the Discord ToS rooCop

#

Ahem

flint echo
#

i mean, theres no proof

cold lintel
#

!rule 2 5

timid fjordBOT
cold lintel
#

Erm, maybe you could get Hem's permission to install something that records his messages lol

fresh sail
#

Hey @buoyant kestrel we miss you, may I download all of your messages from discord?

flint echo
#

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

cold lintel
#

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 πŸ˜„

flint echo
#

yup

#

theres netflix streaming support or well was atleast

cold lintel
#

πŸ‘€ πŸ‘€ πŸ‘€

flint echo
#

i mean discord API's suck by default

#

they for some reason parse invalid headers

#

and thus lag

cold lintel
#

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.

obtuse nebula
flint echo
#

no

#

it was because groovy didnt show youtube ads

#

so youtube made no money

cold lintel
#

Erm, @fresh sail, in all seriousness, you can't stream this.

#

I have to put my serious mod hat on.

calm bay
#

must be a nice hat

cold lintel
#

🀠

flint echo
#

i mean although groovy was shut down

#

they are way more bots that stream songs

obtuse nebula
#

and go on another Music Bot banning spree and squash any replacements

flint echo
#

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

obtuse nebula
#

Video is SOOOOOOO expensive

flint echo
#

twitch is not youtube

#

at the end of a day a product by google will be 100x better than any alternitive

cold lintel
#

We will all communicate through dance routines.

flint echo
#

just the amount of storage youtube has is unbelievable

cold lintel
#

You'll have to submit your tax information as an interpretive dance.

untold hound
#

Tik_Tok is the new educational system of the U.S.

flint echo
#

none

#

but tell me the market cap of Gmail vs Yahoo Mail, Icloud, Protonmail all combied

fresh sail
flint echo
#

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

flint echo
#

google codec should also be quite powerful

#

but LTT videos are very high quality

buoyant kestrel
#

Thank you for reigning in these folks, @cold lintel

flint echo
#

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

fresh sail
buoyant kestrel
#

No

haughty silo
#

Good evening

regal grove
#

@rare acorn chatgpt does the same thing too

rare acorn
#
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

primal bison
#

Noo why

gray frost
#

Hii

barren tusk
#

hello

haughty silo
#

Hello

magic pilot
#

can anyone help me here

cunning raven
#

anyone know how to cracka mod?

wise lake
#

Hello

#

@wispy axle

#

What are you up too?

#

Lets move too Voice Chat 0

primal bison
#

` 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)
glossy lintel
#
                        (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

primal bison
#

Are you coding something live?

warped willow
#

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

#

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

β–Ά Play video
#

@dull anvil

#

could i just open "run" and run %PATH%

#

and do I put a folder in there named "ffmpeg"?

grave cape
#

@night lily
no permission to talk on that channel

#

haha okay 50 messages

#

hahah ..... is those counting from this channel

atomic anchor
# glossy lintel ValueError: operands could not be broadcast together with shapes (4,416,416) (4,...
#

This might solve your issue

spare yoke
#

guys can anyone help me in my coding query

barren tusk
#

which language is this?

manic tiger
zenith palm
#

why is rust becoming so popular ? like i hear it everywhere now

limpid crow
#

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

primal bison
#

codinggggg

tidal rapids
#

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]

normal musk
#

not the right channel πŸ™ƒ

gray crypt
spark helm
#

!e```python
def main():
print("Hello, World!")

if name == "main":
main()

timid fjordBOT
#

@spark helm :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, World!
eager heart
#

hello

scarlet mulch
#

!e

timid fjordBOT
#
Missing required argument

code

fallen topaz
spiral tinsel
#

!e

print ("@everyone")
timid fjordBOT
#

@spiral tinsel :white_check_mark: Your 3.11 eval job has completed with return code 0.

@everyone
spiral tinsel
#

lol

#

just imagine 😜

paper ravine
#

!e
print("h")

timid fjordBOT
#

@paper ravine :white_check_mark: Your 3.11 eval job has completed with return code 0.

h
paper ravine
#

!e

input(print(Hello))
timid fjordBOT
#

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

!e

input(print("Hello"))
timid fjordBOT
#

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

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

!e
print("hello world")

timid fjordBOT
#

@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello world
scarlet mulch
#

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

timid fjordBOT
#

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

Why ? (I'm a begginer)

scarlet mulch
#

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

timid fjordBOT
#

@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)
scarlet mulch
#

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

timid fjordBOT
#

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

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

timid fjordBOT
#

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

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

timid fjordBOT
#

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

!cleanban 664628373657485373 1w This is not appropriate at all

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied ban to @ivory gorge until <t:1677196530:f> (7 days).

tender urchin
#

for i in range(69):
print('hi')

#

!e
for i in range(69):
print('hi')

timid fjordBOT
#

@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

tender urchin
#

!e
n= int(input())
for i in range(n):
print('hi')

timid fjordBOT
#

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

!e
password = input("What's your password ?")
passeword = input("Your password :")
if password == passeword:
print("good password !")
else:
print("False password !")

timid fjordBOT
#

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

!e
password = input("What's your password ?")
passeword = input("Your password :")
if password == passeword:
print("good password !")
else:
print("False password !")

timid fjordBOT
#

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

?

spark helm
#

!e```python
def main():
print("hello worls")

timid fjordBOT
#

@spark helm :warning: Your 3.11 eval job has completed with return code 0.

[No output]
spark helm
#

!e print("Hello world")

timid fjordBOT
#

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

Mdr

scarlet mulch
#

!e
print("UwU")

timid fjordBOT
#

@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.

UwU
scarlet mulch
#

Lol

#

!e
print("UwuUuuuU")

timid fjordBOT
#

@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.

UwuUuuuU
scarlet mulch
#

!e
print("sale stalker")

timid fjordBOT
#

@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.

sale stalker
scarlet mulch
#

!e
solal = 13
if solal = 13:
print("Stalker")

timid fjordBOT
#

@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 '='?
scarlet mulch
#

!e
input()

timid fjordBOT
#

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

!e
print("Caca")

timid fjordBOT
#

@scarlet mulch :white_check_mark: Your 3.11 eval job has completed with return code 0.

Caca
timid fjordBOT
#

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

Ϊ©Ψ΅ Ω†Ω†Ψͺ 🀌
tough mortar
#

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

timid fjordBOT
#

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

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

timid fjordBOT
#

@tough mortar :warning: Your 3.11 eval job has completed with return code 0.

[No output]
tough mortar
#

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

timid fjordBOT
#

@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

tough mortar
#

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

timid fjordBOT
tough mortar
#

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

timid fjordBOT
timid fjordBOT
ivory osprey
#

y = list(x)
y[0] = y[0].capitalize()
n = ""
for i in y:
    n += i
print(n)```
#

hhs

#

!e

timid fjordBOT
#
Missing required argument

code

tough mortar
#

y = list(x)
y[0] = y[0].capitalize()
n = ""
for i in y:
    n += i
print(n)```
median coyote
#

print('hello world')

#

!e
print("UwuUuuuU")

timid fjordBOT
#

@median coyote :white_check_mark: Your 3.10 eval job has completed with return code 0.

UwuUuuuU
cursive vector
#

print("HELOHELO")

#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

cursive vector
#

!e
print("helo %%")

heavy crag
#

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

heavy crag
#

i did find the answer

#

its choice vs choices

#

sry cant respond in voice

#

ty for being helpful! appreciate it

timid fjordBOT
#

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

dark pond
#

var = 1

#

var = 1 print(str(var))

#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

dark pond
#

e

#

bruh how does this work?

#

3133

vague oar
#

!e

timid fjordBOT
#
Missing required argument

code

vague oar
#

!e print("Hello World")

#

Like that

timid fjordBOT
#

@vague oar :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World
compact dawn
#

!e for t in range (0,1000) :
print(t)

timid fjordBOT
deep sierra
#

!e l=[1,2,3,4,5]
t=l[-1]
For i in range (5,-1,-1):
l[I]=l[i-1]
Print(l)

floral aspen
#

Your using upper-case I and lowercase i in the same for loop

#

They should both be uppercase

deep sierra
#

!e l=[1,2,3,4,5]
t=l[-1]
for i in range (4,-1,-1):
l[I]=l[i-1]
Print(l)

floral aspen
#

for I in range (4,-1,-1):
l[I]=l[I-1]

#

Like that

deep sierra
#

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

timid fjordBOT
#

@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'?
deep sierra
#

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)

timid fjordBOT
#

@deep sierra :white_check_mark: Your 3.11 eval job has completed with return code 0.

[4, 1, 2, 3, 1]
floral aspen
#

Pythons syntax can be a pain in the a*** sometimes

deep sierra
#

To much case sensitive bro

floral aspen
#

Yeah

deep sierra
wintry roost
#

!e print("hello world")

timid fjordBOT
#

@wintry roost :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello world
scarlet delta
#

!e

timid fjordBOT
#
Missing required argument

code

scarlet delta
#

whatcha coding? @short token

random marsh
#

i think he is afk @scarlet delta

scarlet delta
#

yh

random marsh
#

i checked on him and he does not even say a word

scarlet delta
#

im just watching youtube

#

whatever

#

cya

random marsh
#

i am eating something

sly cairn
#

!eval

print("hello world!")
timid fjordBOT
#

@sly cairn :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello world!
sly cairn
#

!eval

while True:
 print ("evil and twisted")
timid fjordBOT
#

@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

sly cairn
#

:)

#

!eval
inp = input("does this work?")
if inp == yes:
print("hurray!")
else:
print("aww :(")

timid fjordBOT
#

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

!eval

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

sweet lily
#

hi

#

i was wondering

#

can enybody help

#

me for an assgnment i have for school

#

its in jupyter

glad cedar
#

how can socket architecture be implemented in restapi ?

lusty kite
#

Aww yeah

opaque lava
#

!eval

print(os.pwd())
timid fjordBOT
#

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

!eval

print(os.get_cwd())
timid fjordBOT
#

@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'?
opaque lava
#

!eval

print(os.getcwd())
timid fjordBOT
#

@opaque lava :white_check_mark: Your 3.11 eval job has completed with return code 0.

/snekbox
opaque lava
#

!eval

f = wget.download(https://github.com/kkrypt0nn/wordlists/blob/main/names/top_female_names_usa.txt)
timid fjordBOT
#

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

!eval

f = wget.download("https://github.com/kkrypt0nn/wordlists/blob/main/names/top_female_names_usa.txt")
timid fjordBOT
#

@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'
opaque lava
hybrid jungle
#

dang

#

well thannk you i just needed help with a script i didnt know there was a 3 day buffer

lilac delta
#

!eval
print("Hello World!")

timid fjordBOT
#

@lilac delta :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World!
random marsh
#

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

heavy crag
#

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

celest whale
#

!eval

timid fjordBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

celest whale
#

print("Hello World!")

#

!eval print("Hello World!")

timid fjordBOT
#

@celest whale :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World!
hybrid magnet
#

!eval pip install pygame

timid fjordBOT
#

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

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

peak lion
#

My arch linux installation with dwm(as the window manager)

buoyant kestrel
#

Koans or cones

fresh sail
#

you're a Koan

buoyant kestrel
#

❀️

#

Damn it

#

Oh no, am I really going to do this

#

I'm genuinely considering modifying these tiles

#

I hate me

calm bay
#

soh: sine = opposite / hypotenus
cah: cos = adjacent / hyp
toa: tan = opposite/ adjacent
@primal bison

cold lintel
#

I typing was in the wrong channel ;-;

buoyant kestrel
#

Any recommended light weight SVG editor? Literally all I want to do is just make numbers that'll look good with the tiles

primal bison
#

anyone know how to send a message to a disc webhook

jagged granite
#

winget install Inkscape.Inkscape

primal bison
#

or is this wrong channel

cold lintel
#

I'm not affine, I'm afgreat.

jagged granite
#

You can click the JSON button to see the actual data it will be sending

primal bison
# jagged granite https://discohook.org/

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

jagged granite
#

That's a lot of messages

cold lintel
#

The last harry potter game I played was on the gameboy advanced πŸ˜„

buoyant kestrel
#

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

opal gate
fresh sail
#

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.

cold lintel
#

I don't think anything rhymes with Charlie πŸ€”

fresh sail
#

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.

cold lintel
#

They'll be closing down the poem factory soon

buoyant kestrel
#

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

calm bay
#

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.

buoyant kestrel
#

Also that took me way too long to write

#

I prefer mine to be bespoke, hand crafted

#

Oh god damn it

fresh sail
#

Why did Charlie take a job at the orange juice factory?

buoyant kestrel
#

It's 8-8-5-5-8 isn't it

#

I did 7

#

I was crippling myself there

honest pasture
#

for a limerick, I think it's just 5 lines, aabba rhyme

buoyant kestrel
#

It is

fresh sail
#

Because he wanted to concentrate!

buoyant kestrel
#

Oh shit

fresh sail
#

Why did Dylan bring a pillow to the library?

buoyant kestrel
#

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

calm bay
buoyant kestrel
#

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

bronze prism
#

Hi

cold lintel
buoyant kestrel
#

Was attempting to futz with Phaser, one of the JS game libs

fresh sail
#

Why did Dylan buy a bakery?

buoyant kestrel
#

@fresh sail Because they didn't have enough dough?

fresh sail
#

almost πŸ˜„

#

Because he kneaded dough!]

buoyant kestrel
#

Niiiice

#

Man you're on a roll

fresh sail
#

oh.

buoyant kestrel
#

see what I did there

#

Be right back

fresh sail
#

I see.

cold lintel
#

gtg πŸ‘‹

buoyant kestrel
#

Gas prices

#

Me

#

@broken talon Sup

broken talon
#

what are we coding live

buoyant kestrel
#

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

devout gale
#

hey guys

#

can i ask for help here

buoyant kestrel
#

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

devout gale
#

thanks

vernal snow
#

@honest pasture @crystal notch could I have some context

broken talon
#

no

fresh sail
#

Here is the student's dictionary page

broken talon
#

huh

fresh sail
#

A random page from "The original Roger's Thesaurus":

#

The longest word in the English Language

shadow ivy
#

!stream 182894631921516545

timid fjordBOT
#

βœ… @broken talon can now stream until <t:1677278595:f>.

broken talon
#

:O

quick onyx
broken talon
#

none?

quick onyx
#

the cipher?

broken talon
#

it's not a challenge

fallen topaz
#

0x.bee

#

p+3

shadow ivy
#

@frigid sable we have a fellow ksp player

#

apparently ksp2 bad tho

chilly wren
#

is there any good bock

#

to read

fallen topaz
#

@chilly wren You can't talk because you need to verify in voice-verify

shadow ivy
chilly wren
#

ok

shadow ivy
#

!voice

timid fjordBOT
#

Voice verification

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

shadow ivy
#

!help

supple fossil
#
www.open-std.org
(.*)\.(.*)

1 = www.open-std
2 = org

(.*?)\.(.*)

1 = www
2 = open-std.org
fallen topaz
#

(?:)

#

web.xyz

#
/r\w*?/g
r re regex
supple fossil
fallen topaz
frigid sable
#

It has some quirks to it for sure though

supple fossil
#

124124+1421+214+2134

#

(\d*?)\+(.*)

fallen topaz
#

123a4+123123+123123

supple fossil
#

^(\d*?)\+(.*)$

#

^(.*?)\+(.*)$

#

123e10+123123+123123

fallen topaz
chilly wren
#

?

#

what is this

#

is shat gpt so

#

good

#

or

#

not

#

hello

chilly wren
#

h

#

e

#

ll

#

o

#

is

#

any

#

one

#

here

cold lintel
#

Trying to game the system @chilly wren ? 🀨

#

Hello kitty_wave

supple fossil
chilly wren
#

I am sorry

cold lintel
#

Ooh

#

Do you have a specific problem you're trying to solve currently.

#

Yep that's Mustafa.

supple fossil
#

\"((\\\\)*(\\\"|[^\"]))*\"

#

\"((\\\\)*(\\\"|[^\\\"]))*\"

#

\"((\\\\))*(\\\"|[^\\\"]))*\"

cold lintel
#

Oh pithink

#

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

timid fjordBOT
#

@cold lintel :white_check_mark: Your 3.11 eval job has completed with return code 0.

('c',)
cold lintel
#

Yeah I think so

#

Imagine writing it without r"" strings stare

#

Have you played around with parsers much?

#

Yesn't yesnod

#

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 kitty_wave

#

Wdym?

#

Errrrrm, not really my area sorry.

devout gale
#

hey

cold lintel
#

This may consist of source code translation but is more commonly bytecode translation to machine code, which is then executed directly.

#

Β―_(ツ)_/Β―

devout gale
#

soooo

#

no one in the forum

#

and i need help

#

and there is no tutorials

#

im trying to make a player """""""""""class"

cold lintel
#

Yeah, Wikipedia is usually short on details when it comes to these things.

devout gale
#

and my pygame.init is saying expected idented block

#

but those 2 are unrelated

#

and dont matter where i put it

cold lintel
#

Oh right nice πŸ˜„

cold lintel
devout gale
#

if i could stream i would shpw yall me playing

cold lintel
#

!paste

timid fjordBOT
#

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.

devout gale
#

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

cold lintel
#

@devout gale It would be a lot easier if you used the paste-bin linked above.

devout gale
#

ill do that next time

#

im new to the discord

cold lintel
#

Oh really? πŸ˜„

#

Β―_(ツ)_/Β―

#

What was the command you used to view that?

supple fossil
#

strace

#
mprotect(0x4343000, 245760, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x4343000, 245760, PROT_READ|PROT_EXEC) = 0
cold lintel
supple fossil
#
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) 
cold lintel
#

Python is just interpreted.

#

Or the byte-code is anyway.

#

Errrm

#

Riiight I remember something like that from the release stream.

#

Hullo

supple fossil
#
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
cold lintel
#

!stream 319509382889209866 1h

timid fjordBOT
#

βœ… @supple fossil can now stream until <t:1677294774:f>.

supple fossil
#

😊

#

πŸ‘‰ πŸ‘ˆ

cold lintel
#

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 lemon_sweat

#

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

remote hatch
#

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

cold lintel
remote hatch
cold lintel
#

I think I know who you're referring to though πŸ˜„

#

Yep

#

I'm heading off. Cya guys kitty_wave

timber palm
#

Hello

grave rock
#

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

round bronze
#

call

#

anyone

ivory marten
#

helllo @severe atlas

#

how are you doing

severe atlas
#

Hi

ivory marten
#

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

scarlet mulch
#

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

timid fjordBOT
#

@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?
potent wharf
#

hello

#

@drowsy lance hello

#

yes

drowsy lance
#

do you have a mic?

potent wharf
#

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

drowsy lance
#

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(bruh
0.5)
print(bruh2
0.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()

potent wharf
#

yes

#

littile bit

#

yes

#

ok

#

you want both

#

ok wait i check

#

you only want int

#

?

#

@yu can you help this guy

drowsy lance
#
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()
halcyon cargo
#

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?

potent wharf
#

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

chilly wren
potent wharf
#

@drowsy lance you can put in chatgpt

drowsy lance
#

in #math here

timid fjordBOT
#

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

bruh ** 0.5 % 1.0 != 0.0

potent wharf
#

!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(bruh2
0.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()

timid fjordBOT
#

@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.
potent wharf
#

@drowsy lance check i have dm you

timid fjordBOT
#

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

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?