#voice-chat-text-0
1 messages · Page 245 of 1
It was that the server at the time was partnered (prominent) and it was and remains a public server. The voice gate requires both patience and effort to pass, qualities people who get their jollies by screaming and being awful little shits don't tend to have in abundance.
bengal cat?
That’s a cross between leopard and regular cats
*bengals
My friend got it from a prof breeder
So I think either it’s pure leopard or bengal
The leopard cat (Prionailurus bengalensis) is a small wild cat native to continental South, Southeast, and East Asia. Since 2002 it has been listed as Least Concern on the IUCN Red List as it is widely distributed although threatened by habitat loss and hunting in parts of its range.Historically, the leopard cat of continental Asia was considere...
The Bengal cat is a domesticated cat breed created from a hybrid of the Asian leopard cat (Prionailurus bengalensis), with domestic cats, especially the spotted Egyptian Mau. It is then usually bred with a breed that demonstrates a friendlier personality, because after breeding a domesticated cat with a wildcat, its friendly personality may not ...
|
mods don't come on weekends
True that 😦
add your packages directory to gitignore
great.. then i'll have 907 to worry about
!stream 717749310518722691
✅ @whole bear can now stream until <t:1705775813:f>.
there is some cat pics above
i cant see are those files deleted
✅ @whole bear can now stream until <t:1705775967:f>.
5 mins to start the stream, but then you can keep streaming indefinitely.
Yep
!stream 425552190283972608
✅ @peak depot can now stream until <t:1705776031:f>.
Get social with us at:
http://www.facebook.com/smitegame
http://www.twitter.com/SmiteGame
http://www.twitter.com/SmitePro
Become Godlike in SMITE, the free-to-play action MOBA featuring legendary mythological icons. Wield Thor’s hammer, turn your foes to stone as Medusa, or flex your divine power as one of 100+ playable Gods. No matter your ski...
Yeah, that's correct.
barti it aint working
My ps4 takes 5 min to load up rdr2
got a party going on tonight? 😄
Just kidding haha
The time stamp? Yeah, discord has a special syntax for it: https://discord.com/developers/docs/reference#message-formatting-formats
My username is actually a reference to rdr2
Yo
Can you give me stream perms again?
!stream 717749310518722691 30M
✅ @whole bear can now stream until <t:1705777834:f>.
We have a few videos yeah. We hosted a couple of python release live streams too.
We have 6.8K subscribers lol
they dont wanna kill the other things in !res man 😂
thats why they are not making content
Your stream doesn't seem to be starting on my end?
your stream doesn't seem to be working?
i have joined it since start , i dont see anything
I didn't come here to be attacked 🥴
Yeah. Although it's always a matter of finding people who will put in the time to maintain it.
you can do it again
k
Does this mean they can start a stream during the next 30 minutes or streaming in general is only allowed until the 30 minutes are up? (is the stream forcefully stopped?)
start
we got mods ,dw , they will permit you , you can just ask nicely
Cya 👋
you know what, I could start streaming now that I don't have a potato laptop, a little busy for that though
maybe one day I'll stream hacking on pip
you prob wont since there has to be a moderator during stream to well , moderate the stream
Mr. Hemlock our all mighty voice lead 
i am not the mod here 😅
you can see it since i have no role called moderator too 🥴
While we have no formal policy, granting longterm or perm VC is conventionally reserved to moderators who often moderate VC
Hemlock is our most prolific VC moderator
btw charizard i am unable to see your stream
the chess is too powerful
nvm , it works now
we have the next chess grandmaster here
my pc crumpling by the sheer dimensions of chess
(ik that sentence doesnt make sense )
boop
oof backranks are pain
maybe :)
I wish
sure ig ill play chess
I am busy unfortunately
yes , hold on let me send my username here
!echo we mayyyy have a command
we mayyyy have a command
i_am_saul_goodman
I'll catch y'all later 👋
Ik
i did 2 blunders lol
4
you fought well
You too
it was not a fair fight haha but you still fought pretty well (i am 1200 on my main acc 😅 )
Bruh you were trolling
😅
but i seriously think that you will do good , since you played logical moves , attacking pieces when it made sense
alr8 , i gtg , see yall again 👋 😄
Ok bye
@odd nymph 👋
heyy
Wait come back
I've got mad's stream running, but I'm actually reading something else
👀
¯_(ツ)_/¯
I can't answer that lol
Cya 👋
Well, "watching"
Mebe
I gotta go though cya 👋
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@glad quartz 👋
bruh
i have to be in here for 3 days to speak
wild
makes sense
can you guys help me with something
one sec
can you help me with a code that calculates the volume and surface area of a rectangular based pyramid
this is what i ahve
also school only wants to use google colab so idk fi that makes a difference
the math works
but the problem is that i need it to stop and tell the user to either put in a number above 0 or not to put in a number
i got help from someone else and they helped somewhat but now it doesnt continue after the loop
cause it jsut breaks
so idk what to do now
yo
idk that what person told me to do
i dont think so
the math sint the problem
yea
while True:
l = float(input("Put in the length of the base (number > 0) or press q to quit: "))
also love that odd white spacing
how is that running with one ws 2 spaces and other 8 spaces
it jsut stops the code
if there all greater than zero
how do i make it stop the loop yet continue with the code
yep
but i need it to continue once tis good
k lemme try
!code
very intresting
ok everything works now
now the only thing left
is that if someone puts in something other than a number i aslo need it to continue the loop and not jsut cause an error
idk
i think so
i dont fully remember
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | c
letter = 'a'
print(letter)
letter = 'b'
print(letter)
letter = 'c'
print(letter)```
!e py for i in range(5): print(i)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
i think so
!e py for letter in 'abcdefg': if letter == 'c': print('!') continue print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | !
004 | d
005 | e
006 | f
007 | g
@hearty oyster 👋
yes
!e py int('blah')
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | int('blah')
004 | ValueError: invalid literal for int() with base 10: 'blah'
Brother I want some idea related to python
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
!e py print('Start.') try: print('Hello!') except ValueError: print('Caught.') print('Stop.')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Start.
002 | Hello!
003 | Stop.
somewhat
!e py print('Start.') try: int('blah') except ValueError: print('Caught.') print('Stop.')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Start.
002 | Caught.
003 | Stop.
so what your trying to say is if i do this and someone causes an error because they didn't put in the right thing it will catch that and restart the loop so they can try again
and put in the right thing
k
i might need a little bit of assitance onw here to put this into my code
sorry i would put this where
is that 1 space indentation? 😂
4 spaces
!code
for a in range(3):
for b in range(3): # 4
... # 8```
like four space then l
in colab it doesnt owrk
if i do four
yea
it says indentation error
and stops
jeez. do you wanna read all the lines 😂
send code here.
sorry could you repad jsut the top half
after : i think always you need to indent
i know you can use ; in python 😂
ok so where would i put the loop you were talking about earlier
useful for python -c '...'
where would you reccomend i nest it
How do I get the permission to voice chat? i. e. mic?
the floats i guess because if someone puts in a letter or another symbol it causes an error
Thanks. Let me see.
LOL
People don't know to read anymore.
Like joker said, "Nobody is civil anymore!"
!e py print('Start.') try: int('blah') except ValueError: print('Caught.') print('Stop.')
would you use this
im a littler confused
ohhhh
so i would put try underneath the while loop
or
You would put in on the while loop block
like i would put try aboe the l = ... etc.
above*
and would that be four indents
oh
would the l = then bee two indents
be
!e
code
oops
@stuck furnace sorry for the ping.. can i get stream perms? (quite ok if you're busy elsewhere)
while True:
try:
f = float(...)
...
except ValueError:
...```
oh ok
You could use formatter extension in vs code to support you but then it would deter your learning.
alright i waited 5 mins for a response
i gotta turn my attention back to the code
mods be like i don't get paid to work on a weekend
yes
is continue 1 indent?
or 2
sorry could you repeat that
k
so this should work
IT WORKS
yay
yes
yea
it all works
so is there any other way that it could break?
i mean like an error
so if someone put in something bad it will cause an error
or is everything good
yay it all works
!code
i would say py
`
import math
print("Volume Calculator for a rectangular based pyramid!")
while True:
try:
l = float(input("Put in the length of the base: "))
w = float(input("Put in the width of the base: "))
h = float(input("Put in the height of the pyramid: "))
except ValueError:
print("Please put in a number")
continue
if l <= 0 or w <= 0 or h <= 0:
print("Please make all the numbers larger than 0")
if l > 0 and w > 0 and h > 0:
break
b = l * w
volume = 1/3 * b * h
print("The Volume of the pyramid is: {:.2f}".format(volume))
print( )
print("Surface Area Calculater for a rectangular based pyramid!")
sa = l * math.sqrt(h**2 + (w/2)**2) + w * math.sqrt(h**2 + (l/2)**2) + l * w
print("The Surface Area of the pyramid is: {:.2f}".format(sa))
yea
yay
ty
lets go
for my assingment i have to make two more
but they shouldnt be to ahrd now
no
they said we were aloud internet references
i need to make an annuity calculator now
nevermind
not making that
im doing one called 3n+1 now
hmmmm
!e py import math print(math.sqrt(42)) print(42 ** .5)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 6.48074069840786
002 | 6.48074069840786
sorry i like my name
i need to do this next
Write a program that will accept a positive integer as the input, and do one of two things:
If the number is even, divide it by two
If the number is odd, multiply it by three then add 1
The program should then repeat this process and count how many times it needs to repeat this until the value is equal to 1. For example, if given the number 5 your program should determine it takes 5 steps. As it goes through the sequence 5 →16 → 8 → 4 → 2 → 1
one sec
how does it know if its odd or even
modulus
%
You can screenshot
yea but my computer doesnt have inf storage
!e py if -1: print('A') if 0: print('B') if 1: print('C')Zero is 'falsy', nonzero is 'truthy'
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | A
002 | C
what
!e py print(not -1) print(not 0) print(not 1)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
003 | False
!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 formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
Currently only 3.12 version is supported.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e ```py
print('Hello, world.')
print('Goodbye.')
```
!e
print("hi")
@near nest :white_check_mark: Your 3.12 eval job has completed with return code 0.
hi
Write a program that will accept a positive integer as the input, and do one of two things:
If the number is even, divide it by two
If the number is odd, multiply it by three then add 1
The program should then repeat this process and count how many times it needs to repeat this until the value is equal to 1. For example, if given the number 5 your program should determine it takes 5 steps. As it goes through the sequence 5 →16 → 8 → 4 → 2 → 1
!e py for i in range(10): print(i, i % 2)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0 0
002 | 1 1
003 | 2 0
004 | 3 1
005 | 4 0
006 | 5 1
007 | 6 0
008 | 7 1
009 | 8 0
010 | 9 1
i have the first part down
now its just the make it so it is equal to one
The program should then repeat this process and count how many times it needs to repeat this until the value is equal to 1. For example, if given the number 5 your program should determine it takes 5 steps. As it goes through the sequence 5 →16 → 8 → 4 → 2 → 1
this part it confusing
you need to put a counter.
idk
!e py v = 5 v = v + 1 print(v) v += 1 print(v)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 6
002 | 7
!e py v = 5 v = v * 2 print(v) v *= 2 print(v)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 20
!e py v = 5 v = v / 2 print(v) v /= 2 print(v)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 2.5
002 | 1.25
i learn python and think if i must learn Flet with it to build android apps by python
what about you
!e
x = 0
for x in range(5):
x+=1
print("Iteration : "+str(x))
@near nest :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Iteration : 1
002 | Iteration : 2
003 | Iteration : 3
004 | Iteration : 4
005 | Iteration : 5
!e py for i in range(1, 6): print(i)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
!e py for i in range(5): print(i + 1)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
GTG 👋
Some years ago someone asked whether it would make sense to switch Python to a PEG parser. (Or a PEG grammar; I don’t recall exactly what…
!e
hello = "hello"
hello = print
hello("world")
@idle moss :white_check_mark: Your 3.12 eval job has completed with return code 0.
world
anyone want tech me and let me join with him for learn
im completely lost
@whole bear 👋
Hi
Write a program that will accept a positive integer as the input, and do one of two things:
If the number is even, divide it by two
If the number is odd, multiply it by three then add 1
The program should then repeat this process and count how many times it needs to repeat this until the value is equal to 1. For example, if given the number 5 your program should determine it takes 5 steps. As it goes through the sequence 5 →16 → 8 → 4 → 2 → 1
this is what i need to do
is n%2 ==0 even or odd
i frogot
forgot
# first we define a function which takes this integer input
def until_one(positive: int, count = 0):
if positive == 1:
return count
# is odd
if positive & 1:
return until_one((positive * 3 + 1), count = count + 1)
else: # is even
return until_one((positive >> 1), count = count + 1)
k i will try
explanation of bit operations used
to figure if a number is even you can do a bitmask of 1, this is much faster than modulo 2
5 & 1 == 1
4 & 1 == 0
this is because we are masking everything but the last bit, which will always denote if a number is even or odd
Then the flooring divide by two denoted by right shift 1
4 >> 1 == 2
5 >> 1 == 2
so what would i do with this now
im very new
Write a program that will accept a positive integer as the input, and do one of two things:
If the number is even, divide it by two
If the number is odd, multiply it by three then add 1
The program should then repeat this process and count how many times it needs to repeat this until the value is equal to 1. For example, if given the number 5 your program should determine it takes 5 steps. As it goes through the sequence 5 →16 → 8 → 4 → 2 → 1
call waht function
`
# first we define a function which takes this integer input
def until_one(positive: int, count = 0):
if positive == 1:
return count
# is odd
if positive & 1:
return until_one((positive * 3 + 1), count = count + 1)
else: # is even
return until_one((positive >> 1), count = count + 1)
if __name__ == "__main__":
while True:
positive = int(input("Enter a positive number: "))
if positive < 1:
print("invalid input, quitting")
quit()
print("output: ", until_one(positive))
Wait, why are we talking bitwise operators for this? We aren't working at the bit level.
he isnt in vc
I just started explaining as though you are here lol
how do i make it so it stops asking ocne your done
so you just need to do it once
also
if i put in a or / for example would it still work
!e
x = 22
if x % 2 == 0:
print("yes")
else:
print("No")
@idle moss :white_check_mark: Your 3.12 eval job has completed with return code 0.
yes
you can enter a negative number or invalid syntax
the bitmask of one is much more efficient
if not optimized into the bitmask
as the trailing bit always denotes whether positive or negative, so if you mask everything outside that bit you can quickly figure out what you're looking for
not pos or neg, I mean even or odd
but you know what I mean
!e
x = 22
if x / 2 == 1:
print("x : yes")
else:
print("x : No")
@idle moss :white_check_mark: Your 3.12 eval job has completed with return code 0.
x : No

what is this?
the obly problem is
i dont want it to continue the loop once it is done
and says the number
i do not know
!e
# first we define a function which takes this integer input
def until_one(positive: int, count=0):
if positive == 1:
return count
# is odd
if positive & 1:
return until_one((positive * 3 + 1), count=count + 1)
else: # is even
return until_one((positive >> 1), count=count + 1)
assert(until_one(5), 5)
@lapis hazel :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | /home/main.py:11: SyntaxWarning: assertion is always true, perhaps remove parentheses?
002 | assert(until_one(5), 5)
the conjecture only holds for postiive numbers, so yeah things which aren't negative like -1
what do you mean
with this?
# first we define a function which takes this integer input
def until_one(positive: int, count=0):
if positive == 1:
return count
# is odd
if positive & 1:
return until_one((positive * 3 + 1), count=count + 1)
else: # is even
return until_one((positive >> 1), count=count + 1)
if __name__ == "__main__":
while True:
positive_inp = int(input("Enter a positive number: "))
if positive_inp < 1: # this should not allow negative numbers
print("invalid input, quitting")
quit()
print("output: ", until_one(positive_inp))
mine works:
Enter a positive number: 8
output: 3
Enter a positive number: 300000
output: 52
Enter a positive number: 300000000000
output: 346
Enter a positive number: 300000000000000000000000000000
output: 517
Enter a positive number: 3000000000000000000000000000000000000000000000000000000
output: 980
Enter a positive number: -1
invalid input, quitting
!e
x = 1
y = -1
if x < 0 or y < 0:
print("yes")
elif x > 0 or y > 0:
print("No")
@idle moss :white_check_mark: Your 3.12 eval job has completed with return code 0.
yes

bitmasks are cool, you can use them like modulo for any power of 2
!e
x = -1
if x < 0:
print("yes")
elif x !< 0:
print("No")
@idle moss :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 4
002 | elif x !< 0:
003 | ^
004 | SyntaxError: invalid syntax
!e
x = -1
if x < 0:
print("yes")
else:
print("No")
@lapis hazel :white_check_mark: Your 3.12 eval job has completed with return code 0.
yes
cant use !< , oh who build this language
with?
just type -1
also i think i messed osmerthing up
or anything which isn't a positive number and it will break
!e
while True:
print("Hello World")
@idle moss :x: Your 3.12 eval job has completed with return code 143 (SIGTERM).
001 | Hello World
002 | Hello World
003 | Hello World
004 | Hello World
005 | Hello World
006 | Hello World
007 | Hello World
008 | Hello World
009 | Hello World
010 | Hello World
011 | Hello World
... (truncated - too many lines)
Full output: too long to upload
print("3N+1 problem!")
def until_one(positive: int, count = 0):
if positive == 1:
return count
if positive & 1:
return until_one((positive * 3 + 1), count = count + 1)
else:
return until_one((positive >> 1), count = count + 1)
if __name__ == "__main__":
while True:
try:
positive = int(input("Enter a positive number: "))
except ValueError:
print("Please put in a number")
continue
if positive <= 0:
print("invalid input, quitting")
quit()
print("output: ", until_one(positive))
i was making it so if someone put in a letter or something / that it would say that and continue
but i think i did something else in the process
def until_one(positive: int, count=0):
if positive == 1:
return count
if positive & 1:
return until_one((positive * 3 + 1), count=count + 1)
else:
return until_one((positive >> 1), count=count + 1)
if __name__ == "__main__":
print("3N+1 problem!")
while True:
try:
positive_inp = int(input("Enter a positive number: "))
if positive_inp <= 0:
print("invalid input, quitting")
quit()
print("output: ", until_one(positive_inp))
except ValueError:
print("Please enter a positive number.")
dpes that work?
what number are you giving it
what number
a negative one
wat
you cannot give a negative number to it
that's in the problem statement, takes a positive number
the conjecture does not hold for negative numbers
the point is it isnt supposed to break and then continue the loop after telling you not to put in negativer number
i mean
how are you even giving it a negative number
there is a check that says invalid input
Enter a positive number: -1
invalid input, quitting
and then the error happens
?
your computer is weird, so you only want to take one input?
?
def until_one(positive: int, count=0):
if positive == 1:
return count
if positive & 1:
return until_one((positive * 3 + 1), count=count + 1)
else:
return until_one((positive >> 1), count=count + 1)
if __name__ == "__main__":
print("3N+1 problem!")
while True:
try:
positive_inp = int(input("Enter a positive number: "))
if positive_inp <= 0:
print("invalid input, quitting")
quit()
else:
print("output: ", until_one(positive_inp))
except ValueError:
print("Please enter a positive number.")
u can use this I guess but idk what is wrong with your computer running code post quit instruction
like it should exit
are you saying you only want it to take this input once and not ask again
im saying if it is a negative number i want it to start again
but if it is positive i want it to stop
so bascally
if . > 0
break
def until_one(positive: int, count=0):
if positive == 1:
return count
if positive & 1:
return until_one((positive * 3 + 1), count=count + 1)
else:
return until_one((positive >> 1), count=count + 1)
def invalid_inp():
print("[ERROR] Please enter a positive integer or q to quit.")
if __name__ == "__main__":
print("3N+1 problem!")
while True:
try:
inp = input("[PROMPT] Enter a positive number [q to quit]: ")
if inp.startswith('q'):
print("[STATUS] Quit instruction received, stopping")
break
elif (int_inp := int(inp)) > 0:
print(f"[INFO] Output for {int_inp}: ", until_one(int_inp))
else:
invalid_inp()
except ValueError:
invalid_inp()
how is this
it works
but i still need it to stop ocne you put in a positive number
andn it gives you the answer
is that part of the problem? that just sounds less fun to use, but sure. after the INFO just say break
ty
@subtle nexus This is where I'm hanging out these days in the vc.
What is the vc
Voice chat
!e ```py
class MyClass:
pass
a = type(MyClass)
b = type(a)
print(a, b)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
<class 'type'> <class 'type'>
print(enemy.type)
@proud tangle Can you give me stream perms? I wanna stream chess
!d isinstance
isinstance(object, classinfo)```
Return `True` if the *object* argument is an instance of the *classinfo* argument, or of a (direct, indirect, or [virtual](https://docs.python.org/3/glossary.html#term-abstract-base-class)) subclass thereof. If *object* is not an object of the given type, the function always returns `False`. If *classinfo* is a tuple of type objects (or recursively, other such tuples) or a [Union Type](https://docs.python.org/3/library/stdtypes.html#types-union) of multiple types, return `True` if *object* is an instance of any of the types. If *classinfo* is not a type or tuple of types and such tuples, a [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) exception is raised. [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) may not be raised for an invalid type if an earlier check succeeds.
Changed in version 3.10: *classinfo* can be a [Union Type](https://docs.python.org/3/library/stdtypes.html#types-union).
@ivory stump Can I get stream perms?
Sry I can't unless I'm in vc to supervise, and I'm about to sleep so I can't join vc
ask a user for their name and age, then return a string that greets them.
print "hello my name is [name], and i am [age] years old."
^ this is for you mayor charizard
!e py text = 'apple' + 'pear' print(text)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
applepear
GET INPUT
ASSIGN NAME to VARIABLE NAME
GET INPUT
ASSIGN AGE to VARIABLE AGE
PRINT STRING "hello my name is NAME_VARIABLE, and i am AGE_VARIABLE years old."
!e py food = 'apples' print(f'I really enjoy eating {food}.')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
I really enjoy eating apples.
String interpolation using f-string syntax.
!e
def getIndexes(s: str, sub: str, start=0):
# find all indexes where `sub` occurs in `s`
def _getIndexes(s, sub, start, helpDict):
return helpDict[not (index := s.find(sub, start+1))+1] or (index, *_getIndexes(s, sub, index, helpDict))
return _getIndexes(s, sub, 0, {True:[None],False:False})[:-1]
print(getIndexes("Don't--Do--This", "--"))```
@woeful wyvern :white_check_mark: Your 3.12 eval job has completed with return code 0.
(5, 9)
name = input("enter your name")
`~
Three at each end for the multiline.
k
!e
Name = input("Enter your name: ")
Age = input("Enter your age: ")
print(f"Hello {Name} of {Age} years old")
!code
Name = input("Enter your name: ")
Age = input("Enter your age: ")
print(f"Hello {Name} of {Age} years old")```
not much!
@pine depot :white_check_mark: Your 3.12 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
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
YouTuber, Corey Schafer, playlists, Python for Beginners.
!d re.Match
class re.Match```
Match object returned by successful `match`es and `search`es.
Changed in version 3.9: [`re.Match`](https://docs.python.org/3/library/re.html#re.Match) supports `[]` to indicate a Unicode (str) or bytes match. See [Generic Alias Type](https://docs.python.org/3/library/stdtypes.html#types-genericalias).
Match.span([group])```
For a match *m*, return the 2-tuple `(m.start(group), m.end(group))`. Note that if *group* did not contribute to the match, this is `(-1, -1)`. *group* defaults to zero, the entire match.
!d re.Match.start
Match.start([group])``````py
Match.end([group])```
Return the indices of the start and end of the substring matched by *group*; *group* defaults to zero (meaning the whole matched substring). Return `-1` if *group* exists but did not contribute to the match. For a match object *m*, and a group *g* that did contribute to the match, the substring matched by group *g* (equivalent to `m.group(g)`) is
```py
m.string[m.start(g):m.end(g)]
``` Note that `m.start(group)` will equal `m.end(group)` if *group* matched a null string. For example, after `m = re.search('b(c?)', 'cba')`, `m.start(0)` is 1, `m.end(0)` is 2, `m.start(1)` and `m.end(1)` are both 2, and `m.start(2)` raises an [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError) exception.
An example that will remove *remove\_this* from email addresses:
yeah
https://pypi.org/project/regex/ is the library
@hot flame 👋
Tags are the method for assigning and referencing memory locations in Allen Bradley Logix5000 controllers. No longer are there any physical addresses such as N7:0 or F8:7 which use symbols to describe them. These have been replaced with tags which are a
@lunar rover 👋
def findSubstringIndices(s, sub):
return [match.start() for match in re.finditer(re.escape(sub), s)]
I literally ran these tests two weeks ago and they passed. nothing should've changed lol
ru on linux water
!e ```py
a = b"test"
print(a[0])
print(a[0:1])
@uneven urchin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 116
002 | b't'
yup
ru running venv pip?
or trying to use the system installed pip (that you arent supposed to touch)
I am not
!d difflib
Source code: Lib/difflib.py
This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs. For comparing directories and files, see also, the filecmp module.
i see that you are running system environment pip tho
oh
well shit, im out of ideas
!pypi fuzzywuzzy
can you review this guardrail -- https://github.com/trustwiseai
hmm I wonder if the test harness broke the common wheels cache
if it would be helpful or not
debugging pip's test suite
@woeful wyvern @whole bear
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I think I fixed it
I want to test guardrails for an LLM app
pip's test suite downloads a set of wheels for use in the test suite. those wheels are stored in a cache. somehow that cache was pruned and it was stale
mistral 7b
rm'ing the cache directory worked (*mostly)
anyway, these two errors messages are what I'm working on
sounds good
!steam 717749310518722691
!stream 717749310518722691 10M
✅ @whole bear can now stream until <t:1705800011:f>.

I am great at this 😅
after and before
sublimation
I'm sorry, I geninuely did not know 
lol
it's a bit cursed that pip wheel accepts editable requirements
@proud tangle I am going to head out very soon (~2-3 minutes), are you going to be around to supervise?
dinner is coming ;-;
oof
I was hoping you'd stick around lmfao
I mean, I could stick around, but I'll be doing other work so I'm not sure if I'd be the best mod lol
sending
us essentially
yeah lol
@lunar rover
Login to your Chess.com account, and start enjoying all the chess games, videos, and puzzles that are waiting for you! If you have any issues while logging into your account, do not worry. You can recover your password, or drop us a message and we will gladly help.
I mean, I've been programming for nearly 5 years so I'm not terrible at it
And yes, I will be heading out now
@whole bear sorry, but it's time to end the stream now.
Thanks, have a good one y'all :)
GG
gg
@ruby fossil 👋
@somber heath Howdy
@solid pagoda 👋
hi
oh
i haven't watched avatar
btw i have a backend related question that should i store about theme preferences in cookies?
i heard of using localStorage
@whole bear What does the first instruction in #voice-verification say?
hello
@whole bear 👋
:incoming_envelope: :ok_hand: applied timeout to @hollow crystal until <t:1705833782:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
!e ```py
def func(**kwargs):
print(kwargs)
var = 123
func(var=)```
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 5
002 | func(var=)
003 | ^^^^
004 | SyntaxError: expected argument value expression
@somber heath 👋
@somber heath hello
Why I cant talk
@thorn steppe 👋
@thorn steppe #voice-verification
anybody know how to print 9000 lists quickly xddd/!?!?
somelist = ['a', 'b']
for i in range(9000):
print(somelist)
a ty
thats just one list 9000 times
he never said the lists couldn't all be the same
not gonna introduce additional limitations if he doesn't specify them
also wouldnt it be a little much with 9000 lists
what be a little much
like 9000 different lists would be super weird
and just flat out ALOT
also say hi to my snake noodle :)
but very easy
for i in range(9000):
print([i])
each list is different
exactly
per list?
!e py for i in range(9000): print(range(i,i+9000)
@scarlet halo :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print(range(i,i+9000)
003 | ^
004 | SyntaxError: '(' was never closed
close ur parentheses lol
@scarlet halo :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | range(0, 9000)
002 | range(1, 9001)
003 | range(2, 9002)
004 | range(3, 9003)
005 | range(4, 9004)
006 | range(5, 9005)
007 | range(6, 9006)
008 | range(7, 9007)
009 | range(8, 9008)
010 | range(9, 9009)
011 | range(10, 9010)
... (truncated - too many lines)
Full output: unable to upload
@scarlet halo :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | range(0, 9000)
002 | range(0, 9001)
003 | range(0, 9002)
004 | range(0, 9003)
005 | range(0, 9004)
006 | range(0, 9005)
007 | range(0, 9006)
008 | range(0, 9007)
009 | range(0, 9008)
010 | range(0, 9009)
011 | range(0, 9010)
... (truncated - too many lines)
Full output: unable to upload
dum dum
now each list is longer than the last
this was good
except you need to convert to list
!e
for i in range(9000):
print(list(range(i,i+9000)))
@gentle flint :x: Your 3.12 eval job has completed with return code 143 (SIGTERM).
001 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220
... (truncated - too long, too many lines)
Full output: too long to upload
run it in your own console if you want the output
ikr lol
well yes
at 9000-1+9000-1
if you want it to run from 1 to 9000 instead of 0 to 9000-1 you can do:
nah im good
for i in range(1, 9001):
print(list(range(i,i+9000)))
Hello Guys!
henlo
@uncut prism 👋
oh mb
Sudden, unexpected sneezing.
CRUD just means 'create read update delete'
@opaque scroll 👋
yo
@uncut latch 👋
Yo!
btw @somber heath do you code in python!?
I do.
I just need to know that how do you learnt python...I always loose my motivation when solving exercises
I read through the pdf version of the documentation, watched YouTube videos and came here to Python Discord.
Writing projects helps.
not voice verified yet
He is my teacher
something based
😂
you won't guess it
@sleek summit
If your backend / server is same then it doesn't matter if you have multiple clients like web and mobile
1280x1024
aya
gg
tha
ye but how do i sync up web and mobile version
this is the 3rd screen
cool
I thought he was askin tech stack
every version has that bug
just put your config in a github repo
:q!
ye
but its mine. you should make your own
you can
nvim is a PDE.
personal development env not in IDE
I have configured it as per my use
i on kali
raspbian is best?
it's best for raspberry pi
black arch is better :)))))))))))
just put it on a full power pc
also temple os
if you have arm based processor then go for it
isin't kali debian based?
yes
so there isn't much different in terms of packages
"windows is cool" thats a first timer
intel
As TheDistroHopper,
I want you all to know that distro doesn't matter at all. You can install anything from source on any distribution
virtual box is for boomers. qemu is better :)))
true
dir /b
😂
it is
It is Hachintosh
macos is alose required for ios development
f'ing xcode
f apple
@sleek summit thats
BS
i should learn how to code and stuff
thats even more stupid 😂
🥲
😂
i wanna switch to android off my apple
termux is good
Weren't they working on a version of Ubuntu that you can use both for mobile and desktop?
That's the job of Virtual Machines. It is already there
so why would these phones be better than something like apple? i dont really like apple but i wanna hear ur opinions
bc apple as a company is just focused on making money. and doesn't care about anything else.
this is true for google as well but the difference is that you have way more freedom with android deveices. bc the source code is open
same goos for linux vs windows vs macos
linux is the best bc its open source
🤔 interesting, why thank you
i think of apples logo as the eves bitten apple given by 🐍 haha
doeant it release like a lot of radiation or somethin? idk lol
imma go mimis 😴
gnu/pass
will check it out
android emulator is a paaaaaaaaaaaaaaaaaaaain in the AAAA33333333
the hole mobile development is just ahhhhhhhhhhhhhhhhhh
java/kotlin for android
swift for ios
yeah but regardless of your stack you need android sdk's
gtg bye
bye
lua
:incoming_envelope: :ok_hand: applied timeout to @grizzled siren until <t:1705858953:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
hi
hello
hi, can somebody help with exercise 8 pls?
Yes
:incoming_envelope: :ok_hand: applied timeout to @steel torrent until <t:1705888131:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
@surreal hedge Can you mod the Vc? so that I can stream chess?
Retrieving GEOData
Download the code from http://www.py4e.com/code3/geodata.zip - then unzip the file and edit where.data to add an address nearby where you live - don't reveal where you live. Then run the geoload.py to lookup all of the entries in where.data (including the new one) and produce the geodata.sqlite. Then run geodump.py to read the database and produce where.js. You can run the programs and then scroll back to take your screen shots when the program finishes. Then open where.html to visualize the map. Take screen shots as described below. Make sure that your added location shows in all three of your screen shots.
stuck on the last step when I try to open where.html
Hello! :)
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
What are we working on?
nathing
👀
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
You have sent less than 50 messages.
what ????????
Lol
@rugged wasp 👋
Hi
I do DMs
YouTuber, Corey Schafer, playlists, Python for Beginners. @whole bear
Hey @tall ridge 👋
because my englaish is 0 hhhhhhhh
Ah OK:(
@steel torrent #bot-commands
@steel torrent Google translate?
@steel torrent , you can also try expressing yourself in your favorite language and perhaps one of us will understand
I know a tiny bit of Arabic
yes hhhh
morocco
If you don't speak english :
print("Go and learn it")
hhhhhhhhhh
سلام
كيف حالك
FWIW, I thought that @steel torrent had a specific question/comment
خير
Same
no thank you bro
.github/workflows/main.yml line 33
submodules: 'recursive'```
Have you checked our HitHub Acfions?
GitHub* lol my keyboard sucks
no morocco
نعم، اصف
where are you from
oh nice i love usa
You could pay to make GHA faster right?
True true
I meant for running large test suites
!tvmute @steel torrent 3D Sending spam messages to pass our voice gate is strictly prohibited.
:incoming_envelope: :ok_hand: applied voice mute to @steel torrent until <t:1706149031:f> (3 days).
Thank you
Can you get me stream perms
!tvmute @grizzled siren 3D Spamming to pass our voice gate is strictly prohibited.
:incoming_envelope: :ok_hand: applied voice mute to @grizzled siren until <t:1706149194:f> (3 days).
What's 3D?
I will just stream chess

@shrewd ibex
oh yo
Three days. The voice mute will expire and be lifted in three days.
Ah, thanks :)
not really, but it's a habit from typing in minutes which is case sensitive
Yeah fair
Waterlily Wanna beat me in chess?
Rules gotta be followed /shrug
@whole bear different vc?
@whole bear also, forgot to follow up, I'm not available. I'm just ignoring work by briefly checking PyDis :P
