#voice-chat-text-0
1 messages ยท Page 770 of 1
!e python def gen(): yield None g = gen() if g: print('Hello, world.')
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
Hm?
name = "Gre12g"
if any(letter.isdigit() for letter in name):
print("Illegal characters found")
else:
print("no illegal characters found")
is far easier if the only constraint is numbers
The set(name) - allowed has something to do with the "truthiness" of sets
i = 0
while True:
if i == 0O7:
break
else:
print(i)
i += 1
!e
name = "regular"
num = "dasda5sdsa"
sym = "poiuy$fsd"
print(any(not i.isalpha() for i in name))
print(any(not i.isalpha() for i in num))
print(any(not i.isalpha() for i in sym))
@noble copper :white_check_mark: Your eval job has completed with return code 0.
001 | False
002 | True
003 | True
When you remove all allowed characters from the user input, it can either return an empty or a non-empty set; in the case that it's non-empty e.g. there's no disallowed characters, the if won't ever run
but honestly, if you only want to check if it only contains letters (which I suspect is what you want) the easiest thing to do is
name = "Gre12g"
if name.isalpha():
print("No illegal characters found")
else:
print("Illegal characters found")
then you don't need to do all this complex stuff
how do people remember/know all these methods ?
I googled the precise name of the function, 'cuz I'd forgotten it
but I just remembered there was a function to do that so all I had to google was the name
Maxima () is a computer algebra system (CAS) based on a 1982 version of Macsyma. It is written in Common Lisp and runs on all POSIX platforms such as macOS, Unix, BSD, and Linux, as well as under Microsoft Windows and Android. It is free software released under the terms of the GNU General Public License (GPL).
Ergh
In [25]: class FilterService:
...: """
...: Utility class for filtering strings.
...: """
...: def __init__(self, *filters):
...: self.filters = list(filters)
...:
...: def add_filter(self, filt):
...: self.filters.append(filt)
...:
...: def __call__(self, content):
...: return all(any(filt(letter) for letter in content) for filt in self.filters)
...:
In [26]: f = FilterService(str.isalpha, str.isdigit, lambda x: x == "#")
In [27]: f("Python#3000")
Out[27]: True
!e python a,b,c = list(), set(), tuple() d,e,f = ['d'], {'e'}, ('f',) for each in (a,b,c,d,e,f): if each: print('Yep', end='') else: print('Nope. ', end='')
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Nope. Nope. Nope. YepYepYep
Pft. Missed a space. Same thing with str as with the other containers, too.
yeah, I think one has to do a lot of different things, to know about methods, so that they can remember or have some idea about it when the need arises
yeah
get a general idea
so you can expect that something will work
for instance, now he knows there's a method to do this for letters he can assume there's one to do it for integers
then he can google that "check if string contains only digits python" and he'll find isdigit()
finger.isdigit()```
>>> type(finger) == emoji
True
!e
name = 'Gre12g'
Found = False
for letter in name:
if letter.isdigit():
print("Illegal characters found")
Found = True
break
if not Found:
print("no illegal characters found")
@boreal spear :white_check_mark: Your eval job has completed with return code 0.
Illegal characters found
how long does it take for people to pickup a new language ?
!e
name = 'Gre12g'
print(name.isalpha())
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
False
^ does the same
The set solution could also be extended by just adding another set of allowed characters
!e
print("GEGEGEGE_____".isalpha())
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
False
Also probably a microoptimization but it'd probably fare well with larger strings
!e
name = 'Gre12g'
print(all(char in range(10) for char in name))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
False
!e
from string import ascii_letters, punctuation
name = "Hello, World"
allowed = set(ascii_letters).intersection(set(punctuation))
if set(name) - allowed:
print("Illegal characters found")
@swift valley :white_check_mark: Your eval job has completed with return code 0.
Illegal characters found
one of my fav things about coding
means, I can be wrong in my own special way
c:

that's why this is by far the best programming server, period
while not (user_input:=input("Enter a number")).isdigit():
print("Please enter a number!")
print(f"You entered: {user_input}")
im having an issue troubleshooting something
i cant talk tho
lol
i think i need like 50 msgs in here? how can i see how many msgs i have
!e
while bool(5):
print("OP")
You currently have 35 messages, one conversation should do it, although I'd advise against spamming it
how can you see how many messages you have
@uncut meteor :x: Your eval job timed out or ran out of memory.
001 | OP
002 | OP
003 | OP
004 | OP
005 | OP
006 | OP
007 | OP
008 | OP
009 | OP
010 | OP
011 | OP
... (truncated - too many lines)
Full output: too long to upload
!e
print(bool(5))
@boreal spear :white_check_mark: Your eval job has completed with return code 0.
True
@swift valley is there a command to track your message count
in this dc
i.e. !level
You can use Discord's search bar to look yourself up to see your message count
You can use the search feature
ok
!e
print(bool(-5))
@boreal spear :white_check_mark: Your eval job has completed with return code 0.
True
well what i was gonna ask in vc has to do with lua coding so @uncut meteor if you understand it lmk
Had to scoot down here. Chat was getting too loud for me to think
and ill paste some of my code
!e
print(bool(0.1))
@boreal spear :white_check_mark: Your eval job has completed with return code 0.
True
but the lua dc im in is dead
Empty lists are falsey
I saw in some language, the default return was 0 and 1 for true and false, if you wanted true or false, you had to specify, at start, I guess it was c++
Any empty container is really
this is my code for reference
!e
class Path:
def __init__(self, base: str):
self.path = base
def __truediv__(self, other):
if isinstance(other, str):
self.path += "/" + other
elif isinstance(other, Path):
self.path += "/" + other.path
my_path = Path("Home")
my_path / Path("Test")
print(my_path.path)
new_path = Path("Home")
new_path / "Test"
print(new_path.path)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Home/Test
002 | Home/Test
lol it has nothing to do with cheating
Uh huh
Then do it some other way
new_path /= "..."
wym
Doesn't matter if you're doing it to learn about x thing. We're not assisting with an aimbot
this is a coding server is it not? I'm not doing anything malicious
There's plenty of other ways you can learn about reading and writing to memory
reading and writing to memory has little use outside cheating and netsec when it comes to Python
my question doesnt even pertain to implementing cheats its just about syntax
I didn't stutter
!e
import random
def fire(alpha, bias):
return random.randint(*(round(alpha - alpha * bias), round(alpha + alpha * (bias / 2))))
class Shell:
def __init__(self, alpha):
self.alpha = alpha
def clamp(val, low, high):
val = low if val < low else val
val = high if val > high else val
return val
class Tank:
def __init__(self, name, health):
self.health = health
self.name = name
self.max_health = self.health
self.arec = 25
self.hit_chance = 99
def hit(self, shell):
if random.randint(0, 100-self.hit_chance) == 100-self.hit_chance:
dmg = fire(shell.alpha, 0.15)
ammo_rack = True if random.randint(0, 100 - self.arec) == 100 - self.arec else False
dmg = self.health if ammo_rack else dmg
dmg_correction = self.health - dmg
dmg_correction = 0 if dmg_correction > 0 else -1 * dmg_correction
self.health -= dmg
self.health = clamp(self.health, 0, self.max_health)
return f"{'๐ฅ ' if ammo_rack else ''}-{dmg - dmg_correction} {'๐ฅ' if ammo_rack else ''}"
else:
return f"{random.choice(['/_ Ricochet', '๐ก๏ธ Bounce'])}"
shell1 = Shell(750)
shell2 = Shell(490)
allied_tank = Tank("60TP", 2700)
enemy_tank = Tank("IS-7", 2700)
for i in range(10):
msg = enemy_tank.hit(shell1)
print(f"\n{msg}\n{enemy_tank.name}: {enemy_tank.health}")
if enemy_tank.health <= 0:
print(f"{allied_tank.name} -> {enemy_tank.name}")
enemy_tank.health = enemy_tank.max_health
allied_tank.health = allied_tank.max_health
continue
msg = allied_tank.hit(shell2)
print(f"\n{msg}\n{allied_tank.name}: {allied_tank.health}")
if allied_tank.health <= 0:
print(f"{enemy_tank.name} -> {allied_tank.name}")
enemy_tank.health = enemy_tank.max_health
allied_tank.health = allied_tank.max_health
@lusty marsh :white_check_mark: Your eval job has completed with return code 0.
001 |
002 | ๐ก๏ธ Bounce
003 | IS-7: 2700
004 |
005 | /_ Ricochet
006 | 60TP: 2700
007 |
008 | -714
009 | IS-7: 1986
010 |
011 | ๐ก๏ธ Bounce
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/coduripoyi.txt
!warn 214425768338391042 Renaming the functions is not going to help you. Consider this the last time I tell you. We will not assist with an aimbot.
:incoming_envelope: :ok_hand: applied warning to @dapper python.
lol
What is this? World of Tanks in Python
okay
YEA lol
i made the rolling logic
Missing too much "RNG LOLZ"
yea, Bounce, Ricochet
Tracks eat shot
The screen goes ON on the PC tonight
not a VScode to be seen
im in covid isolation
and it looks im in VIM
the time is going like a datetime.time
gotta close this thing
heaven know i tried```
Russian Bias
i should add different hit like, miss, critical
Recent 1500/53%
Nice
Overall is higher before I started not giving a shit and just playing my overpowered Premiums like Progetto 46
Recent 3450/38.6%
for data analysis
Get off the red line
I know its recent
ta = technical analysis
overall 48.6
python
i have numpy and pandas was wondering if there was any others
specifically for stocks
or exchanges
That tank is good in Clan Wars
Try pip install matplotlib
yeah i use matplotlib to do chart plotting
uhh how do i pin a certain discord chat
theres so many in this discord i want to only have a select few to view
oh you can just do drop down arrows
@rugged root have you looked into solidity?
no its the ethereum coding language
nothing to do with python
Wheee slowly my team for my non-profit grows
while not (Name1:=input("Enter Name of person")).isdigit():
print("Please enter a number!")
print(f"You entered: {Name1}")
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!e
while not (Name1:=input("Enter Name of person")).isdigit():
print("Please enter a number!")
print(f"You entered: {Name1}")
@flint hill :x: Your eval job has completed with return code 1.
001 | Enter Name of personTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
while not (name := input("Enter Name of person")).isalpha():
print("Please enter a name!")
print(f"You entered: {name}")
Wasn't blockchain THE thing like 5 years ago?
@rugged root RESPOND TO MY MESSAGE (just for the transaction)
Maybe you should type in voice 1 chat
!e
while not (Name1:= input("Enter Name of person")).isalpha():
print("Please enter a name! Only letters allowed")
print(f"You entered: { Name1 } ")
@flint hill :x: Your eval job has completed with return code 1.
001 | Enter Name of personTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
!e
while not (Name1 := input("Enter Name of person")).isalpha():
print("Please enter a name! Only letters allowed")
print(f"You entered: {Name1} ")
@lusty marsh :x: Your eval job has completed with return code 1.
001 | Enter Name of personTraceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
The input causes it
!e
print("hello world")
@fair harbor :white_check_mark: Your eval job has completed with return code 0.
hello world
!docs KeyboardInterrupt
Hi
exception KeyboardInterrupt```
Raised when the user hits the interrupt key (normally Control-C or Delete). During execution, a check for interrupts is made regularly. The exception inherits from [`BaseException`](#BaseException "BaseException") so as to not be accidentally caught by code that catches [`Exception`](#Exception "Exception") and thus prevent the interpreter from exiting.
@flint hill
!e
input()
@lusty marsh :x: Your 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
def check(s: str) -> bool:
return True
while not check(name := input("Input a name: ")):
print("That is not a valid name")
print(f"You entered {name}")
I would go about it like this
while True:
Name1 = input("Enter Name of person") # Asks For Input
if Name1.isalpha(): # Checks if Name1 has only unicode characters
break # Breaks while loop
print("Please enter a name! Only letters allowed") # Prompts them to try again
print(f"You entered: {Name1} ")
another way
name = '0'
while name.isalpha() != True:
name = input("Please enter a name: ")
print("Your name is " + name)
why are you checking != True
isalpha() already returns a boolean
eh
the expression after while keyword evaluates to either true or false
name.isalpha != True == !name.isalpha
:thonk:
not in python :P, the ! symbol doesn't exist
it'd be not name.isalpha()
Its not
ty for correcting : )
wtf is a pointer
malloc, calloc, realloc
only code in assembly
ever heard of this :kek:
uhh
There are 10 types of genders, male and female
there are 11 genders, male, female and biscuit
!docs str.isnumeric
str.isnumeric()```
Return `True` if all characters in the string are numeric characters, and there is at least one character, `False` otherwise. Numeric characters include digit characters, and all characters that have the Unicode numeric value property, e.g. U+2155, VULGAR FRACTION ONE FIFTH. Formally, numeric characters are those with the property value Numeric\_Type=Digit, Numeric\_Type=Decimal or Numeric\_Type=Numeric.
!docs str.isalpha
str.isalpha()```
Return `True` if all characters in the string are alphabetic and there is at least one character, `False` otherwise. Alphabetic characters are those characters defined in the Unicode character database as โLetterโ, i.e., those with general category property being one of โLmโ, โLtโ, โLuโ, โLlโ, or โLoโ. Note that this is different from the โAlphabeticโ property defined in the Unicode Standard.
int main() {
std::cout << "Hello world" << std::endl;
return 0;
}
int main() {
std::string test = "Hello World";
std::cout << test;
}
#include <cstdio>
int main(){
printf("Hello World");
return 0;
}
#include <stdio>```
cstdio
is it?
well if your using the c lib in cpp yeah
in c, its just stdio.h
stdio.h isnt it
yeh
yeah it is in c
we all do sometimes
found this today @whole bear an easy 4 kyu if you know itertools.permutation
!docs itertools.permutations
itertools.permutations(iterable, r=None)```
Return successive *r* length permutations of elements in the *iterable*.
If *r* is not specified or is `None`, then *r* defaults to the length of the *iterable* and all possible full-length permutations are generated.
The permutation tuples are emitted in lexicographic ordering according to the order of the input *iterable*. So, if the input *iterable* is sorted, the combination tuples will be produced in sorted order.
Elements are treated as unique based on their position, not on their value. So if the input elements are unique, there will be no repeat values in each permutation.
Roughly equivalent to:... [read more](https://docs.python.org/3/library/itertools.html#itertools.permutations)
cheers
!e
string = "Example String"
print(all(char.isalpha() or char.isspace() for char in string))
temp_string = string.replace(" ", "")
print(temp_string.isalpha())
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
The KJ Method
while True:
Name1 = input("Enter Name of person") # Asks For Input
if Name1.replace(' ','').isalpha(): # Checks if Name1 has only unicode characters
break # Breaks while loop
print("Please enter a name! Only letters allowed") # Prompts them to try again
print(f"You entered: {Name1} ")
!docs str.replace
str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
!e
while True:
Name1 = 'Jim Bob' # Asks For Input
if Name1.replace(' ','').isalpha(): # Checks if Name1 has only unicode characters
break # Breaks while loop
print("Please enter a name! Only letters allowed") # Prompts them to try again
print(f"You entered: {Name1} ")
@terse needle :white_check_mark: Your eval job has completed with return code 0.
You entered: Jim Bob
An animation of comedian eddie izzard talking about his idea of the 'death star canteen'. If you like this video, you can see more of my eddie izzard animations in the more from this user list.
!docs int
class int([x])``````py
class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines [`__int__()`](../reference/datamodel.html#object.__int__ "object.__int__"), `int(x)` returns `x.__int__()`. If *x* defines [`__index__()`](../reference/datamodel.html#object.__index__ "object.__index__"), it returns `x.__index__()`. If *x* defines [`__trunc__()`](../reference/datamodel.html#object.__trunc__ "object.__trunc__"), it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.... [read more](https://docs.python.org/3/library/functions.html#int)
class complex([real[, imag]])```
Return a complex number with the value *real* + *imag**1j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument may be any numeric type (including complex). If *imag* is omitted, it defaults to zero and the constructor serves as a numeric conversion like [`int`](#int "int") and [`float`](#float "float"). If both arguments are omitted, returns `0j`.
For a general Python object `x`, `complex(x)` delegates to `x.__complex__()`. If `__complex__()` is not defined then it falls back to [`__float__()`](../reference/datamodel.html#object.__float__ "object.__float__"). If `__float__()` is not defined then it falls back to [`__index__()`](../reference/datamodel.html#object.__index__ "object.__index__").
Note... [read more](https://docs.python.org/3/library/functions.html#complex)
!e
print(1j * 5)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
5j
!e
print(dir(5j))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
['__abs__', '__add__', '__bool__', '__class__', '__delattr__', '__dir__', '__divmod__', '__doc__', '__eq__', '__float__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__int__', '__le__', '__lt__', '__mod__', '__mul__', '__ne__', '__neg__', '__new__', '__pos__', '__pow__', '__radd__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rmod__', '__rmul__', '__rpow__', '__rsub__', '__rtruediv__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', 'conjugate', 'imag', 'real']
see previous
!docs int
class int([x])``````py
class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines [`__int__()`](../reference/datamodel.html#object.__int__ "object.__int__"), `int(x)` returns `x.__int__()`. If *x* defines [`__index__()`](../reference/datamodel.html#object.__index__ "object.__index__"), it returns `x.__index__()`. If *x* defines [`__trunc__()`](../reference/datamodel.html#object.__trunc__ "object.__trunc__"), it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.... [read more](https://docs.python.org/3/library/functions.html#int)
kj example
!e
my_complex = 10j + 5
print(f'Real {my_complex.real}')
print(f'Imag. {my_complex.imag}')
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | Real 0.0
002 | Imag. 50.0
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!e
my_complex = 10j + 5
print(f'Conjugation {my_complex.conjugate()}')
print(f'Real {my_complex.real}')
print(f'Imag. {my_complex.imag}')
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | Conjugation (5-10j)
002 | Real 5.0
003 | Imag. 10.0
from what i've read in the docs and other stuff, they are only used in maths equations etc as they can then be treated like any other number type once in the complex type
!e
int("adeifjhs")
!e
user_number = None
# Keep asking for input until it is a number.
while user_number is None:
user_input = input("Enter a number: ")
try:
user_number = int(user_input)
except ValueError:
continue
wouldn't that loop 1 time only ?
!eval [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.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
Hey @flint hill!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
hi
enter the name of the person....:bob
You entered: bob
enter the number of violations.....:25
f"You entered: 25
Enter the persons age.....:2
f"You entered: 2
Traceback (most recent call last):
File "C:/Users/Owner/AppData/Local/Programs/Python/Python38-32/work sshuff/extra fun.py", line 59, in <module>
if numv>=0:
TypeError: '>=' not supported between instances of 'str' and 'int'
is anyone good at recognizing car models?
does anyone recognize this make/model?
the one on fire?
yes
!pastebin
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.pydis.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.
!paste @flint hill
Hi guys
!e
x = '12' # This could be an input but for the sake of the evaluation we can not have inputs
y = int(x)
print(x, type(x))
print(y, type(y))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | 12 <class 'str'>
002 | 12 <class 'int'>
@dusk burrow Yeah, I have a good project
I'm making a cake
Yeah helping family otherwise I will get kicked of house.
@whole bear Wow, amazing. Your singing skills are mind-blowing.
No
I'm south african
No failed everything
@whole bear Are you studying for computer science?
No because I failed computer science.
naw not me
i am learning it but not going to school or anything
@whole bear Covid still going on Uk?
Not going to school. Just chilling with my cat.
@gritty garden good evening
hello :)
How are you doing man
Hello
Hey man, How are you
good bro, u?
good thanks man
im good bro hbu
good thanks
are you still doing machine learning dude ?
what are you guys talking about?
I'm going to visit Uk next sep
Hello Plus
How are you man ?
what about that languages game
Doing great
๐
@dusk burrow good thanks man
@dusk burrow are you going talking about machine learning ?
or what
(Hug)
machine learning is amazing. I wish I could learn machine learning, but I can't because I realize I'm dumb.
It requires math (linear algebra, probabilities and statistics) and they takes time to master
like a lot of time
@whole bear I don't know machine learning
Yeah, I'm ok with math. I'm lazy.
It's not about laziness, schools did a horrible Job explaining math
my school did a great job of explaining math, but I didn't care about it much ๐ฆ
All my fault
Even mazen is struggling to study geo
๐
@whole bear are Airports still closed there
@whole bear Back to college on 8 march.
@dusk burrow please don't hate me
Haha
I'm your neighbor
Lol
@gentle flint can we talk
what are you guys talking about? 
about machine learning and other languages
@gentle flint Casablanca ?
no, not big brain stuff, just beginner stuff like prerequisites
@whole bear You don't need to go to college because everything is online for you I think.
idk what prequistes is
Lucky guy
oof
Wait really?
prerequisites = a thing that is required as a prior condition for something else to happen or exist
you type fast holy
for example, you need to learn math (algebra and trigonometry and geometry and calculus) before you start learning game development
Casablanca-Agadir
and I don't type fast, I just copied that definition from google
Lol
but itll take ages
@whole bear Are you doing uni without gcse?
oh lol
without math, you probably going to make a really simple game
yeah
maybe like a memory game
and yes you need to know basic Physics stuff
If you want to make a game like Asteroid or Eve Online
can I enter and listen?
_>
Yes sir
yo why are you so friendly and affable >_>
you are asking who ?
I'm in Uk for the holidays ๐
you
Plus are you American ?
corona
No.
how can you travel with corona
@golden hearth I have been stuck ๐ฆ
maybe because of Sunni Islam ?, I'm really worried to talk about Religion in this discord, the admins might ban me for that
Yes.
Life is rolling in cheese that's why
So what are you talking about?
@whole bear you are in a python discord and talking about web development.....I'm smelling of something called....Flask....and Django
_>
@dusk burrow I'm a security engineer for someone's company.
@whole bear data science....now I'm smelling something called Numpy and Pandas
Lol
I know numpy
Hello Plus
Numpy has one of the best documentation god damn.
@dusk burrow what is the difference between Machine Learning and Deep Learning ?
do you have the link
@whole bear of course you can
please answer that
@whole bear I have a basic idea about them
Why NumPy? Powerful n-dimensional arrays. Numerical computing tools. Interoperable. Performant. Open source.
@whole bear like you give multiple inputs and based on weights you get outputs ?
deep learning is like deep web
@whole bear some people using machine learning or deep learning to make a bot that plays all levels of super mario games
wanna talk about print statements?
@whole bear to make a bot that play games, is that machine learning or deep learning
like the super mario example
@whole bear Deep Learning
oh ok
@whole bear They use it in antivirus software, right?
@whole bear Q-Learning you mean
bot detection too
Mainly use it in supermarkets
i think
@whole bear I know Q-Learning is like based on rewarding system
Open CV
sorry, PythoNub
Lol
lol
Hahahahahahaha
laughing via text
Amazon is sleeping in deep learning.
This is the best day ever
what do you use Python for ?
I use it for MMO servers
and you ?
@dusk burrow ุตูุงุญ ุงูุฏูู
@gentle flint You know Arabic too
cool man
@dusk burrow ุฃูุถู ู ู ุงูููู ุงูุฐู ุณุจูู
@whole bear Chinese ?
@whole bear why there are 2 kinds of Chinese (Mandarin and Simplified) ?
@dusk burrow But you don't hate life ๐
Muito Prazer
Thanks
I guessed based on Hebrew
lol
have i been in the serer long enough to talk in vc yet?
in Hebrew, "all of the day" is "kol hayom"
in Arabic it's "kullayom" from what I was hearing
Oh
why you speak Hebrew verbose?
why not?
cause you are from Holland ๐
@whole bear Near London, people who are rich live near London, right?
very nice
@whole bear https://imgur.com/a/DvnKvFi
Oh ok
well FYI, Kipod in my nickname means hedgehog in Hebrew
Nice ui.
oh, I didn't know that
thx
really impressive
thanks man
In this video, I tell you the best IDE to use for programming. No matter what kind of programming you do.
๐ Video courses from JomaClass:
๐ New to programming? Learn Python here: https://joma.tech/35gCJTd
๐ Learn SQL for data science and data analytics: https://joma.tech/3nteQih
๐ Data Structures and Algorithms: https://joma.tech/2W89H33
Music...
i like this dude
Lol
ms word is best
Visual Studio Code
nah, I do my coding on a typewriter man
are we going to fight
Lol
my legendary sir
for scheduling appointments ?
like a database ?
Yeah
but imma send this to my frind
pycharm is nice
and he will use ms word
you do web development or other things with Python ?
I do everything with python
what is your main focus with Python
starting from web development ending with discord bot
_>
you probably used discord.py
or else
main focus is cybersecurity
But currently studying for ccna
i have had a bigger roller coaster ride ngl
fricking gpu bitcoin miners
Cisco Certified Network Associate
Chirpy Cheerful Nutty Alligator
yes i love python
Python is the most popular programming language in the world right now. So, why do I tell people not to learn it?
There are multiple reasons for this, but the biggest is that Python doesn't provide a path to success. It is a tool and can be used for many things, but it is not ideal if you are a new programmer.
New programmers should pick a pat...
trust me, I find that kind of videos everytime
and every year
you are lucky, my youtube recommendation is messed up, it's full of Cats
all that because I clicked on a cat video once
you call that messed up?
cats are fine
mine's filled with political stuff im not fricking intreested in
It's like either people petting cats or an Island full of cats
lol
i want this server to say ms word is the best ide in the resources page on april fools
you seem a lot frustrated about cats >_>
I like Elephants more then Cats
๐
brUH
Lol
I know Everyone Hates PHP
no
php?
i lub php, jquery nd css
a programming thing?
jquery is outdated I think.
...
I like hedgehogs
@whole bear use bootstrap ๐
man i wish my mic wasnt broken
i split water over it
there is also anther library called SamenticUI
I do css myself
I prefer pure CSS as well
LESS and SASS
sass is trash when it's advanced version of css
I don't do web development main thing
btw, dont take this seriouslyy, this was only supposed to be a joke, im not that outdated
Squareroot
1.414
1.414
Keep singing
etc,etc
non-recurring non-terminating : irrational
my ears are bleading
i ll make ur eyes bleed
Please no
i can't suffer anymore.
there you go
@gritty garden Are you https?
etsetra
edge-cedge-ra
ur mouth is arabic, what about the rest of the body
Lol
๐ณ.
It's loading forever
I have 100 tabs
@gentle flint Inner-net
bye
intense breathing noises
@gritty garden where r u from
bruh
where r they from
North Africa
we speak Arabic
oh
are you native english ?
nope
oh ok
ุถุฌูุฌ ุดุฏูุฏ ูู ุงูุชููุณ
i hav lived in arabic countries
Saudi Arabia ?
ุนูู ุงูุฃูู ููุช ุฃููู ุงุณุชุฎุฏู ุชู
UAE mainly
Laaaaame ๐
๐ง .
ูุฐู ุงููุบุฉ ู ูุชูุจุฉ ุจุทุฑููุฉ ุฑุงุฆุนุฉ ุ ูู ุชูุฐุจ
they skip all t's and r's
i can make accents too
is water
I love the UK accent so much when they are angry
1s
you want to leave ?
i dont plan anything
lol
nvm
do you guys have experience with coding discord bots >_>in python
i might need some help
oof nvm
ill take that as a no
you are talking about discord.py ?
yeah
im gonna make a bot soon for 5 hrs straight
I only use Python for MMO servers
The Dissident
oh i just saw the logo changed >_>
Python's discord icon ?
yeah
I was talking about the design
I'm not against black
I have a lot of black friends, color doesn't matter to me
why are you saying K
maybe he has a problem
That Cat looks like he has a text fight I believe
that looks like Hacking
lol
that looks like hacking in moives, ftfy
ye
what means ftfy ?
fixed that for you
Chinese Explosion
same]
ono
i ll scream something too dw
it goes like 200 mbps but sometimes stays stuck at 60 Mbps
lol
thats the wrong emoji btw
who is homo ๐ฉด
?
uh..
i want to be a trans 50%
what did i forget?
jk
lololololol
@gentle flint Kerbal Space Program
can you add me
and you can delete too
CRUD Operations
do you have a new idea ?
lmao no
ok
that is a symbol of understanding things late
its 11:43pm too here
gn :)
not me
uh oh
who is joe?
idk who luis is
e
I need help to complete my program
def moyenne(nom):
if nom in Durand:
notes = resultats[nom]
total_points = {'Durant':[0]}
print(total_points)
total_coefficients = {'Durant':[1]}
for i in notes.values():
note, coefficient = valeurs
total_points = total_points + 2 *coefficient
total_coefficients = 2 +coefficient
return round(total_points/total_coefficeints ,1)
else:
return -1
resultats = {'Dupont':{'DS1':[15.5,4],'DM1':[14.5,1],'DS2':[13,4],'PROJET1':[16,3],'DS3':[14,4]}}, {'Durand':{'DS1':[6,4],'DM1':[14.5,1],'DS2':[8,4],'PROJET1':[9,3],'DS3':[8,4],'IE1':[7,2],'DS4':[15,4]}}
ok
the missing part must be filled in
I shipments with the holes
def moyenne(nom):
if nom in Durand:
notes = resultats[nom]
total_points = ........
total_coefficients = ........
for i in notes.values():
note, coefficient = valeurs
total_points = total_points + .... *coefficient
total_coefficients = ..... +coefficient
return round(....../total_coefficeints ,1)
else:
return -1
resultats = {'Dupont':{'DS1':[15.5,4],'DM1':[14.5,1],'DS2':[13,4],'PROJET1':[16,3],'DS3':[14,4]}}, {'Durand':{'DS1':[6,4],'DM1':[14.5,1],'DS2':[8,4],'PROJET1':[9,3],'DS3':[8,4],'IE1':[7,2],'DS4':[15,4]}}
you do not understand the need to redo everything just filled in the places with the pointiel
ok no problem
Me neither
I have also not been voice verified
Maybe one day
I can possibly be voice verified
-___-'
@zealous wave u live streaming? ๐ฎ
where?
oh i thought youre live streaming in voice xD
na lol
just working one a part of a bot that I dont really want to do
@neat seal
textbox=pyautogui.locateOnScreen('textbox.png') pyautogui.click(textbox)
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
if you want I am in voice chat now. if you want private call I am here. Anyway so I need company as well. ๐ See you or others who want to cowork.
how
now it looks like this
money=int(input())
ap =int(input())
pp =int(input())
for i in range(1,money):
for a in range(1,i):
ap *= a
for p in range(1,i):
pp *= p
if ap+pp == money:
print(a, p)
!fmt
@whole bear wassup
How is it going brother
Nice
Environment variable is good because it actually protects your data like makes it secret.
Yeah, but data is most important so it doesn't matter about ram.
Just move everything to cloud
settle life forever
you can use flash drive as ram
everything goes there and accessable
FUCK YEAH
Yeah
That's why, you have to learn mma
so you can protect drives from bad guys
๐
money making account
poor network connection
why can't i speak in vc?
def slice_from(string, start, end):
return
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)```
use lamda
@somber heath :white_check_mark: Your eval job has completed with return code 0.
AB
print(string[start-1:end-1])
!e python a = 'ABC'[2:] print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
C
!e python a = 'ABCDEFG'[2:4] print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
CD
yea
wow, didnt know there was a step
@somber heath :white_check_mark: Your eval job has completed with return code 0.
ACEG
!e print('ABCDEFG'[::-2])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
GECA
def slice_from(string, start, end):
return
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)โ```
def slice_from(string, start, end):
print(string)
print(start)
print(end)
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)
```
!e ```py
def func(a):
print(a)
func('Woo!')โ```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Woo!
So that func returns NoneType with value None. ๐
!e ```python
def func():
return 'Woo!'
print(func())```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Woo!
print('Woo!')
In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. This means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures. Some programmi...
read about that
its nicely explained in general and for python
None
!e ```
Python program to illustrate functions
can be passed as arguments to other functions
def shout(text):
return text.upper()
def whisper(text):
return text.lower()
def greet(func):
# storing the function in a variable
greeting = func("""Hi, I am created by a function
passed as an argument.""")
print (greeting)
greet(shout)
greet(whisper)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | HI, I AM CREATED BY A FUNCTION
002 | PASSED AS AN ARGUMENT.
003 | hi, i am created by a function
004 | passed as an argument.
def slice_from(string, start, end):
return
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)
print(sliced_string) ```
@paper tendon :x: Your eval job has completed with return code 1.
001 | Enter a string: Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | EOFError: EOF when reading a line
def slice_from(string, start, end):
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)
return
print(sliced_string) ```
he explains you bad way.
Just understand that input values you should have outside of a function if they are passed as parameter.
and return a sliced string.
๐
sliced strings
def slice_from(string, start, end):
return
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)
print(sliced_string[start:end]) ```
b[2:5]
def slice_from(string, start, end):
return
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from([start:end])
print(sliced_string) ```
def ThisIsAFunction(Input):
return "The input is " + Input
!e ```
def addition(a, b):
return a + b
@paper tendon :warning: Your eval job has completed with return code 0.
[No output]
def slice_from(string, start, end):
return "The new string is " + string
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from([start:end])
print(sliced_string)
@paper tendon :warning: Your eval job has completed with return code 0.
[No output]
!e python def func(a): return a[0] v = func('Hello') print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
H
def slice_from(string, start, end):
return "The new string is " + [start:end]
string = input("Enter a string: ")
start = int(input("Enter a starting position: "))
end = int(input("Enter an ending position: "))
sliced_string = slice_from(string, start, end)
print(sliced_string)
!e ```
def addition(a, b):
return a + b
a = 3
b = 6
print(addition(a, b))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
9
@somber heath i'm ready for more when you are. I'll start working on my next piece of code
nevermind i think i'm fried for tonight
yay i verified
!play epic sax man remix
waht
no music?
.play
ah
thats fair .-.
like spotify?
i just dont like talking .-.
im making a server for people with mental health issues to help them
one of my friends has one with like 83 members
yea i see where ur coming from
@rugged root https://imgur.com/gallery/rRB6O5T
Evenin' folks
evenin
Unicode input is nice
looks nice
Tasty
unfortunately we cant eat digital things
Not even the cookies?
snscrape --jsonl -search "nice dogs" > dogs.json
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Options and arguments (and corresponding environment variables):
-b : issue warnings about str(bytes_instance), str(bytearray_instance)
and comparing bytes/bytearray with str. (-bb: issue errors)
-B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x
-c cmd : program passed in as string (terminates option list)
-d : debug output from parser; also PYTHONDEBUG=x
-E : ignore PYTHON* environment variables (such as PYTHONPATH)
-h : print this help message and exit (also --help)
-i : inspect interactively after running script; forces a prompt even
if stdin does not appear to be a terminal; also PYTHONINSPECT=x```
-i
If you need parsing command-line args I suggest argparse or click
what does parsing mean?
You people are so big brain ๐ง
Hi guys i was scripting and i needed to download discord_webhook and everytime i try to download it i get this error:install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
@wind cobalt marhaba
@gentle flint marhaban bik,
but more destructive
lol
and got more battery life
@whole bear Probably better if you ask your question here rather than in a DM to me. Typically the more people who can see the question, the more likely you are to get an answer
Hi guys i was scripting and i needed to download discord_webhook and everytime i try to download it i get this error:install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
we saw it ๐
o sorry
idk what it means doe
Dpy docs is more of an API reference than a tutorial to be fair
atleast it is understandable, its like a miracle to me
yeah i was just trying to learn the api parallelly but yeah the docs arent that gr8 ๐
yeah but they are better than Pillow API ref tbh
hi
this video helped me a lot https://www.youtube.com/watch?v=X34ZmkeZDos
In this video, I tell you the best IDE to use for programming. No matter what kind of programming you do.
๐ Video courses from JomaClass:
๐ New to programming? Learn Python here: https://joma.tech/35gCJTd
๐ Learn SQL for data science and data analytics: https://joma.tech/3nteQih
๐ Data Structures and Algorithms: https://joma.tech/2W89H33
Music...
best vid on yt
noo
kill joma
@rugged root please bro
lol
my account got hacked
unluckily
_>
@whole bear very interesting tag number lol
you were stupid enough to get yourslef hacked lol
true
Shit happens, let's not be rude to others
Calm
yes ban pytho nub pls
NO

