#voice-chat-text-0
1 messages Β· Page 261 of 1
C#? Don't you mean Microsoft Java?
Improved Java though
that bar is so low it makes the city of new orleans look like nepal.
@minor sage When are you joining?
places on that island be like
https://en.wikipedia.org/wiki/De_Cocksdorp
@rugged root What do you give an injured lemon? Lemon-aid.
https://en.wikipedia.org/wiki/Georgian_uprising_on_Texel
this was the battle I was talking about
The Georgian uprising on Texel (Dutch: Opstand der GeorgiΓ«rs) (5 April 1945 β 20 May 1945) was an insurrection by the 882nd Infantry Battalion KΓΆnigin Tamara (Queen Tamar or Tamara) of the Georgian Legion of the German Army stationed on the German-occupied Dutch island of Texel (pronounced Tessel). The battalion was made up of 800 Georgians and ...
nautical drag queen: Anita Deckhand
This has been generated by ChatGPT. Please verify anything presented as factual information before proceeding.
poggers
@peak depot Why are you not asleep?
If you invested in beef stock, do you think it would be bullish?
Trying to stay awake
22.75 inches
Good night buddy
o7
i fucking hate javascript
this kind of fluffy
Well I currently only really know espaΓ±ol de estados unidos
Back in 45ish. Gotta make some dinner. The kids are complaining.
Oh hey @sour imp
yo yo
When did you get here?
like 2-3 mins all good ill catch you when you get back my guy enjoy dinner!
Ok, ttys
You are not allowed to use that command here. Please use the #bot-commands channel instead.
What kinds of topic are we talking about here?
@shy folio π
This is a general-purpose conversation area.
Often Python. Often not.
Hi
Great!
Thanks
hi
hello
hi new person
hi vtuber guy
@obsidian dragon do u live in the states?
@wind raptor Are you available?
AI voice was used in this video.
The AI used in this video is called "open voice" and was trained with a small voice sample.
The model is my own made with VRoid Studio
The MoCap is being done by VSeeFace and LeapMotion
Me struggling 
@whole bear
@solar ermine π
@whole bear π
ahhahahaha
It's hard to make you laugh haha
What did you say?
potassium 
K 
periodic elements 
ahhahah I know
.love @somber heath
Your input was invalid: This command can only be ran against members with the lovefest role! This role be can assigned by running !subscribe in #bot-commands.
Usage:```
.love <who> [whom]
.love @obsidian dragon
Your input was invalid: This command can only be ran against members with the lovefest role! This role be can assigned by running !subscribe in #bot-commands.
Usage:```
.love <who> [whom]
.love @somber heath
Your input was invalid: This command can only be ran against members with the lovefest role! This role be can assigned by running !subscribe in #bot-commands.
Usage:```
.love <who> [whom]
.love @somber heath
Your input was invalid: This command can only be ran against members with the lovefest role! This role be can assigned by running !subscribe in #bot-commands.
Usage:```
.love <who> [whom]
hi
@austere linden
Can't tallk for now haha
Doing good
Where are you from?
Owww
cool
secret ahaha
Asia 
okay
ahhaha okay
Maybe later
htmz is a minimalist HTML microframework for creating dynamic web user interfaces. It allows developers to load HTML resources within any element in a page. htmz only requires an inline HTML snippet to work - there are no dependencies and no backend is required.
caller line identification
ok what does your cli do?
whats commit?
i have been programming for only 6 days only use git clone
so git == job = True
how long have you been programming for?
wow
from the information i think like 9+ years of exp
thats fast progress
how you learn so fast?
i also have difficuty reading docs how can i learn docs like pro?
@undone inlet if you think u reached your limit read @wind raptor
so like there description
does html count
whats html?
hyper text markup language
are you there @austere linden
Shut up weirdo...
rudeeee
Yeah Bruh, just got carried away with this mock test π
Leave me alone weirdo π
Lol what do you mean by a wierdo?
hey hi @hardy owl
hello
why am i mute or a procedure you need to follow to umute my mice
I'm unable to do it
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
AI voice was used in this video.
The AI used in this video is called "open voice" and was trained with a small voice sample.
The model is my own made with VRoid Studio
The MoCap is being done by VSeeFace and LeapMotion
gotcha
Are you a beginner or you reach in insane level of python and ML
Are you serious
Is that easy to you
Ok I want to ask you something....I'm in the middle of ML and Iearnt lots of stuff like linear regression and to SVM but I want to switch into web development should I do that or not.....if not then what should I do.........
yes
that voice modulator needs tweaking
ok
Ok I build a Movie recommendation system and Car price preiction is that enough to get an intership as ML or data scientist
heloo
or i need to move on
llol idk I work at walmart
on which post
u develop programs for walmart?
lol
@obsidian dragon Sorry, still figuring out what it likes me to do for the Bluetooth.
It likes whatever I've done for now.
.
@somber heath can u hear me
A mere peep.
Volume fine, where any exists.
i am using voicechanger i cant figure out what to do>
I heard "Eh-" and that was it.
@somber heath i can hear your keyboard tho
It was a joke @shy folio, sorry I had to concentrate on the test ππΎ
It's why I left.
hi @somber heath
https://pastebin.com/98hvuQ88 my calculator with factors
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
no @echo garden is peter grefin
Listen to them side by side.
yess @echo garden
its 31 degree outside
F or C
??
french
yes
no framework
what no framework like nvchad {hard coded the plugins?}
no
what u building?
web components
hi @somber heath
hello
i'm not voice verified yet lol
i'm still learning about python, i'm gonna learn about lists and how to implement it with loops and all today.
for example: while the program is active, make the user add item names to a store or something, then print the item with the corresponding number.
its simple, its just i don't know it yet, i can do it but i want to do it efficiently, its for school.
you are 100% correct LOL
i make 6 variables for a simple 1 variable 1 "for" function
instead of
a = eval(input("blahblah"))
for i in range(a)
i put alot of bs
yea i ment to do eval^
it'll still only take int
so its better to write int(input?
oh intresseting, so i can make it that the program doesnt crash when the user writes a string
that's very cool!
yea i mean if i hard coded it to int(
very cool stuff!
is python as slow as everyone says it is?
!d try
8.4. The try statement
The try statement specifies exception handlers and/or cleanup code for a group of statements...
This young lad won the internet todayπππ
Thanks for the laughs @versed heath
awesome!
i prefer Arduino type controllers where it doesn't have a whole operating system on it, direct code, plug and play.
but i don't know if i could code it with python.
VScode is not visual studio?
weird
!pypi auto-py-to-exe
cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
CMake Error at CMakeLists.txt:26 (project):
Running
'nmake' '-?'
failed with:
The system cannot find the file specified
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "E:/gpt4all/gpt4all/gpt4all-backend/build/CMakeFiles/CMakeOutput.log".
what is nmake
Did you see this @rugged root ?
Still hate my life...
i fuckin hate css
@stark river T-T sorry i saw your ping when you did it but was busy and forgot afterwards
did you figure the thing out?
no problem man.
i found out that there are 4 ways to pass objects as attrs to components (similar to props in React)
https://itnext.io/handling-data-with-web-components-9e7e4a452e6e
Learn how to pass strings, objects, functions or anything else into your Web Components
interesting stuff
there's also https://github.com/blitz-js/superjson if you need to transfer more complicated objects to front end
@rugged root ^ objects like date usually just become date strings and similar other things which lose all functionality of the original object
!pypi auto-py-to-exe
hi dear mods/admins since y'all are here can i have the honor to share my coding adventure through my screen 
What're you working on?
on a discord bot in python
!stream 710570210159099984
β @mellow sierra can now stream until <t:1708442481:f>.
ty
@rugged root https://www.sqlite.org/json1.html
CREATE TABLE json_tree(
key ANY, -- key for current element relative to its parent
value ANY, -- value for the current element
type TEXT, -- 'object','array','string','integer', etc.
atom ANY, -- value for primitive types, null for array & object
id INTEGER, -- integer ID for this element
parent INTEGER, -- integer ID for the parent of this element
fullkey TEXT, -- full path describing the current element
path TEXT, -- path to the container of the current row
json JSON HIDDEN, -- 1st input parameter: the raw JSON
root TEXT HIDDEN -- 2nd input parameter: the PATH at which to start
);
oh im still learning your helping me learn to D bug
lesgo
json_quote(3.14159) β 3.14159
json_quote('verdant') β '"verdant"'
json_quote('[1]') β '"[1]"'
json_quote(json('[1]')) β '[1]'
json_quote('[1,') β '"[1,"'
@rugged root https://www.npmjs.com/package/json-server
[!IMPORTANT] > Viewing alpha v1 documentation β usable but expect breaking changes. For stable version, see here. Latest version: 1.0.0-alpha.23, last published: 25 days ago. Start using json-server in your project by running
npm i json-server. There are 351 other projects in the npm registr...
yes
kichri all finished π’ by the time i got to dinner
chocolatey packages are all unmaintained
fb mktplace has no consumer protection
that's why you wanna take out your portion in a separate container
before the dinner i mean
there's always more but this time ....
Is that catpuccin mocha?
nice
Hi i'm new
quite good thanks π how are you?
Not too shabby
Oh nothing's wrong. Just busy at work
alrighty π
I actually joined this community because i'm harstuck and i was wondering if someone could give some advice
What's got you stuck?
I'm building my own Alexa and yesterday i was pretty satysfied on how things were going but now i am pretty stuck
I cannot find any information on this question
I was wondering how i could add features to the current script without breaking my brain
Like adding a calender and day planner
My goal is to make a alexa that can automate everything
I do it on a raspberry Pi 5
You got any tips? π
hi
@uneven narwhal Why would we help with that
Something that explicitly tries to go around safety and security features?
sorry what was the question? Β΅
i'm good thanks π
and u gyuys?
well i was wondering if someone could help me
@whole bear Yo
I mean you were saying something that gets around read-write protections
waiting for a new pot of coffee - the devils brew - kinda
Good, you?
im talking about what i sent there
@cedar mason Where hackers have a devil of a time.
You trying to do that via Python or just manually?
XD yes in cyber hell haha i destroy them
well im just trying to manually move the file
xd
Do you have steam open?
Only the black hats hehe xd
its a old game that is abandoned
norton page may have a listing of false positives
not
was a disc
xd
right click on file > permissions > check the right box
lemme try
@cedar mason just stating the obvious
Why the file replacement?
to move the file
mystery file
why?
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
lol i did not
i do offensive security why would i ask for things like that?
use cracks on experimental machines - CUZ - it might fuck the boot sector up and you lose all of it
wipey wipey - cryyyy
It's available on Steam
mm orphanware
how to revert windows 11 so that when you uninstall a program it opens control panel and not settings/installed apps, because settings is slow asf
Can someone help me? π
Win + R > control panel
lol wot i'm not following the voice chat conversation
mmmm i must learn about sandboxes and virtualware
i wonder if powershell > control still works in win 11
Which?
it's just a key value pair
put windows on a old laptop - then experiment there - not your work machine
And back to mute since co-worker is back
I recently had to fix registry because i had malware i wanted to remove
They're eventually going to straight up remove control panel
@echo garden This is going to be incredibly niche
ask the DUCK
control panel has a lot of useful features
What are you trying to find in registry?
ducky ducky go go
@uneven narwhal
@rugged root what?
Yeah
xdd
If you shift click it'll show all of them
And you can also do the registry thing
Yeah
This is different
It's tied to more entries
only 3% of net is listed the rest is dark , so many IPs
The context menu is just a single flag
@uneven narwhal Tell me in voice
Honestly Windows 11 is not bad
Give me context
hmmm how is Debian 12
He's trying to change it so that when he right clicks a program and hits Uninstall that it goes to the Control Panel Programs and Features instead of the Settings one
Yep
lol
changing path ?
The Programs and Features isn't different, it's just actively populating as you look
windows should display ads in context menu
hijack the icon path
π§ π‘
lol
ccleaner will uninstall in a nice way
ccleaner only does so much, and isn't as helpful as it may seem
its for use lazy folks
@uneven narwhal It is just better to use a third party tool just don't mess with registry unless you know exactly what everything is doing
lots of uninstallers dont do full job
Use Revo for uninstalling
What errors?
Please show us xd
It's going through regularly installed programs as well as things installed via the Microsoft Store
Because ngl it's really vague
in my eyes
your worried about security but use W11 ---- um there is no santa claws
lol
It's just having to look at different places
@uneven narwhal I typically grant it on request, but I know what you're talking about with this one
who?
XD
Thinking
@whole bear Later dude
This isn't a connection speed issue
It's just how Windows does the indexing and searching through the programs
I don't know what to tell you
-sighs-
all OS have back doors , now wheres the coffee
That's literally not it
In a windows OS? Is the other option Linux? Is that it?
Lol main difference is with Linux is that there is no monopoly
is boot drive SSD ? or spinning thing
@uneven narwhal Maybe you are infected?
Norton is terrible, still
is norton still a thing?
did you activate your LINUX in W10 , its there @cedar mason
Yeeeeep
Oh ye
pay or free Norton
You can add Minecraft to the whitelist
.... what?
Norton is over sensitive, I don't know
It's been years since I've used it
He could be infected with malware
@echo garden Most antiviruses do
add to resume , Nerd Wrangler @rugged root
Some are just better at it
Need a cattle prod
that's like ESET when I tries to forcely open a malicous website
zap zap zap
Lol but malware in 2024 is almost always stealthy
No I'm saying the bitching and moaning part
Just use eventviewer
It's genuine concerns
hmmmm is W11 a new animal ? can old reg hacks work or
Some can
Use w11 analyse tools
A friend got Norton sub for a year for $3, and that's how much for his renew I guess
Just talk to grandma and say hey next time we're up for renewal, we should get something different
my company uses kaspersky.. no issues so far.. but i don't game on it
tcp viewer, process explorer
We use Trend at work
But I think we're going to swap? Don't remember what to, though
sometimes if you buy stuff online ( Norton ) its much cheaper
That's why I'm saying to tell her whenever the renewal comes up next
yes 2 months ahead is good
Wait what?
@uneven narwhal first try tweaking norton.. maybe it has settings to lower the sensitivity / vigilance level or whatever
look for sales and ask others about different security software
Yeah was gonna say
then who cares? π
Did she renew it for just your computer?
It's a grandma
hmmm this is social dynamics stuff at home - its like wildcardzzz
bitdefender is bad
I liked them when I had them
AVG free works
It is bad for system performance, not bad as antivirus
it works
@strong arch Hanging in there. You?
no issues - its just you got click and no auto
Hopefully it's not hissing at you
Windows Security Essentials is fine.
So long as you are careful about where you go
But considering you went to get a crack for a game.......
As long u are using the internet like most people and dont look in shady places ur good
ya , cracking can lead to data explosion
Most attacks happen when u download a torrent or something
Most people get viruses
Hmm
Yeah true
Right
hey i am new here ..... what are you guys developing or working on ??
- cracks + things you should not look for
I.... I mean what you've described is just a storage method
cracks is like gambling
No that's Craps
it would be great if anyone could throw some light on this
Most common way is social engineering
Yep
The best description of cracking
A lot of crack and keygen software out there are just viruses
Wannacry?
Even if they work
I use windows 11 (Because of the terminal )
Ey that is correct XD
Once an IT head of some blue team at some company turned off the network EDR to install a crack, which was a ransomware.
They always laugh at how people get hacked with social engineering but it's litteraly 60% of black hats
That's so tedious
holla
i tried that @strong arch
Sure
Gpu passtrough π
It's not going to be breaking into the main consumer market any time soon
Sad but true
Django rest serializer
Geno knows he's stuff respect
This is getting into the really paranoid level of stuff
No OS is virus or attack free
Period
The truth is u never really know unless u can clearly see it
I mean a zero day has happend recently
porn sites have tons of virus stuff - like shit on your shoe
I'm tired of people thinking it's only a Windows problem
With microsoft teams
command injection
It's such a terrible product
I'm lucky i never had to use it XD
It's gotten better but.... just no
What's funny is that for teams

communicating between people isn't private to companies
Oh for sure
most people don't know this
I just thinking of the setups from an individual user standpoint
If u are paranoid of getting malware u should do a project
So if you know someone else's team name or w/e, you can message them as a sales person from another company.
Because even setting up what you're talking about is tedious as balls
And make Qubes os
Apparently everyone gets freaked out by this
LOL
Muh'wife does this to get into contact with some clients and they feel creeped up on
Distro agnostic?
what is secure about immutable distros?
Uhhh....
Average around 90sish?
just have multiple machines , run ubuntu , W10 , some experimental LINUX , have stuff on bootable data sticks ( Knoppix )
if you are root you can bypass the immutability protection
True
true
THE ROOT IS ON FIRE
did anybody - BUMP - their head and put windoze on a raspi ?
Nothing can be 100% secure
There was a kernel exploit for Linux fairly recently
personally if someone hacked my linux he is already root because of docker permissions
Why do that instead of just scooping up everything, though
Yeah
Full disk mirror, not just files
You can have it limit system impact as it's mirroring
if linux kernal exploited - where are majority on linux machines ? servers , routers , Rpis ? @rugged root
Did you ever hear of pegasus?
I don't remember
I would assume the biggest concern would be linux server
But that is NSA developed
hmm lin server would be good distrubution HUBB
last infected people were some content creators and humanitarians month ago
hmmm bitcoin scraping ?
Yeah if you'e not a big target like a journalist it's not a concern but still it is out there and that is giving me nightmares
who can help me with problem, i cant call my serializer
Anyway π
hmmm i tink' NSA has a tapp on main data point of net flow , so what ya gonna doooo
what I meant to say is that some "non-big" targets were targeted/infected last month
how?
I have some questions around python but it is better to Dm bc i don't wanna cause spam
it concludes that zerodays those days are not only for "big targets" but anyone could be attacked by them
try
its a python room
It would not suprise me... at least the good news is unless you want to pay a few millions to get your hands on this as a individual the common people do not have acces to this
I saw things that came close
But not like the original
And maybe it is better
the only good thing.
Alright π
like friend req?
?? π
no problemo )
What'd I miss
You missed alot of nothing
Neat
Hi Mayor
Small cutting of a tree
Makes sense
But you can also do it as a loan. It's your money
There's stipulations, I've never messed with it
Ideally
More just that I don't have a lot
Don't remember off hand
I mean I'm not overly worried about it
.love @rapid crown
Python Discord ModMail#6914 β€ mayorc2004 scored 50%!
β
Your relationship has a reasonable amount of working out. But do not overestimate yourself there. Your relationship will suffer good and bad times. Make sure to not let the bad times destroy your relationship, so do not hesitate to talk to each other, figure problems out together etc.
ah man i'm so facked XD
What happened?
I have a Tv over 15+ years old with no remote and i cant change to hdmi because i have no remote & the flipper zero also can't manipulate the hdmi channel
uufff
But my raspberry is installed on it XD
use the IR in the phone
IR = Internet remote?
Oof xd i never rly thought twice abiout the short version
lol
Thanks for helping
Guys π
One sec i'm currently trying to solve a problem
I'm talking with someone in dm
Hi can i get voice premission please? π
Sure I'll buy you nitro
ty
In your dreams
You can't cause I'm being haunted by other people
I'm being haunted already
+1
cheers
yeah I need to spam more
seems about right
yeah i'm just being sarcastic
anyone familiar with using the pulse audio package?
yeah I'm getting weird audio stutters with proton on arch have you messed with proton and had any issue with pulse?
@vital dove π
yeah it's not a very python-specific issue just curious if anyone ran into that issue prob something to due with proton as it only happens when using a game + proton
yeah you're prob right I've already messed with my pipewire config/reinstalling it so just going on a whim and asking anyone who's using pulse
is there a channel or topic location to talk about github
im trying to learn github collab with teams
best set up or something
Get a ban on him
@raven wigeon π
Hello! π
No that's correct
I agree @somber heath
lol I feel you xD
Valid
Agreed!
I actually just joined this server moments ago looking for some very basic assistance with my code but realized I cannot VC effectively or screenshare my code
Sad times
POSEIDON
Hello
I LOVE YOU
I love you too friend
WILL YOU MARRY ME?
@somber heath
Sure
π
!code
No marriage thank you
So my code is for a homework assignment and I am creating a menu for different tasks, the first two options work however the third option is a "exit menu" and for some reason I had it working but adjusting code to fit what the professor wanted it messed up my exit selection
And I am not sure where I went wrong
I am sure it's very simple and I am just having a dumb moment
Look mate I would agree but this professor is a nightmare
He will not give any assistance or guidence
Plus I am not looking for someone to hold my hand and do it for me, just a "hey its line xxx is your issue"
!paste
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
its a elif
yes
Oh I can embed
So where I have the issue is the Y/N
Ahhhh
elif menu_select == 3:
menu_cont = int(input('Are you sure you would like to exit? (Y or N): '))
if menu_cont == 'n':
menu_select = int(input('Please select another number from Homework Menu: '))
else:
menu_select = 'Exit'
print("Thank you, Goodbye.")
Thank you guys
lol
I am very new to coding so thank you lol
I just wanted to know why or where I was messing up
Okay I am kind of getting it
Like that does make sense
however
hmm
Let me think a second
I will give you the whole code
print('Homework 3 Menu\n'
'1-Factorial\n'
'2-Sum Odd Numbers\n'
'3-Exit\n')
menu_select = int(input('Select one of the options: '))
while menu_select == 1 or menu_select == 2 or menu_select == 3:
if menu_select == 1:
factorial = int(input('Please enter a number to receive the factorial of (between 0-10): '))
if factorial < 0 or factorial > 10:
while factorial <0 or factorial >10:
factorial = int(input('Invalid Number selected, use 1-10: '))
result = repetition.get_factorial(factorial)
print('The Factorial of the number is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 2:
total_sum = int(input('Please enter a number to receive the sum of the odd factors (between 0-100): '))
if total_sum < 0 or total_sum > 100:
while total_sum < 0 or total_sum > 100:
total_sum = int(input('Invalid number selected, use 1-100: '))
result = repetition.sum_odd_numbers(total_sum)
print('The sum of all odd factors is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
menu_select = 'Exit'
elif menu_select == 3:
menu_cont = int(input('Are you sure you would like to exit? (Y or N): '))
if menu_cont == 'n':
menu_select = int(input('Please select another number from Homework Menu: '))
else:
menu_select = 'Exit'
print("Thank you, Goodbye.")
So maybe this gives more insight to what I am trying to accomplish
lol
I am very VERY new to coding
if a == b or a == c or a == d:
...```
```py
if a in (b, c, d):
...```
So my issue with the Y/N selection is coming from my if menu_cont == 'n':
Because techincally that wouldn't be a valid selection right?
Ahhhhhh I think I am getting what you're saying
lol so yeah if I use a number instead of Y/N it works
print("""Homework 3 Menu'
1-Factorial
2-Sum Odd Numbers
3-Exit""")
menu_select = int(input('Select one of the options: '))
while menu_select == 1 or menu_select == 2 or menu_select == 3:
if menu_select == 1:
factorial = int(input('Please enter a number to receive the factorial of (between 0-10): '))
if factorial < 0 or factorial > 10:
while factorial <0 or factorial >10:
factorial = int(input('Invalid Number selected, use 1-10: '))
result = repetition.get_factorial(factorial)
print('The Factorial of the number is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 2:
total_sum = int(input('Please enter a number to receive the sum of the odd factors (between 0-100): '))
if total_sum < 0 or total_sum > 100:
while total_sum < 0 or total_sum > 100:
total_sum = int(input('Invalid number selected, use 1-100: '))
result = repetition.sum_odd_numbers(total_sum)
print('The sum of all odd factors is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
menu_select = 'Exit'
elif menu_select == 3:
match input('Are you sure you would like to exit? (Y or N): ').upper():
case 'N':
menu_select = input('Please select another number from Homework Menu: ')
case 'Y':
menu_select = 'Exit'
case _:
print(f"Sorry, you entered {menu_cont} and its not a option")
continue
I have not seen "match" or "case" before
ahhhh
So the "Case _: " is anything else
Gotcha
Alright I see what you mean
Thank you
π
Better than my professor
Join Sebastiaan Zeeff and Kat (Janine) from Python Discord for an introduction to structural pattern matching, a new Python feature included in the next release, Python 3.10.
About Structural Pattern Matching (Release candidate docs)
https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching
PEP 634 - Structural Patt...
he's awful
Python Enhancement Proposals (PEPs)
yes
print("""Homework 3 Menu'
1-Factorial
2-Sum Odd Numbers
3-Exit""")
menu_select = int(input('Select one of the options: '))
while menu_select == 1 or menu_select == 2 or menu_select == 3:
if menu_select == 1:
factorial = int(input('Please enter a number to receive the factorial of (between 0-10): '))
if factorial < 0 or factorial > 10:
while factorial <0 or factorial >10:
factorial = int(input('Invalid Number selected, use 1-10: '))
result = repetition.get_factorial(factorial)
print('The Factorial of the number is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 2:
total_sum = int(input('Please enter a number to receive the sum of the odd factors (between 0-100): '))
if total_sum < 0 or total_sum > 100:
while total_sum < 0 or total_sum > 100:
total_sum = int(input('Invalid number selected, use 1-100: '))
result = repetition.sum_odd_numbers(total_sum)
print('The sum of all odd factors is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
menu_select = 'Exit'
elif menu_select == 3:
match input('Are you sure you would like to exit? (Y or N): ').upper():
case 'N':
menu_select = input('Please select another number from Homework Menu: ')
case 'Y':
menu_select = 'Exit'
case _:
print(f"Sorry, you entered {menu_cont} and its not a option")
continue
Also curious about the added """ on the printed Menu in the beginning, what does that change?
@deft mica π
!e py text = """abc def ghi""" print(text)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | abc
002 | def
003 | ghi
!e py text = "abc def ghi" print(text)
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | text = "abc
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
!e ```py
def func():
"""This is the function's documentation."""
help(func)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Help on function func in module __main__:
002 |
003 | func()
004 | This is the function's documentation.
can you help me @somber heath . I cant open my mike to talk.....
just some fun stuff using pattern matching, lol
import re
class RegexPattern:
class MatchRegex:
def __init__(self, pattern: re.Pattern):
self.pattern = pattern
def __eq__(self, other):
return self.pattern.match(other)
pattern: MatchRegex
def __init_subclass__(cls, pattern: str = None, flags: int | re.RegexFlag = 0, **kwargs):
super().__init_subclass__(**kwargs)
cls.pattern = cls.MatchRegex(re.compile(pattern, flags=flags))
class MyPattern(RegexPattern, pattern="hello", flags=re.IGNORECASE):
pass
match "Hello World!":
case MyPattern.pattern:
print("hi")
how to complete this
You have been active for fewer than 3 ten-minute blocks
in voice channel?
@somber heath (sry for pinging again nd again)
help
any text box @somber heath
?
okie thanks. so kind of you!!!
I'd highly recommend this talk by Raymond Hettinger (core CPython dev) on pattern matching if you wanna learn the cool tricks: https://www.youtube.com/watch?v=ZTvwxXL37XI
Structural Pattern Matching in the Real World - PyCon Italia 2022
Speaker: Raymond Hettinger
okie
print("Homework 3 Menu\n1-Factorial\n2-Sum Odd Numbers\n3-Exit"); menu_select = int(input('Select one of the options: '))
while menu_select == 1 or menu_select == 2 or menu_select == 3:
if menu_select == 1:
factorial = int(input('Please enter a number to receive the factorial of (between 0-10): '))
if factorial < 0 or factorial > 10:
while factorial <0 or factorial >10: factorial = int(input('Invalid Number selected, use 1-10: '))
result = repetition.get_factorial(factorial); print('The Factorial of the number is: ', result); menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 2:
total_sum = int(input('Please enter a number to receive the sum of the odd factors (between 0-100): '))
if total_sum < 0 or total_sum > 100:
while total_sum < 0 or total_sum > 100: total_sum = int(input('Invalid number selected, use 1-100: '))
result = repetition.sum_odd_numbers(total_sum); print('The sum of all odd factors is: ', result); menu_select = int(input('Please select another number from Homework Menu: ')); menu_select = 'Exit'
elif menu_select == 3:
match input('Are you sure you would like to exit? (Y or N): ').upper():
case 'N': menu_select = input('Please select another number from Homework Menu: ')
case 'Y': menu_select = 'Exit'
case _: print(f"Sorry, you entered something thats is not a option!"); continue
And Super is just showing me why they are better lol
just a little flexing
I do admire it though I love being exposed to more ways to code and different things that work more effeciently
So I actually got points off at first when my code did work
Because of something stupid
I had to re-write a lot of it
Just because my professor wanted to be a...... [insert bad word here]
lololololol
Put a weight on the enter key
POV me: Loughs in nerd!
print('Homework 3 Menu\n'
'1-Factorial\n'
'2-Sum Odd Numbers\n'
'3-Exit\n')
menu_select = int(input('Select one of the options: '))
while menu_select == 1 or menu_select == 2 or menu_select == 3:
if menu_select == 1:
factorial = int(input('Please enter a number to receive the factorial of (between 0-10): '))
if factorial < 0 or factorial > 10:
while factorial <0 or factorial >10:
factorial = int(input('Invalid Number selected, use 1-10: '))
result = repetition.get_factorial(factorial)
print('The Factorial of the number is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 2:
total_sum = int(input('Please enter a number to receive the sum of the odd factors (between 0-100): '))
if total_sum < 0 or total_sum > 100:
while total_sum < 0 or total_sum > 100:
total_sum = int(input('Invalid number selected, use 1-100: '))
result = repetition.sum_odd_numbers(total_sum)
print('The sum of all odd factors is: ', result)
menu_select = int(input('Please select another number from Homework Menu: '))
elif menu_select == 3:
menu_cont = input('Are you sure you would like to exit? (Y or N): ')
if menu_cont == 'n':
menu_select = int(input('Please select another number from Homework Menu: '))
else:
menu_select = 'Exit'
print("Thank you, Goodbye.")
So this worked
the way I needed it to
Sorry if my noob code is gross to look at
@raven wigeon
(PA:=str.__call__().join([chr(x)for(x)in[((None,sum((range.__call__(int.__call__((3-1j).real-1),7))),True)[1]-1)*10**1//2]*2])),(_x_B:=lambda A____,_B:(z:=(complex.__call__(*[9,2])-3j)).real%4),(AP:=PA),(AAAAA:=lambda __,_:(~int(_x_B(__,_)))),(GGENN:=lambda *a:-1),(ZZZ_ :=type("_yy", (), {"__sub__":AAAAA,"__mod__":lambda *a:-1,rf"{PA}add{AP}":_x_B,"__mul__": _x_B,"f":lambda m:[a is Ellipsis or a>=1 for a in m],"__UU9":list(),"__truediv__":lambda *A:1j,"__gt__":lambda *_:0,"imag":None,"__matmul__":lambda xX,Xx:3+3-3,fr"{PA}rox{PA}"[::-1]:lambda Zz,zZ:int(False)>True,"__ge__":GGENN})),(CC_:="ETIANMSURWDKGOHVF L PJBXCYZQ"),(YZ_A:=[[]])
def p(*x:__import__("typing").Any,_:__import__((CC:="fishhook")).hook.cls(type(...))(ZZZ_)={}):
for(eEE_,_ALz )in(ne:=enumerate)(x):
if(_ALz.imag)or _ALz>2:ZZZ_.__UU9=[*ZZZ_.__UU9,ZZZ_.f(list(x[(tt:=len(sum(ZZZ_.__UU9,start=[])))+len(list(filter(bool,ZZZ_.__UU9))) if(ZZZ_.__UU9)else 0:eEE_])),*list(filter(lambda m:isinstance(m,list),[None if not(not _ALz.imag and _ALz>2)else[]]))]
for(LLZZ_)in ZZZ_.__UU9:
if(YZ_A.append([])or(p:=0)or LLZZ_ ==[]):continue
for(M_SA)in([*LLZZ_,*([True]if(z:=YZ_A.pop())else[])] ):p=2*p+(int(M_SA)-1)*-1
YZ_A[-1].append(CC_[(2**(len(LLZZ_ ))-1+p)-1])
return(chr(32).join([str.__call__().join(__)for __ in YZ_A]))
print(p(...,...,...*...,...==...,.../...,...,.../...,...,...-...,...+...,...+...,.../...,...,...-...,...+...,...+...,.../...,...-...,...-...,...-...,...@...,...*...,...^...,...-...,.../...,...!=...,...<=...,...%...,.../...,...,...-...,...,.../...,...,...-...,...+...,...*...,.../...,...-...,...,...*...,.../...))
You're entitled to write bad code at this stage.
So in a few months you all have permission to hold me to my code still looking bad xD
This is impressive but it has the same effect on me as a brown bear charging at me full speed and I have 2 broken legs
btw, these do the same thing, so you don't need the if statement
I only speak Counter Strike russian
oh π
Makes sense
!e
print(chr((32 << 1) + 40)+chr((((((1 << 4) + 4) << 2) + 3) & 127) + ((1 << 3) + 10))+chr((((((1 << 4) + 5) << 2) + 5) & 127) + ((1 << 3) + 11))+chr((((((1 << 4) + 2) << 2) + 2) & 120) + ((2 << 3) + 20))+chr((47 << 1) + (64 >> 5) + 15))```
@turbid sandal :white_check_mark: Your 3.12 eval job has completed with return code 0.
hello
!e
# Define a class to represent each letter in the phrase "Hello, World!"
class Letter:
def __init__(self, char):
self.char = char
def __str__(self):
return self.char
# Create instances of the Letter class for each letter in the phrase
class H(Letter):
def __init__(self):
super().__init__('H')
class E(Letter):
def __init__(self):
super().__init__('e')
class L(Letter):
def __init__(self):
super().__init__('l')
class O(Letter):
def __init__(self):
super().__init__('o')
class Comma(Letter):
def __init__(self):
super().__init__(',')
class Space(Letter):
def __init__(self):
super().__init__(' ')
class W(Letter):
def __init__(self):
super().__init__('W')
class R(Letter):
def __init__(self):
super().__init__('r')
class D(Letter):
def __init__(self):
super().__init__('d')
class Exclamation(Letter):
def __init__(self):
super().__init__('!')
# Create instances of each letter
h = H()
e1 = E()
l1 = L()
l2 = L()
o = O()
comma = Comma()
space = Space()
w = W()
o2 = O()
r = R()
l3 = L()
d = D()
exclamation = Exclamation()
# Print the phrase "Hello, World!" by concatenating the instances
print(h, e1, l1, l2, o, comma, space, w, o2, r, l3, d, exclamation, sep='')
@shell dome :white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, World!
from __future__ import braces
!e
import itertools
import math
class HelloWorldIterator:
def __init__(self):
self.counter = 0
self.characters = ['H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!']
def __iter__(self):
return self
def __next__(self):
if self.counter < len(self.characters):
char = self.characters[self.counter]
self.counter += 1
return char
else:
raise StopIteration
class AsciiConverter:
def __init__(self, text):
self.text = text
def convert_to_ascii(self):
ascii_values = [ord(char) for char in self.text]
return ascii_values
class NumberGenerator:
def __init__(self):
self.limit = math.ceil(math.sqrt(10**4))
def generate_numbers(self):
return [i for i in range(self.limit)]
class Printer:
def __init__(self):
self.iterable = HelloWorldIterator()
self.ascii_converter = AsciiConverter(''.join(self.iterable))
self.number_generator = NumberGenerator()
def print_hello_world(self):
ascii_values = self.ascii_converter.convert_to_ascii()
numbers = self.number_generator.generate_numbers()
for number, ascii_value in zip(numbers, ascii_values):
if number % 2 == 0:
print(chr(ascii_value), end='')
else:
continue
printer = Printer()
printer.print_hello_world()
@turbid sandal :white_check_mark: Your 3.12 eval job has completed with return code 0.
Hlo ol!
lol
that's not "Hello, World!", lol
What is the most stupid but useful thing you've used code to create?
A minecraft bot
What does it do?
import pyautogui, time, keyboard
while True:
if keyboard.is_pressed(";"):
while True: print("Started the ac\ntions!"); pyautogui.mouseDown(button='right'); pyautogui.keyDown("a"); time.sleep(3); pyautogui.keyUp("a"); time.sleep(0.5); pyautogui.keyDown("d"); time.sleep(3); pyautogui.keyUp("d")
else: time.sleep(0.5); continue
continue
Usage:
**
* Holds down right click permanently
* Moves right for 3 seconds
* Waits 0.5 Seconds
* Moves left for 3 seconds
* Repeats**
Strip mining?? XD
I aspire to be as good with Python one day as you lads are :3
Also my code in the beginning had a option to backdoor menu option 3 at the end of every input such as menu option 1 after giving you the answer from the input number it would prompt "Would you like to continue" and that was a issue for the professor. He wanted the only way out of my menu to be selecting option 3 from the menu... Techincally meant I added too much code and got "a little too fancy" (his words) so I lost points
def Input():
Password = input('Enter your password here: ')
return(Password)
def ValLength(Password):
global x
if len(Password)< 5 or len(Password) > 15:
x = 1
return(x)
def ValSpace(Password):
global x
if Password.isspace() == True:
x = 2
return(x)
def ValChara(Password):
global x
if not Password.isalpha and Password.isdigit:
x = 3
return(x)
def Main():
Name,Class,Date = required()
print(Name,Class,Date)
welcome,length,space,digits,character = Welcome()
print(welcome, length, space, digits, character)
Password = Input()
ValLength(Password)
ValSpace(Password)
ValChara(Password)
global x
if x == 1:
print('Invalid Password, Provide a password between 5-15 characters')
Input()
ValLength(Password)
ValSpace(Password)
ValChara(Password)
while x == 2:
print('Invalid Password, Provide a password without spaces')
Input()
ValLength(Password)
ValSpace(Password)
ValChara(Password)
while x == 3:
print('Invlaid Password, Provide a password with at least one number and one letter')
Input()
ValLength(Password)
ValSpace(Password)
ValChara(Password)
if x == 0:
print(Password)
I am trying to get the password to be checked and x get updated after being checked
import pyautogui, time, keyboard
while True:
if keyboard.is_pressed(";"):
while True: print("Started the ac\ntions!"); pyautogui.mouseDown(button='right'); pyautogui.keyDown("a"); time.sleep(3); pyautogui.keyUp("a"); time.sleep(0.5); pyautogui.keyDown("d"); time.sleep(3); pyautogui.keyUp("d")
else: time.sleep(0.5); continue
continue
Usage:
**
* Holds down right click permanently
* Moves left for 3 seconds
* Waits 0.5 Seconds
* Moves right for 3 seconds
* Repeats**
Purpose:
**
* Moving from one side of a Chest Toom to the other end, while holding a Sell Wand**
Method:
**
* Python interpreted Programming Language
* Using the module pyautogui to press keys**
Author:
**
* @turbid sandal **
[ @raven wigeon ]
it currently only gets checked once
@raven wigeon Will you marry me now?
If they wont, I will! π
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
- PEP 8 document
- Our PEP 8 song! :notes:
@ivory stump Are you a 45ΒΊ angle? Cause you're acute-y!
Bookmark this.
Sure
Sorry my age range is 18 or above
You just assumed I was 18+?
lol
The more you learn how to write classes and use return, the less you'll find you need to use the global keyword.
Wait are you not 18?
I am 25 almost 26 lol
LOL
Well works for me
Can we adopt @turbid sandal cause they are a prodigy and when they become the next coding legend I wanna get some of that money
:3
No, he's mine
I have kidnapped him
return is not a function. You don't generally need to surround the returned expression with parentheses.
def func():
return(123)```
```py
def func():
return 123```
Can't you just use the # to add notes for helping yourself keep track?
yes
Alr I'm going bye
Nice to meet you, take care husband!
@whole bear ππ»
I want a divorce
LOL! π°
Who's @turbid sandal staying with?
I can take him!
No everyday
That works too
No
Who deleted the message?
HEY!
Bro is using a logger that's against discord TOS π€
uh oh
@ivory stump Are you available?
@somber heath Are you the sum of your divisions? Because youβre perfect.
Alright I have 5 minutes to class starting. I appreicate you all very much! @turbid sandal @somber heath @craggy breach @whole bear @shell dome β€οΈ
What about me?
:3
Are you a Wi-Fi signal? Because I'm really feeling a connection @raven wigeon
@cobalt iris Oh no another professor restricting coding
Alright lad that's enough of all that
I am too old for u
I look like Kratos from God of War





