#voice-chat-text-0
1 messages · Page 15 of 1
See you Tech
:(((
Am I right?
yes but still..
oof ok
The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.
Stupid . at the end of that...
ye i see
It'd be violating their ToS for sure
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
🐐
:x: Invalid rule indices: 32
:x: Invalid rule indices: 34
sed
ye i know
@midnight agate Are you in a glass hallway at a shopping center?
I mean honestly, this still seems better suited to be something like a poll system. Each client/ip gets their votes done once
Can it be green
Anokhi, a indian name ig?
Yea he's indian
On a work visa in the us 😒
So lucky
@mild quartz how did you get so lucky with your visa?
Ohh, glad to hear this, not like me struggling in 3 tier college doing btech
btw I'm also from India
17 of 25 8 to go
for what?
vc max limit
why did you say you are?
i am sick fuck
lol
what was the discussion sponsorship isn't money?
Multi cloud is bullshit
RIP Cent OS 😢
Only way to do it well is run everything as primitive and that sucks
😲
how dare u
Now get out before my customers realize that I'm forcing them to pay five times as much for ten times the effort
I landed on this server a month ago, since then i heard not a single term i already know about.
This is why people won’t shut up about Multi cloud.
lmao
that is a lot of work
Oh, @molten pewter and @quasi condor, one other thing. So you can draw multiple cards from the discard (from latest discard to whatever), but you have to make something of it if it's not a single card
So for example
It drew for me
God
Damn
It
Figured it out
You have to click up to the card you want to draw in discard
Oh one last thing. The cards you still have in your hand after the person goes out counts against your score
Couple of us are playing Rummy 500
'bout time
They already did
Oh - they stopped installing it, but now they're actually removing the option to reinstall it?
whats that?
it breaks stuff that runs on ppls machines
most people use arch because it's the best combo of ease of use and customizability
program editor?

They stopped installing it several months ago, and I didn't even notice
Even my servers are using Arch Linux BTW, BTW, and they didn't care, because they're running up to date shit
i wish
I love it - I'm so convinced that HTMX or something like it is the future of web development
I don't know what htmx is
there is a website which is pretty good for finding out that sort of thing
and that is...
https://www.amazon.com/gp/product/B00UI2QHQG?notRedirectToSDP=1&ref_=dbs_mng_calw_1&storeType=ebooks
1 day
@midnight agate are you a main character
It's frustrating
But this is why I use push to talk
But there are so many people who bitch about it, yet it's a good solution
I use the mute button on my sound card
Also a good option
was this the guy?
probably
I don't think it was actually
@silent sequoia Granted the 3 week probationary period
this is a fire car
Find your next car with Auto Trader UK, the official #1 site to buy and sell new and used cars. Over 400,000 cars online. Simple, easy, quick!
Read the reviews for the seller
They're amazing
@quasi condor Interested in Rummy or are you carded out
so how are you
hmm
good whenever you are
One moment, work thing
no hurry
@rugged root lp wants you
@rugged root I had no part in this
@rugged root he instigated the whole thing
@woeful salmon I miss you
hey
@quasi condor You're a bastard
Sup bois
Good morning
What even is going on someone fill me up o_O
Ahh
Noice 😎
👍
Nope
Nahhh 💀
🙄
Cool man
Good night amn
@whole bear
@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | url
002 | same text
@wintry pier :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: dictionary update sequence element #0 has length 1; 2 is required
@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {'name': 'namevar', 'extension': 'extvar'}
002 | <class 'dict'>
@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {"name": "bob", "extension": "billy", "number": 0}
002 | <class 'str'>
whats going on in here?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hmmm
I see
welp
I have to send those messages somehow
are you coding something rn?
Haha the wonders of programming.
probably it's becuase they didn't test it on every machine
or it's just a strange bug
oh I don't know
what is it
yes
yeah
Oh you mean extension
hmmm
I use UltraBlock.
as an adblock
that's really weird.
Aren't those files hidden?
C:/Users/<username>/AppData/Local/Google/Chrome/User Data/Default/Extensions
lemme just go there
chrome://extensions/
Mine extensions are working just fine.
Have you tried reinstalling those extensions?
So you're on windows? Do you still have the Internet Explorer installed?
I heard that Microsoft made an announcement that IE is really unsafe...
Okay guys, I have to go. Later
Hoy hi.
Well, there's a lot going on in the world, isn't there?
So I'm feeling that...
Scrub.
The multitudinous plethora of happenings.
Namste opalmist 🙏
!voice @gusty bramble
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Yeah, but it's going to get stupidly crowded if that happens.
That might be fine for managed events and things.
Where only a handful of people can talk while other people listen.
i dont have a good mic.
I keep thinking of Mr Blue Sky.
"Hey, there, Mr Blue. I'm so glad to be with you..."
hello everyone
Hoy.
thats my fav song.
Ha. Go figure.
What is breakfast?
do you remember me sir?
damnn gamingbuddist
woahh
the og's are still here
Egg sandwich
hello chrisssssssssss
Hey @languid locust
I'm sorry, but I do meet a lot of people on here. It may be that I could remember our previous interactions, but I don't recall them at the moment.
I may need reminding.
yess so i'm uh OpManBros
Rings a bell.
I remember Op
yay hello :D
hello
Welcome back!
thanks :), i got false-banned
for alt account even tho that was my first ever account on discord
thanks again for teaching me soome stuff in python hehe
ty
Really good. Just going to school now to get the piece of paper everyone wants so badly
The United States Declaration of Independence?
oh that's cool, goodluck with school.
lmao
Thanks
👋
heyy
which is effortless from you
Well, I mean, if you're doing it properly, yeah.
{
{} curly braces
[] square brackets
() parentheses
if ()
{
// code
}
if () {
// code
}
would that really make a difference? no.
although i would interprate the first one with c++ background
really couldn't care less
the ppl who write like former should be instabanned bruh
no
thats the stupidest thing i have ever heard
also they have "made" the standards
so really can't go against the all mighty gods
That's the style that C# uses
really?
Yeah
vscode never formats it like that for me
let me checkk
oh ye
but like i don't really care
c# is the best language ngl (in language terms)
c# is just magnificent
I saw this at work at some point
if (true)
{
exit()
}
HTML is a markup language which is distinct from a programming language.
if (true)
{
}
``` thats how i do it
its a skeloton language
better than
if True:
It'd be like saying that Discord's markdown stuff is a programming language.
lmao
while :
else:
``` laughs...
your the one saying random stuff ngl.....
and disagreeing with everyone..
its not a matter of sex, its a matter of saying bs and having the audacity to argue
@round cedar what langs do know?
ah nice
So the youngest boomers would be ~58.
damn
i know c
scss >>>>
nice
i wanna learn C++ i only use platformio
so like not that advanced
@wind raptor and what about lass
less
and tailwind
tailwind is a framework
less is a whole other thing
less is like scss
tailwind is like bootstrap
I need some help in python with some kind of questions I don't know how to do.
PostCss is best NGL
i know facebook uses it
they are all transpilers @whole bear
not languages.
postcss
Do you have anything we could look at?
Postcss is transpiled css
...
PostCSS is a tool for transforming styles with JS plugins. These plugins can lint your CSS, support variables and mixins, transpile future CSS syntax, inline images, and more.
same as typescript
what about type scripts then
transpiled
yes questions
transpiled is like compile to another language
compile is like compile to machine code
please just send it :).
or maybe claim one of the help channels
No
yeh you quite right but i used to think php is good too until i learnt bout lolcode
trust me its wayy better
you sound like 12 at most
:V no cap
I'm way more dominant
dominant in crying hehe :V
bullying you shouldnt even count as disrespectful but whatever
damnnnn
@sleek otterDo you intend to show the questions to us in the next three minutes?
thats a good excuse for running short on words, lmk when you come up with something
wait my questions r not loading.
Ok, take it down a notch all
No
I have piano practice
Shut up
I could see you lackin
Boii
Is this asking for help without showing what you want help with and ask OpalMist about it day?
Given an array of integers nums, sort the array in ascending order and return it.
You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest space complexity possible.
exmp 1:
Input: nums = [5,2,3,1]
Output: [1,2,3,5]
Explanation: After sorting the array, the positions of some numbers are not changed (for example, 2 and 3), while the positions of other numbers are changed (for example, 1 and 5)
sort()?
yeh
!d list.sort
sort(*, key=None, reverse=False)```
This method sorts the list in place, using only `<` comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list will likely be left in a partially modified state).
[`sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort "list.sort") accepts two arguments that can only be passed by keyword ([keyword-only arguments](https://docs.python.org/3/glossary.html#keyword-only-parameter)):
*key* specifies a function of one argument that is used to extract a comparison key from each list element (for example, `key=str.lower`). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of `None` means that list items are sorted directly without calculating a separate key value.
That violates the question specification.
Indeed, I'm not sure that list.sort is compliant, either.
@somber heath i want to do selection sort
Depends on Python's implementation of Timsort and its time and space complexity.
I suppose the idea is that you use list.pop and list.insert and maybe list.append.
you can do something else
I'm sure you can.
without any bultin functions
but like i suck at explaining so let me grab some explanation online
and i'll send it for ya
If the idea is to learn the algorithm, fine. Otherwise, I'm happy to be lazy and just use list.sort and be done.
who wouldn't do that
lazy >>>
also ends up being the best code
C programmers.
c++ also
Which is fine. So long as they don't do it in prod in Python unless there's a specific need for a custom sort algorithm for a given use case.
selectionSort(array, size)
repeat (size - 1) times
set the first unsorted element as the minimum
for each of the unsorted elements
if element < currentMinimum
set element as new minimum
swap minimum with first unsorted position
end selectionSort
i tried to read this
but i didnt understand anything
SO ENJOY!
although i think it should be (size + 1)
the rest should be self explanitory
Wdym no one wants to implement algos unless it's the best solution
pov: interview questions
I do 🙂
na stupid idea
I?
your code
not mine it's my mam's questions
you are in for a threat bud
I missed my all classes bc I was sick so she told me to give it till 26th
print(type(3102) 🤣 🤣
idk how to solve I need help
we don't do homeworks
and i don't know who wrote that
but thats completely wrong
@zenith radishSorry, under what circumstances do we call you out?
😦
it took you 5 minutes to write that?....
ok
okay now theres just one person in this vc who can covince us that php is the best language
No bullying
:V
sue me
This one
@sleek otterWhat I usually do for beginners is direct them to Corey Schafer's YouTube playlist for Python beginners.
Also check out this site.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
ok?
@sleek otterI'd do a walkthrough, but I'm taking a break.
a bit overkill dont u think?
maybe fix them
and then send them to a course
so atleast they know the basics?
Not at all. It takes you through from the very beginnings to being pretty okay at the language.
i'd much prefer
to teach them that (() is not ok
and then tell them to see a course
since they will just copy and paste code
I'm sorry. I want to go and eat.
If you would like to enlighten, by all means, the floor is yours.
just saying copy and paste wont help ¯_(ツ)_/¯
@sleek ottermhm
back to that assignment
you know like basic python syntax and priting right?
Nope
I never did python.
I told u I was badly sick so I wasn't able to attend any class...
ah ok
just wanted to check if you have prior experience
nothing experienced 😭
ok so you really have two options
Opal had included a few great courses right
but i feel like w3schools is way more interactive
and repetition is key for you
soo..
i would recommend https://www.w3schools.com/python/
so your teacher does a lot of "printing"
and also does some type checking
https://www.w3schools.com/python/python_syntax.asp
https://www.w3schools.com/python/python_datatypes.asp
@sleek otter so just check out these three links
i highly doubt from the thing you showed
your teacher has taught beyond these
if you have any questions just ping me or smth
!d list.sort
sort(*, key=None, reverse=False)```
This method sorts the list in place, using only `<` comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list will likely be left in a partially modified state).
[`sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort "list.sort") accepts two arguments that can only be passed by keyword ([keyword-only arguments](https://docs.python.org/3/glossary.html#keyword-only-parameter)):
*key* specifies a function of one argument that is used to extract a comparison key from each list element (for example, `key=str.lower`). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of `None` means that list items are sorted directly without calculating a separate key value.
no no with the key=grade
read
key specifies a function of one argument that is used to extract a comparison key from each list element (for example, key=str.lower). The key corresponding to each item in the list is calculated once and then used for the entire sorting process. The default value of None means that list items are sorted directly without calculating a separate key value.
or more like just read the code and give me what you understand
without key it's noraml it sorts it alphabetically based on the first column of the tuple
@fiery bone wasm
but in order to sort it based on the 2nd one
he used this lambda function in this way which is what confused me
do you even know what lamda does @knotty marlin
i think you are confusing
sveltekit is way better than react....
sveltekit is cheap copy version react
have you ever used it?
i will never use it
Yes I know how a lambda works and it's not the problem here, the problem is how does Students.sort(key=grade) work, like the process that is going on, does it mean the sort will give the the lambda fct students list and return the students[index]
so dont talk about it
i am texting not talking
In Python, you can specify a function or callable for the key parameter in the built-in functions sorted(), max(), min(), etc.Sorting HOW TO - Key Functions — Python 3.10.4 documentation This article describes the following contents.Specify a built-in function for the key parameter Specify a lambda...
this actually shows the differnece
Ryan you are not helping me, I can't read all of this, I just wished someone would explain how it worked, I miss Hemlock 😢
Yeah gotta take care of the fam
I kinda kept asking questions a lot and he's been super helpful
tf
I give up I am just gonna rack my brain
I know how tuples work, and I know how lambda works ryan don't worry, or I think I do
bro
how big of a rush are u in though
that article explained it
You can see that in the first two examples, the list is sorted according to the first tuple value first. In the third example, the list is sorted according to the second tuple value first. You achieve this by defining a key function key=lambda x: x[1] that takes one list element x (a tuple) as an argument and transforms it into a comparable value x[1] (the second tuple value).
this is like the simplest term
if you mind read that
its just how they are sorted.
reactjs is nice
so like in the third example if lambda x: x[1] was lambda x: x[0] it would be like the first example
because its sorting from the first tuple value
but lambda x: x[1] does it from the second
i m so confused
lambda x: x[3] does it from the third
this was what I wanted to get
i suck at expalining
it's fine
also do I really have to have key ?
couldn't I just put in the name of the lambda fct
going back to your example you are sorting by the scores
i think
so like instead of the names
you are sorting by the "F", "A", etc...
that i dont know
so in theory
Yeah it's fine, sorry for bothering you
yup
i think that was it is
nicee
im soo bad at explaining
🤣
and like
if u want
i literally copied everything
from this
oh yeah Ryan one last question
go on
I think most browsers use chromium
@zenith radish
when I use Students.sort(key=grade) how does the lambda function know that I am using Students list, does the sort function when given a function as key argument automatically give the lists being sorted to the key argument ?
ur doing Students.sort()?
thats how it knows...
loll
the lambda is a function that needs input but who gives it that input, does it receive automatically
hmmm if you don't know then I guess I m just gonna assume it gives the lists being sorted as argument inside the key function
go on
i was like
if you do grade:grade... what happens, forget i said that
it was very stupid
I mean it doesn't do anything right ?
different
since it's just a name
my question is what kind of functions can I put in the key
ok lets like compile this our selfs
to test what lambda or any fct receives
#eh
def grade_function(grades):
return grades[grades]
#Lambda function
lambda grades: grades[i]
so like
it just loops i assume
idk im actually like very confused
wait what does the i do
i meant 1
@hardy cloud Cremation
oh
Crepe
# Selection sort in Python
def selectionSort(array, size):
for step in range(size):
min_idx = step
for i in range(step + 1, size):
# to sort in descending order, change > to < in this line
# select the minimum element in each loop
if array[i] < array[min_idx]:
min_idx = i
# put min at the correct position
(array[step], array[min_idx]) = (array[min_idx], array[step])
data = [-2, 45, 0, 11, -9]
size = len(data)
selectionSort(data, size)
print('Sorted Array in Ascending Order:')
print(data)
so like
what does the lamda do
i have no idea 👍
no the problem wasn't with the lambda, the problem was with lambda receiving input somehow from list.sort()
lambda is simple really, for what I know it does what function does, if you can write it in one line, and it's good for something used for a short time and then thrown away
yeah then whats confusing you
how it gets the input
oh
you see the : after it what it returns, and before is how many arguments you want to receive
same here
logger.log(code, "something went wrong") #
######
# {
# "timestamp": "6712347",
# "message": "something went wrong",
# code: 123,
# }
who logs like that
thats the most worst way to log
you know Ryan we need to put assume that the sort function gives any key argument that happens to be a function the list as an argument and we can just wait until someone who can give us the answer appears
I am gonna continue doing what I was doing
What's a better way?
literally the best way to log
if you want to later sort through the data using loki and grafana
or elk
this
19:12:25.337 [main] DEBUG com.mkyong.HelloWorld - Hello from Log4j 2
uhuh and then when ingesting the logs you have to spend time parsing that out
and when you want to extend your logging schema you have to manipulate the ingestion parser as well
useless
that's used by ancient old people places that don't know what log visualization or querying is
like that's fine for tracebacks or monolithic applications
but when you have a microservice based architecture this falls apart
haha
my project has 4 different programming languages that I want to have a single log format for that I can later query from something like grafana
@zenith radish im not you know what limitations are
@sour willow I have to fix my statement, the lambda takes not the student list but the tuples inside of the list??
corsts??
costs
there are no costs in a personal project
also if you choose to work at a java shop that's your choice
breh
who logs when making a personal project....
🤣
also eh one thing
LP How much level of data structures is needed for landing on a decent jobs?
depends on what you consider a decent job
Also what would please guide on how to prctice it
hello Strk your name is like mine
Microsoft is decent for sure and other FAANG
It's all json that gets queried from elasticsearch
Just be interested in the field
MANGA companies are mainly looking for people that are interested in coding
Or can elsehow stand out from the crowd
Any good resources on how to learn the basic concepts?
You mean competitive programing ?
And eventually moving on to problem solving.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I guess that is the ultimate goal to solve a problem/
Not necessarily, personal projects, in general being interested in new technologies etc.
But the things is you will never get a chance for an interview unless you get a referral, if you don't have a referral there is a very slim chance. Even if you get the interview, they will ask you DSA problems no matter what the position is,
➡️ ➡️ ➡️ #voice-verification
➡️ ➡️ ➡️ #voice-chat-text-0
Thank you for flying Mr. Hemlock Air
Not true, I had a recruiter message me first
And sure, I got asked a leetcode question
@zenith radish How many years has it been in the industry? And also describe a time that sparked an interest in the programming.
it's really nice, quite relaxed
daily tasks are like anywhere else I'd say 😄
It's just a programming job
With swank.
How was the interview process was it diffcult? Like what questions was it based on apart from DSA ofc.
One day of interviews, behavioural, oop, dsa and one more that I can't remember lol
then a call with my hiring manager
It was normal? Average difficulty I guess
How did it come about? I mean did they saw you on any social media or saw a project you did? How?
I was laid off at my previous company and I guess they were messaging people that were laid off 🤔
Is it wfh currently?
How to remember things while learning a programming language : syntaxes and libraries like sometime it feels like it's a finding a gem in the desert to optimize something and make it look perfect.
arduino server?
What are you up to?
ok
ye
Im Learning graphics programming
rn
ye
its really fun
but like also a bit hard
opengl
pyopengl
ye
vulkan also seems appealing but I think opengl is a good starting point
at least for what I am trying to achieve with graphics programming
message.sessionID = fsdfhifjsjdflf
/potato
C++ will make any programmer feel dumb
Cool has nothing to do with this, it doesn't make it any easier 🤣
I didn't say its bad😆
I said its hard
yes
So what do you program in mostly?
suiii
XD
@proud gull
put ur code
@proud gull
drilling
soldiering
i have no clue what u said
not a logging library
@zenith radish I'll join in 5 minutes
Microsoft uses JSON for chunks of things across their entire stack
Various tools use JSON logs to parse data from so they don't have to try to deal with parsing structured text
@zenith radish https://github.com/chromium/chromium/find/main
@sour willow
This is what I work on
every file is extended with .cc
Tf are you on about
TP-Link TL-WDR4900
{
"time": "17/May/2015:08:05:24 +0000",
"remote_ip": "31.22.86.126",
"remote_user": "-",
"request": "GET /downloads/product_1 HTTP/1.1",
"response": 304,
"bytes": 0,
"referrer": "-",
"agent": "Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.16)"
}```
log.Debug()
.Str("Scale", "833 cents")
.Float64("Interval", 833.09)
.Msg("Fibonacci is everywhere")```
{"level":"debug","Scale":"833 cents","Interval":833.09,"time":1562212768,"message":"Fibonacci is everywhere"}```
"level" as a enum?
nvm
there's no enums in json
also these are going to be loki labels anyway
!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.
@proud gull
@woeful wyvern The SIM cards operating system (OS) is similarly written in Java Card. The OS is the first and most important SIM Applet. After compiling the code, you will end up with a . cap output file that can be loaded onto the SIM or carrier profile using commands detailed in the Global Platform Card specification.Tir 6, 1398 AP
@zenith radish log4j supports json formating btw
But the default format
Is far more superior

@sour willow you're just wrong
Json is way more intuitive
I will agree
for elasticsearch it sure is
PimpedUpMonk#2832
!e
print(f"{2:06d}")
print(f"{2:6d}")
@wintry pier :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 000002
002 | 2
??
hello every body
how are you doing
why
yes
we can hear you
mission completed
communication
unclear
gin goinc
alright thanks @somber heath
i'm trying to get help with ubuntu
are you any familiar with it?
alright, may I test my luck whether you can help or not? (would you agree to help in the first place?)
thanks, here is the problem : I just installed xubuntu on a vm, I've choosed the french AZERTY keyboard layout, usually on windows, when caps are locked, I can type numbers instead of &é"'(-è_, but I can't and I have to press shift instead
I hope my problem is well explained
Tried to, didn't work, actually, the cap lock in windows mimics shift lock, which is non existent in ubuntu, I didn't figure out how to do the same thing in ubuntu
Tried to as well, they posted a .patch file, I didn't know how to apply the patch file x)
and how do I do that?
Thanks for trying to help, I don't want to be a vampire question and drain you, i'll try to solve the problem on my own, thanks though!
I will do that, thanks OpalMist!
hey! @midnight agate
In the library rn so I cant speak
oh wait was it opal that said hey?
hey @somber heath !
I was listening to you speak about computer stuff the other day and it was super interesting @midnight agate
guys do any of you know what is wrong with this?
ahh okay
Or use Powershell
im very new but im trying to specifically learn python
ill look into powershell thnks! @amber raptor
personally im starting from python
but I need to learn it for personal reasons
how long have you all been learning this stuff for? @amber raptor and everyone
1 month
🌞
SOLIET, SUN, Re
Kashar
👀 💕 🍣
我愛sushi
我
日
我愛日
👀 💕 🌞
👁️ ❤️ 🌞
wo ai re
HelloChinese, DuoLingo
@molten pewter Your opinion is King
@whole bear youre reminding me of kim jong un with your advice on this😂
i mean guys i think kids have to figure it out for themselves
i had no real guidance
i turned out ok
@molten pewter the soul is Unique
you cant mold that
lmaoooooooooo
restriction dosent work, people do what they want to do
my parenting style is let them hit rock bottom, then they can only go up
@whole bear i didnt really have a parent like that, pretty much after 12 i wasnt really learning anymore or was getting any useable advice
how long did it take people in here to learn python?
can someone help, why is it only giving me 2 values
instead of one Adam and 3 not adams
What's the intent?
the intent is for it to display all the names in the list which are not Adam as not adam
It's not a list.
I mean dictionary
!e py print({"apple":1, "apple": 2})
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'apple': 2}
Dictionary keys are unique as keys of that dictionary.
okay but do you know what causes my problem
I'm attempting to explain the mechanic of what seems to be the problem.
well I am learning list comprehension and I didn't get the problem when I messed with values but when I did the same with the key it displayed only 2 (keys:values) instead all of them with those which are not adam as not adam
The issue is that you're not working with a list.
You're working with a dictionary.
So if you have items that share keys, you lose all but one of those items.
{'Adam':18 , 'not Adam':13 , 'not Adam':20 , 'not Adam':16}
this is what the output should've been
oh I see
so it can't call it if they all have the same key is that what you mean ?
!e py print({'Adam':18, 'not Adam':13, 'not Adam':20, 'not Adam':16})
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'Adam': 18, 'not Adam': 16}
Howdy, Ghost.
well thank you Mist
You could have it as a list of tuples...
[('Adam', 18), ('not Adam', 13), ('not Adam', 20), ('not Adam', 16)]```But eh.
Depending on what you're doing, that may not be all that useful.
You could get it to print out or have a string as if it were a dictionary, but it wouldn't be a proper dictionary.
I see I see, i am just learning so thank you
Much is possible.
probably
There's not a lot going on right now, so it's not the worst time to ask.
If there were, #❓|how-to-get-help.
no one replies
Perhaps your question is one nobody knows how to answer.
shall I share my screen?
you cannot
Describe the problem you're having and we'll see if it's something we might be able to help with.
k
import time
from tqdm import tqdm
import random
AMOUNT = 3000
uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase = uppercase.lower()
digits = "0123456789"
upper , lower, num = True, True, True
all = ""
if upper:
all += uppercase
if lower:
all += lowercase
if num:
all += digits
lenght = 8
lenght2 = 6
valid = True
id_number = ""
for i in range(AMOUNT):
valid = True
id_number = input("Enter ID Number: ")
email = id_number + "@scholastica.online"
password = "".join(random.sample(all, lenght))
authentication_code = "".join(random.sample(all, lenght2))
print("Authentication Code: ", authentication_code)
enter = input("Enter your authentication code to view email and password: ")
if enter != authentication_code:
for w in tqdm(range(100),
desc = "ACCESS DENIED",
ascii = False,ncols=75):
time.sleep(0.01)
elif enter == authentication_code:
for y in tqdm(range(100),
desc = "Loading...",
ascii = False,ncols=75):
time.sleep(0.01)
print("Email: ", email)
print("Password: ", password)
Also, sometimes it's a good idea to try the help channels at different times of the day.
hello @rugged root
So i need help with the objectives
What, among these, are you currently focused on?
1,2,6
those
btw thats the output
mainly 6 no.
basically the question says is that
instead of 2011010151, if there was 2011000151
then it would be ommited as it is a srm student
"00"
!e py v = "2011000151" a = v[:4] b = v[4:] print(a) print(b) print("00" in b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 2011
002 | 000151
003 | True
huh
class slice(stop)``````py
class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
!d in
6.10.2. Membership test operations
The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).
For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.
mmmmmm