#voice-chat-text-0
1 messages Β· Page 1019 of 1
Classes are a fundamental part of modern programming languages. Python makes it easy to make a class and use it to create objects. Today you will learn the essentials of programming with classes: how to initialize them, write methods, store fields, and more.
To learn Python, start our Python Playlist HERE:
http://bit.ly/PythonHelloWorld
Sub...
In this beginner object oriented programming tutorial I will be covering everything you need to know about classes, objects and OOP in python. This tutorial is designed for beginner python programmers and will give you a strong foundation in object oriented principles.
βΎβΎβΎβΎβΎ
π» Enroll in The Fundamentals of Programming w/ Python
https://tech-wi...
The most beautiful and customizable JSON/JSONP highlighter that your eyes have ever seen. Open source at https://goo.gl/fmphc7
@candid fox Could I get screen sharing abilities?
@lavish rover
hi
I can't talk
I need 50 messages ok lol
ah damn
all good
can u help me still ?
im trying to get this running
I think its because im using jupyter lab
what do you use to run .py files
python file.py
py -3.9 file.py
@whole bear π
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
tommorrow i'll be able to speak
i have also finished my 1st exercise
i think so
i figured a some things on my own that made me feel like a pro
it was about creating a Cafeteria
order = input() #it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == 'Frapuccino':
price = 13
elif order == 'Indian Chai':
price = 14
else:
price = 8
like this
have you ever programmed with Julia?
no it's a languagee
are there any languages that are as easy to comprehend like python?
my friend told me that Java is one of the weirdest languages
not js
Hello
do you think i should buy this 100 day course by Angela Yu?
or keep on watching yt vids
it's like 100$
bruh.
@somber heath Free pdf or course which one is good
@whole bear i know a course i found on reddit
Good based on? Price-to-knowledge ratio goes to free pdfs π
@whole bear didn't even use it but it's this one https://programming-22.mooc.fi
Helsingin yliopiston kaikille avoin ja ilmainen ohjelmoinnin perusteet opettava verkkokurssi. Kurssilla perehdytÀÀn nykyaikaisen ohjelmoinnin perusideoihin sekÀ ohjelmoinnissa kÀytettÀvien tyâvÀlineiden lisÀksi algoritmien laatimiseen. Kurssille osallistuminen ei vaadi ennakkotietoja ohjelmoinnista.
This book is also very good, and it's free.
I don't like the wathc video reading materlyes is better for me
@somber heath yes your right book is little bit uselles documentry is better maybe but Δ± don't no
damn
it's hard part Δ± think learn library and module part because Δ± am tryning to made a basic clock but Δ± have to use datetime and tkinter
Δ± now basic things but
Δ± don't no
:d
yea Δ± am traing to input things in the program
and it is little come to hard
asdfasdf
I am think right now made a snake game is a impossable
im going to learn how to make a snake game using pygame
It's a really fun project!
and a Tetris
I hear that arcade is the library to use nowadays, though
bruh idk about libraries
If you haven't learnt pygame yet it might be worth it to learn that one instead
imma have to watch a vid about that
this is a good talking π
print('Hello, Welcome to 505 Coffee!!!')
name = input('What is your name?\n') #the input function basically takes input from the user. (it always converts the user's answers into strings), you can use print(input to print directly the input received from the user
#you can either put a space inside the quotations or use \n, to make the check-in cleaner and easier to understand.
if name == 'Ben':
evil_status = input('Are you evil? \n')
if evil_status == 'yes':
print('You are not welcome Evil Ben get out!!!')
exit() #it exits the program
else:
print('Oh so you are one of those good Bens. Come on in!\n')
else:
print('Hello ' + name + ', thanks for coming in today!\n\n\n')
#you can always declare the variable to be the input that it receives, or you can declare a variable to be an individual string ex: (name = 'Omar')
menu = 'Black Coffee, Espresso, Capuccino, Latte,Frapuccino, Indian Chai' #simple menu variable with no concatenation whatsoever
print(name + ' what would you like from our menu today? Here is what we are serving\n' + menu)
order = input() #it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == 'Frapuccino':
price = 13
elif order == 'Indian Chai':
price = 16
elif order == 'Espresso':
price = 5
elif order == 'Black Coffee':
price = 9
else:
price = 8
quantity = input('How many coffees would you want to have?\n')
total = price * int(quantity) #if you printed the total without converting the quantity input into an integer it would result in a weird answer. (integer times (x) string = string x times)
print('Thank you. Your total is: ' + str(total) + '$.\n\n')
print('Sounds good ' +name+ ', we will have your ' + quantity + ' ' + order + ' ready for you in a moment. ')
my first exercise
thanks!
what do you mean
!indent
Indentation
Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.
Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.
Example
def foo():
bar = 'baz' # indented one level
if bar == 'baz':
print('ham') # indented two levels
return bar # indented one level
The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.
Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines
More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation
do i have to learn how to indent properly?
where have i indented wrongfully in the code
if i space things up, they start to show up in red
if condition:
...
if some_other_condition:
...```
!e ```py
def func():
"""This is a docstring that documents this function."""
print(help(func))```
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | NameError: name 'help' is not defined
the dude that i am watching also has the same indents as me
you think so?
what he says is right
but
is this Corey Schafer dude an indentation pro?
i'll look it up
hmm
1 space indents ez
Tell that to my professor who gave us 1500 lines of C code with 1 space indents
bruh
Because "back in his day" horizontal real estate was limited
Can someone please have a look at my problem at https://stackoverflow.com/questions/72247355/parents-and-children-are-not-being-assigned
have you guys heard about *range?
I am trying very hard to understand where I am goin wrongπ₯²
i got this message π¦
code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more editing help, click the [?] toolbar icon.
Are you asking about starred unpacking or the range class?
range
specfically faster looping
!d range
class range(stop)``````py
class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int "int") or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__ "object.__index__") special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.
For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.
For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
!e
import dis
import timeit
cases = ['list(range(100))', '[*range(100)]', '[i for i in range(100)]']
for i in cases:
t = timeit.timeit(i)
print(f"{i} \t\t - {t}", end="\n")
@inland sable :x: Your eval job timed out or ran out of memory.
001 | list(range(100)) - 1.9380743349902332
002 | [*range(100)] - 2.011785943992436
ah, so the * here is what's called unpacking
!e
import dis
import timeit
cases = ['list(range(10))', '[*range(10)]', '[i for i in range(10)]']
for i in cases:
t = timeit.timeit(i)
print(f"{i} \t\t - {t}", end="\n")
@inland sable :white_check_mark: Your eval job has completed with return code 0.
001 | list(range(10)) - 0.5965019469149411
002 | [*range(10)] - 0.5114856641739607
003 | [i for i in range(10)] - 1.1279314146377146
@somber heath maybe you can help?
Maybe after caffeine. π
π
I'll take a glance at it.
>>> def a(n): return list(range(n))
...
>>> def b(n): return [*range(n)]
...
>>> import dis
>>> dis.dis(a)
1 0 LOAD_GLOBAL 0 (list)
2 LOAD_GLOBAL 1 (range)
4 LOAD_FAST 0 (n)
6 CALL_FUNCTION 1
8 CALL_FUNCTION 1
10 RETURN_VALUE
>>> dis.dis(b)
1 0 BUILD_LIST 0
2 LOAD_GLOBAL 0 (range)
4 LOAD_FAST 0 (n)
6 CALL_FUNCTION 1
8 LIST_EXTEND 1
10 RETURN_VALUE
>>>
should i use fstrings to make it even cleaner
@molten bay py children or []Looks odd to me.
that's equivalent to children if children is not None else []
(not sure of the context, just pointing it out)
Yes
Seriously? Ungh. Okay. TIL. That's bizzare, given how that would behave in an if or literally anywhere else.
>>> dis.dis(c)
1 0 LOAD_CONST 1 (<code object <listcomp> at 0x10fae1fd0, file "<stdin>", line 1>)
2 LOAD_CONST 2 ('c.<locals>.<listcomp>')
4 MAKE_FUNCTION 0
6 LOAD_GLOBAL 0 (range)
8 LOAD_FAST 0 (n)
10 CALL_FUNCTION 1
12 GET_ITER
14 CALL_FUNCTION 1
16 RETURN_VALUE
Disassembly of <code object <listcomp> at 0x10fae1fd0, file "<stdin>", line 1>:
1 0 BUILD_LIST 0
2 LOAD_FAST 0 (.0)
>> 4 FOR_ITER 4 (to 14)
6 STORE_FAST 1 (i)
8 LOAD_FAST 1 (i)
10 LIST_APPEND 2
12 JUMP_ABSOLUTE 2 (to 4)
>> 14 RETURN_VALUE
I think its the way I assign my parents and children
I am somehow losing the data after each loop
I think
Python or and and don't actually return booleans
a or b is more like: if a is truthy, return a, else return b
@lavish rover does using for _ in range(n): better than for i in range(n): during initializing of of list or tuple?
!e
print("hello" or 5)
print(None or [])
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | []
x was really y all along...again.
@lavish rover see this
@lavish rover does this look better?
print("Hello, Welcome to 505 Coffee!!!")
name = input(
"What is your name?\n"
) # the input function basically takes input from the user. (it always converts the user's answers into strings), you can use print(input to print directly the input received from the user
# you can either put a space inside the quotations or use \n, to make the check-in cleaner and easier to understand.
if name == "Ben":
evil_status = input("Are you evil? \n")
if evil_status == "yes":
print("You are not welcome Evil Ben get out!!!")
exit() # it exits the program
else:
print("Oh so you are one of those good Bens. Come on in!\n")
else:
print("Hello " + name + ", thanks for coming in today!\n\n\n")
# you can always declare the variable to be the input that it receives, or you can declare a variable to be an individual string ex: (name = 'Omar')
menu = "Black Coffee, Espresso, Capuccino, Latte,Frapuccino, Indian Chai" # simple menu variable with no concatenation whatsoever
print(
name
+ " what would you like from our menu today? Here is what we are serving\n"
+ menu
)
order = (
input()
) # it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == "Frapuccino":
price = 13
elif order == "Indian Chai":
price = 16
elif order == "Espresso":
price = 5
elif order == "Black Coffee":
price = 9
else:
price = 8
quantity = input("How many coffees would you want to have?\n")
total = price * int(
quantity
) # if you printed the total without converting the quantity input into an integer it would result in a weird answer. (integer times (x) string = string x times)
print("Thank you. Your total is: " + str(total) + "$.\n\n")
print(
"Sounds good "
+ name
+ ", we will have your "
+ quantity
+ " "
+ order
+ " ready for you in a moment. ")
mhmm
they told me my indentation was not good so i ran a formatter on it
that looks much nicer indentation wise
I would recommend using f-strings instead of manually concatenating stuff
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
list(range(1000)) - 12.387489164997532
[*range(1000)] - 12.356448765000096
[i for i in range(1000)] - 26.389360463999765
oh
hmmm, depends on how fast ur devices is
ofcourse, python's speed is implementation / device dependent
$ pypy3 test.py
list(range(1000)) - 1.6721108530000492
[*range(1000)] - 1.692876545002946
[i for i in range(1000)] - 1.625618415997451
almost an order of magnitude faster if you use pypy π
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
is there a way to make the if nesting cleaner because if i nest a lot of ifs and then unchain with elses it look really weird.
what the.........
why...
see this
oh god... why did they do that....
why not? it makes a lot of stuff convenient.
remember that or is an overridable operator, so it needs to be able to work with arbitrary types
this way you just have to define the truthiness of your object, and you can use or and and by default
in boolean expressions it behaves exactly how you want it to, but you can also use it to short circuit expressions like:
def f(a=None):
a = a if a is not None else []
# to
def f(a=None):
a = a or []
sure, I see who it might be useful... or and and , boolean operators have so much importance in formal languages, I wish, they are just boolean operators..
why does it make a difference if they are not?
boolean expressions are unaffected
why remove functionality?
yeah... i see why it might be useful.. but, I already don't like bool is just a wrapper around 0 and 1...
it's just an opinion... i wish they are just bool operators....
I'm not sure how you expect it to work, at some level true/false needs to be represented in memory
once again, you don't have to use it that way if you don't want to, I'm just unsure why you'd prefer to not even have the option
@molten bay did you ever solve your issue?
I just want my equality to be mathematically perfect...
if bool are not wrapped around (0,1)...
2 will be first evaluated to True and True will be compared to True
well, if you want your equalities to be consistent perhaps you shouldn't be trying not 2 π
yeah... Ik... it will never be an issue...
just something, I like knowing... "wow, this is consistent"...
even theoretically, that seems weird
what do you mean...
car == tree is false, but I wouldn't expect (not car) == tree
it might be completely unrelated
I would consider consistency as car == tree and car != tree behaving as expected
talking about bools...
if you're just talking about bools then not 2 doesn't fit into your argument
.
not 2 is being evaluated to False...
yes, sure, but if you want "consistency" then why even consider cases where boolean operations are applied to non-boolean types
if you only use boolean operations with boolean types they behave exactly like how you want them to, is my argument.
2 should be evaluated to True first and then it should be compared with True == True...
instead it is being evaluated to 2 == 1.... which is false...
I don't think that makes sense
why would you implicitly convert one type to another
okay... wait...
you'd get [] == "" in that case
we'd go full javascript
because both [] and "" are falsy
yeah... that is true...
both doesn't make sense, I suppose...
mine only make sense.. if we explicitly convert it to bool...
@lavish rover Lol no, still trying get it to workπ
just had a quick glance at your code
you seem to be marking a node as visited as soon as you add it to your queue
you should only mark it as visited when you pop it from the queue
I'm not sure if that's the issue, but it's an issue
If I want that, I should go to rust, ig...
even rust doesn't do this, 2 != True in rust
@lavish rover Sure, I can change that - but the real problem is that I don't know how to store the "Points" with their parents and children intact to run through the path at the end
1 != True... in python it is
that's fair, 1 == True is a little annoying
Yeah... that's what I'm saying... bool shouldn't be wrapper around (0,1)
eh, I don't think this is ever realistically an issue, especially if you're being good about types
the thing is that Rust just... well wouldn't allow you to write code like this
so if you want python to be like Rust just write better code π
you only really should be comparing objects of the same type if you're writing your code "correctly"
True...
mine doesn't make sense either.... we get that js equality....
yeah, the whole point is that statically types languages don't allow equality between different types of objects
the fact that you are able to in python is already an extension
"equal" depends on your definition
yeah... ik...
it should have these properties though...
but ig we can't get all of them unless we have a statically typed lang
even then, you can override equality checks in many languages π
!e
class A:
def __eq__(self, o): return True
class B:
def __eq__(self, o): return False
a = A()
b = B()
print(a == b)
print(b == a)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
I wouldn't say this is inconsistent
those rules of consistency are for a definition of mathematical equality
that only exists in theory
programming languages don't claim to have as such
no...
I think... Big-O notation is asymmetric.
So this happens in Maths too.
Yea. It is consistent. Not a problem with that.
O(x) = O(x^2), but not the other way round.
this is a abuse of notation for connivence...
O(x) belongs O(x^2)
they are sets..
It is abuse of notation. But it is well understood.
ig, you have some other example.... in mind... i don't think... this is true..
something like
n + 1 = O(n^2)?
Big-O notation is order relation....
Big-Theta notation is an equivalence relation...
O(x) < O(x^2)
I am okay with whatever being used usually, as long as I can understand it!
I've never seen this.... I gotta check... how people are abusing notation π ...
even this is abuse of notation, really
I wouldn't use it myself, but I have seen them. I just make a best effort to understand them.
not technically even sets
they are sets...
I can concede to that if you want, there's analogous definitions that define them as a set
the alternative definition is to define what a function being "in" O(n) means
but you can rephrase that to just define O(n) as the set of all functions matching that definition
anyway
I read = O(n) as a statement about the bound of the left-hand side. I have never considered whether making a set or collection out of it is well-defined.
that's fair, for most cases this gives you the correct intuition
the problem is when you try to talk about that = as mathematical equality, which is the discussion where we were having
can you send that alternate defintion... I would like to see... "in" sounds like sets...
it's literally just something like:
a function f(x) is in O(g(x)) if there exists some constants n0 and c such that for all n > n0, f(x) <= c * g(x)
ye, that's what I meant, you can just rephrase that to be a set definition
it is the set defintion...
O(g(x)) = {f(x): there exists some constants n0 and c such that for all n > n0, f(x) <= c * g(x)}
would be the proper set definition in my books, but oh well
maybe that's just a matter of opinion
As long as a = b has a unique boolean value, I am okay with it!
this doesn't really make sense to even talk about with big-O, but in programming languages I mostly agree
both are same...
we need latex in pydis..
im not arguing with you, I'm literally sayiing the definitions are equivalent...
okay...
we abuse this so we can do stuff like this
nvm guys.... it took me so long to understand algorithms, because of this abuse of notation and none of my professors told me about it... I'm getting too emotional about this...
isn't this basically what I've been saying all along? π
I was disagreeing with you about this... they are literal set of functions.... not analogous to sets...
I literally said that I concede you are right, and that there's an equivalent definition
I don't know how you're disagreeing with that
anyway, I'm gonna go for now
be back later if you're around
bye...
is there a function called and in python?
im a newbie and i've programming for 2 days
you are asking about and ?
ah... I didn't see this...
In proper set theory class... mathematicians define sets like 1st definition...
2nd definition is syntactic sugar around 1st one... We had different opinions on what constitutes as set definition...
and is not a comparison operator... == is a comparison operator...
Huh. Can't get @ autocomplete for Noodle's name.
!e
import unicodedata
for char in "γπ΅πππ
πππΉπππππ.γ":
print(unicodedata.name(char))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | LEFT BLACK LENTICULAR BRACKET
002 | MATHEMATICAL BOLD ITALIC CAPITAL N
003 | MATHEMATICAL BOLD ITALIC SMALL O
004 | MATHEMATICAL BOLD ITALIC SMALL O
005 | MATHEMATICAL BOLD ITALIC SMALL D
006 | MATHEMATICAL BOLD ITALIC SMALL L
007 | MATHEMATICAL BOLD ITALIC SMALL E
008 | MATHEMATICAL BOLD ITALIC CAPITAL R
009 | MATHEMATICAL BOLD ITALIC SMALL E
010 | MATHEMATICAL BOLD ITALIC SMALL A
011 | MATHEMATICAL BOLD ITALIC SMALL P
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/usolerilab.txt?noredirect
HI
When
yield from <expr>is used, the supplied expression must be an iterable.
Hello Opalmist. How have you been? Wow. Why have you only been outside that little amount of times since covid?
Thats fair i guess. Im in a position where my buisness i work for is in a food delivery to grocery stores. So the chance of them letting me never come into to work with all this going on is not a chance at all. Yes ive caught it aswell.
How many times have you been Vaccinated?
Im not asking to debate this at all. Cause i also got vaccinated at first because i felt it was something i was doing to keep me safe for my family and if it was something that did slow the spread i was 100% game for it. Just seems there are alot of bad. With the Vaccine.
Yes Masks are non existent pretty much around where i live now
Again Opalmist. Not trying to stir up anything. I agree with you that i was on board 100%. And I'm in a different enviroment than you.
LOL
Yea i just wanted to confirm i know it can be a touchy Topic
Its not going to be gone. I dont think ever.
I've not kept up with it in a while
Last 1 i was aware of was the Omnicron variant i think
I agree that there should have been a better way to deal with it
Guys ! Need help with the his !!
I wanna write script for Linux OS, where we need to get a disk management status and if 1GB data is added or crossed the threshold value I should get a notification !!
Well Opalmist. I hope you do stay sane in all this and Glad to know your doing good. And im glad i have you in this discord. Because this coding stuff is about to make me jump off the ledge lol!
I don't know of the right way to do it. But you could call df and parse the output.
I'd ask in #unix
I did df but I don't know to set the threshold value and get the notification
I suppose it would depend on the Desktop Environment.
There'd be a notification API, presumably.
Oh okay !
Not certain how you'd go plugging into that.
Nothing impeticular
Just learning the basics still
Yea, I feel im understanding alot more. with that said i think i try to jump into creating something and then i dont know how to start and then i just go UHHHHH lol
And then i go 100 different directions from there.
And im trying to keep myself there. Know how to really understand. what all the basics mean
print("The second name on the names list is %s" %second_name)
This is something newer for me what does the % do? or called?
Yea Mustafa
Blows my mind
hello
i remember you telling me about that
@somber heath think the proper word for it is creative coding?
I dont do anything like that lol
I cant even write code right now. like i can print! lol
i've developed this hate for anything rendering related
I just want to be able to start creating anything. Honestly because i feel like thats the steps you actually feel like your starting to understand what your doing.
i've been programming for 6+ years now and i haven't made a single proper GUI based app
if you count Processing as UI framework, that is the only thing i've used lol
though, i basically stopped doing anything that has visuals in it
Processing is originally Java
i worked on this one project for over a year now and i'm kinda looking for something different
i stopped doing java 2 years ago
yeah, i do it similarly
the first thing i make is always a massive screw up but in the end, i learn something
kinda looking for project ideas π€
what do you people work on?
oh so, that's how you pronounce "exe" lol
brb

no linux logo yet @woeful salmon π
i recently came up with an amazing name for a project
i just need to find what project it should be π
same, i also do it before deciding what the thing will be
@somber heath come up with some cool username for me.. π
i'm waiting for my new pfp π
fair enough...
so i wanna installing vs2009 on my WindowsVista vm
lmao
Daedalus.
i wouldn't name myself this ngl
never heard of him... but sounds cool
I searched Google I couldn't get the answer
Icarus.
yeah... enternals!
ohhh, that's why it sounded familiar
villain name is icarus in eternals...
it gets colder the higher up you go but π€«
they pulled a transformers thing... "Every thing you know about alot of mythologies" are eternals...
Marvel just feels like they are trying to create memes instead of a proper plot
if they keep making movies like this... mcu will endup just like xmen universe with alot of plot holes...
i got spoiled spiderman the first day so i'm just waiting until i forget it
the last one
i'm probably not going to enjoy it either way
because i've never once enjoyed a marvel movie but i still watch it because visual effects cool
Sopilers ahead... ||aunt may dies, Andrew Garfield is a liar||
i should really turn off auto spoilers
i had it on for another server
but there is a third option for having spoilers
only if you have perms or smth along those lines
this is what i mean
So what is this doing exactly?
name = "Opalmist"
print("Hello, %s!" % name)
What is the %s? then the % name? is the % like a call to the name variable?
that looks like old python
they are C style formating
its on something im learning
you should use f strings
you know little bit of C?
then it's not meant for you... it is for people who got used to C
%s is saying it is a string...
i would still stick to whatever the most modern way is
no matter what i'm normally used to
as a response to this
yea im more used to seeing somthing like print(f"Whatever, {name})
yeah... fstrings are better... just saying.. it is targeted at those people...
thank you. This is just when you see it. on something im trying to learn off of its so confusing lol
what i'm saying is, even those people should use f strings because that's the way in python no?
wow. i guess i should not look here then
it's legacy... once you add something to a language you can't easily remove it.. and people will continue to do in old ways...
Opal is the only one speaking lol
it was not
u just started talking
i only really speak in VCs with very close friends but it's nice to hear more than one voice
i would chat if i was not in the living room with my family lol
oh yea ive done that for sure
hello
I did realize that couple of days ago when furyo is going through automating boring stuff...
what does "what id" mean?
ide
ohhh
nano is a text editor.
@somber heath use it on phone?
Ive only tried out Pycharm and Visual studio.
i don't use any IDEs atm, just VSCode (some people consider it an IDE, some don't)
ah.. okay with ssh on phone?
I'm super confused... does android have builtin terminal?
oh...
there are some other app to install linux but termux is most popular
how does that work with android sandboxing?
but to run python on phone i found replit most user friendly
you aren't running it on phone if you are on replit :)
i haven't used termux that much. can you install specific ditsro in termux?
like ubuntu or debian?
iOS only has ssh clients
i use that alot...
it should be opened up...
by force... if needed..
noodle, we can't hear you if you are speaking
@woeful salmon
i want to switch over to ubuntu
i have to use a mac for reasonsβ’οΈ now
nothing basically
was working on this project for over a year and just quit
arm ones or intel ones..
ARM
trying to find a new project to work on
people are working on linux on m1... probably will take like a year or so to be stable...
i need a good GPU
if you can find one π
exactly
you can use aws instance for now
In this tutorial I show you how to code a Minecraft mod for the Fabric Mod Loader.
Modmuss50 gradle website: https://modmuss50.me/fabric.html
Downloads:
JDK 11 (MUST HAVE): https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
Fabric Example Mod: https://github.com/FabricMC/fabric-example-mod
Visual Studio Code: https://code.vis...
p2 instance are 90 cent per hour
@glad sandal what are you working on?
Minecraft mod :D
true wisdom@woeful salmon
3060 , ryzen 7 5000 series, 16 gb ram , etc
are you talking about like curseforge the wow addon place?
desktop or laptop?
this is a laptop
i thought so...
it's so fucking expensive to build a pc in india!!!!!
yeah...
but buying parts individually is more expensive than buying a laptop with that specs.... in india
oh god.. that's messed up
@woeful salmon they copy pasted from stack overflow π
people should read what they are pasting from stackoverflow @glad sandal
all parties involved in a war will commit war crimes...
just lesser of two evil...
Yes
:D
you need to get enough experience in this channel to qualify
Hope everyone has a good day im going to hang out with the Family. If anyone doesn't mind sending me some quick info on some really good discord bot information i would greatly appreciate it. and if not all good. Thanks so much for all the help everyone has supplied me with aswell
Deleting a repository
On GitHub.com, navigate to the main page of the repository.
Under your repository name, click Settings.
Under Danger Zone, click Delete this repository.
Read the warnings.
To verify that you're deleting the correct repository, type the name of the repository you want to delete.
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@woeful salmon
'gradle' is not recognized as an internal or external command,
operable program or batch file.
either it is not installed or you didn't set the path
idk, I only used gradle for work.. ide manages that for me...
idk
@glad sandalgradlew genEclipseRuns
gradlew genEclipseRuns
hey no worries
Ursina, an open source, python powered game engine
!e
import sys
sys.stdout("Hello world")
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | TypeError: '_io.TextIOWrapper' object is not callable
I thought print was an alias for that, but I guess I don't fully understand how that works.
oh, wait...
!e
import sys
sys.stdout.write("hewwo world uwu")
@willow light :white_check_mark: Your eval job has completed with return code 0.
hewwo world uwu
Print adds a \n to the end of whatever you give it, by default plus a bunch of other convenient ways of talking to it.
vs sys.stdout.write which is boring.
I've seen instructors insist people use sys.stdout.write instead of print because that's how other languages do it. There are times I feel some level of disappointment in humanity.
I see that with the same feeling as whenever I see
from __future__ import print_function
at the top of a Python3 script
Hey. I still have to write Python2 at work, okay?
All you really need to do to replicate sys.stdout is pretty much use print with end="" and give it one object.
Not my decision to make!
!e
import { create } from "https://deno.land/x/djwt@v2.4/mod.ts";
const key = await crypto.subtle.generateKey(
{
name: "HMAC",
hash: { name: "SHA-512" },
},
true,
["sign", "verify"],
);
const jwt = await create(
{
alg: "HS512",
typ: "JWT",
},
{
foo: "bar",
},
key,
);
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | import { create } from "https://deno.land/x/djwt@v2.4/mod.ts";
003 | ^
004 | SyntaxError: invalid syntax
I clicked "Format document" and it made it this way
Freestyle c style.
I get the sense that people who write code formatters are deliberately shit at what they do.
pip3 install black && black .
"You want formatted code? Here. Have the worst formatting possible because lol."
unless you're crazy like me:
conda install -c conda-forge black && black .
A well meaning math teacher finds herself trumped by a post-fact America.
@south bone ^
Subscribe for more short comedy sketches & films: http://bit.ly/laurisb Funny business meeting illustrating how hard it is for an engineer to fit into the corporate world! Watch the next episodes: http://bit.ly/SquareProjectEp1, http://bit.ly/SquareProjectEp2 & http://bit.ly/SquareProjectEp3
Starring: Orion Lee, James Marlowe, Abdiel LeRoy, Ewa...
Er @south bone are you aware your sound is coming through?
now I am sorry about that haha
Heyo π
Ah I wasn't listening
I'll get you next time 
You and that little dog!
related video
https://www.youtube.com/watch?v=zE8oOfWocVc
Classic footage of "That train sound" caught on camera by Pecos Hank in May 2003.
So er, what is everyone up to?
"The greatest evil ever done on humanity was the polarization of the world into good and evil in the first place"
In that case you'd probably enjoy Nietzsche
you know you are italian af when not only do you have a favorite pasta, but you send angry letters to the supermarket because they stopped carrying it
You don't make your own???
only when I'm making lasagna
My favorite is strozzapreti, and I'm not very good at making it (yet)
I didn't know pasta making machine is a thing
You roll it flatish, feed it in the the machine roller at incrementally thinner settings, then feed it through the cutter roller.
cries in wooden rolling pin
I've been meaning to get a pasta machine add-on for my stand mixer though
for this exact purpose
Anyone who is here good at bash scripting ?!
:incoming_envelope: :ok_hand: applied mute to @mild cloak until <t:1652644073:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
hi?
so
like i'm looking for like a code to make a timer
for like an A.i to pick some random direction
ok
wait let me try something
ok, thank you for helping
it's sort of work
thanks bye π
can i get unmuted
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i think i got muted like 2 years ago
can i please pass
ive been in this server for like 2.5 years
can i just voice call you for the meantime if you get bored of this way
i posted my question in general but ill copy and paste
@lavish rover https://youtu.be/Zh3Yz3PiXZw Referencing this.
A well meaning math teacher finds herself trumped by a post-fact America.
Exception has occurred: AttributeError
'Intents' object has no attribute 'message_content'
File "D:\Python(VS)\discord.py-master\examples\basic_voice.py", line 130, in <module>
intents.message_content = True
PS D:\Python(VS)\Discord Bots> & 'C:\Users\ID144\AppData\Local\Microsoft\WindowsApps\python3.10.exe' 'c:\Users\ID144.vscode\extensions\ms-python.python-2022.6.2\pythonFiles\lib\python\debugpy\launcher' '49252' '--' 'd:\Python(VS)\discord.py-master\examples\basic_voice.py'
PS D:\Python(VS)\Discord Bots> python3 basic_voice.py
C:\Users\ID144\AppData\Local\Microsoft\WindowsApps\python3.exe: can't open file 'D:\Python(VS)\Discord Bots\basic_voice.py': [Errno 2] No such file or directory
PS D:\Python(VS)\Discord Bots>
PS D:\Python(VS)\Discord Bots> python3 "D:\Python(VS)\discord.py-master\examples\basic_voice.py"
Traceback (most recent call last):
File "D:\Python(VS)\discord.py-master\examples\basic_voice.py", line 130, in <module>
intents.message_content = True
AttributeError: 'Intents' object has no attribute 'message_content'
PS D:\Python(VS)\Discord Bots>
Hey @white leaf!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!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.
@classmethod
def mac_terms(cls, terms: typing.Iterable[str], key: bytes):
return sorted([cls.mac_term(i, key) for i in terms])
@classmethod
def mac_term(cls, data: str, key: bytes):
return hmac_message(data.encode("utf-8"), key)
ΞΌstafa
@sand oyster π
@somber heath https://www.youtube.com/watch?v=u8LMyWcKL_c
@whole bear https://www.youtube.com/watch?v=5DGMORmPRhY
Doofus π€£π€£π€£π€£
yeh i get it
i my dream
i use a fuction range to set te range of the habilities
on the board
like if a have a [2,6] you cant use the spell on yourself
bacause you dont have 0 on range
and cant use atack on front of you because the range not have 1
@somber heath https://www.youtube.com/watch?v=NwcbfIx0AHI
that song is a bit uncomfortable
Matrix Revolutions: Navras.
here on brazil @willow light the temperature cold get to 43celsius
bro 15 here its fell like freezing
Lolll
kkkkkkkk
Damn you'll freeze in that weather
ruins a house
Because that's all you can really do in NH tbh
Docker caching runs my server out of space occasionally
[bradleyreynolds@idi1 ~]$ docker system prune -a
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated to them
- all build cache
Are you sure you want to continue? [y/N] y
Deleted Images:
deleted: sha256:d906039df5d27315102fdb728e0196f90c6dbeef6ca0772aebab55705cbab51e
deleted: sha256:cd5db907140115ff1adb65b032821818287bfca34ea83ab5b049a50abd2eed87
deleted: sha256:85dc1fe33f9f3fa0d61f3c797e6e48a7fbb1c13dde9da261e60b533498757c6b
[...]
deleted: sha256:713f656995940804afe86cbe50530c7d9b68d89a2576d899f44626d999aea683
deleted: sha256:f6441b6726f73aeefa5c5bf758944915c09dd342fd713bf4f7d317107ee9a4bc
Total reclaimed space: 7.871GB
Sooo many layers
cries in SRE
sheesh
I wanted to try cloud dev boxes
Thought about trying codespaces
Then my boss removed some VMs from production to save money
That's why you put the VMs in nonprod
I don't have the budget for anything right now
Gitpod has 50 hrs a month for free.
That might cover most of it
It would be plenty to give it a shot with
Can I clone git repos in replit?
I mean, you do log in with github
yeah
bo zhu are chinese?
could someone help me practice reading docstrings and making code?
u cant read?
wait i cant tell
reading docstrings? what practice do you need for that
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
oh ok lol good now ty β€οΈ
I have a test on friday... so I just need help practicing reading them and making code because our teacher said it was based around it and she didnt even give pracice π
did she said ur code should be fast?
wdym "fast"
or u will pass only if can run
You qualify, Misaki. Should just have to do !voiceverify in #voice-verification
Then you'll have to either swap channels or leave and rejoin to get the permissions to kick in
And I cant even find tutorials online for reading docstrings and outputing code for practice....
why u cant even read them :0 what languages u use
Wait, what's confusing you about docstrings?
Like how to document your stuff with them?
Common practices and all that?
nuuu like so my teacher said the outline is that we will need to read docstrings this friday on a test and then we have to write a code that matches the docstring essentially
it that makes sense?
Yep. It's essentially the same as being given a prompt to write a function and doing that
Same thing, just in a docstring
hmm do u have any practice questions I can do?
Cause im still confused on the whole basis of it tried to look online people have different ways
it just like normal question
if u have logic
...
i said "if"
logic is hard to find these days. especially on facebook groups for local areas lol
im using facebook ;-;
my condolences
Logic is everywhere, it's just that logic is subjective
That's why the world is pretty f*cked up if you think about it
watch rick roll 10 times
I'm in your neighborhood
Somehow I doubt that
so... anyone got questions i can practice on? To read docstrings and make a code with it...
Docstrings come after the code
unless you're masochistic enough to write the docstrings first and then code around them
glares at connexion library
I'm more confused than I was a moment ago
Are you wanting to try and build a project from requirements?
Haay
Any projects would be fine for that
Yoyo
DO IT
You'll have to use a different name if you want to use the test PyPi
i have a test on friday for me to read docstrings and make a code that represents the docstring cant find anything online to help, came here to ask
Docstrings are used to describe the code you've written
They're generally written after the code
Can you provide an example of what you're talking about?
hmmm okay but i know they are written after the code. Let me find an example of what i mean
I found this one i think this is what my teacher meant but ill check with her in the afternoon like so it will be like this then we have to make a function that works accordingly to it...
Canadian postal codes
Hello π
hello
They're the only ones I've ever seen with spaces
Makes me wonder why
And cry every time I have to try to validate and half fail because half the people included the space and half didn't
Okay, so what do you need help with?
Do you know how to create a function that does that?
Ah British ones do as well.
its a pain lol.
no ;-;
If i follow youtube yes
but then i usually end up forgetting it
I am still building a fraction calculator
but its like alot from youtube but i dont still get it
I mean, for the code you could always just do "".join(str(i) for i in np.random.randint(0, 10, (1, 5)).tolist()[0])
They're Canadian postal codes
They include letters
What on earth are they putting in the water up there?
some one help me with assembly
Much less than we get put in ours
i have the .o file now how do i turn it into bin or whatever...
also, is the format correct?
:getout:
No
We don't use PHP here
That's not an extension
That's just the browser serving a file
That's a domain name?
I thought PHP was an illegal drug
https://github.com/mhxion/awesome-discord-communities/#php @whole bear Not sure if these are what you need
URI can be whatever you want
200$ amazon card refund
@whole bear what software are you using?
php code by urself?
@app.route('/rickroll.php')
def rickroll():
return redirectfor("youtube.com/watch/554775")
Done
look:
from http.server import HTTPServer, BaseHTTPRequestHandler
class Serv(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.path = '/index.html'
try:
response = open(self.path[1:]).read()
self.send_response(200)
except:
response = "File not found"
self.send_response(404)
self.end_headers()
self.wfile.write(bytes(response, 'utf-8'))
####################
if self.path == '/image.png':
self.path = '/index.html'
###################
try:
response = open('index.html').read()
self.send_response(200)
except:
response = "File not found"
self.send_response(404)
self.end_headers()
self.wfile.write(bytes(response, 'utf-8'))
if self.path == '/icon.png':
with open('icon.png', 'rb') as file_handle:
self.send_response(200)
self.send_header("Content-type", "image/png")
self.send_header("X-Content-Type-Options", "nosniff")
self.end_headers()
self.wfile.write(file_handle.read())
httpd = HTTPServer(('192.168.0.101', 8000), Serv)
httpd.serve_forever()
look at my python code
oh god you're using the built-in?
@whole bear
What's wrong with that?
cries in FastAPI
it's for ipgrabbing
π¨
if self.path == '/image.png':
self.path = '/index.html'
you have to do something like this on your PHP code
where's your init method?
Do we cry in Symfony as well?
Never heard of that
PHP
that would explain it then
I support modern browsers, not Internet explorer 3
</sarcasm>
bro you're trying to ipgrab kids
A vendor just came in to setup another one of their apps...
Cute
<a href="youtube.com/watch?v=dQw4w9WgXcQ">
<img src="path/to/image">
</a>
There, no need for php
There
No need for code
The official video for βNever Gonna Give You Upβ by Rick Astley
Taken from the album βWhenever You Need Somebodyβ β deluxe 2CD and digital deluxe out 6th May 2022 Pre-order here β https://RickAstley.lnk.to/WYNS2022ID
βNever Gonna Give You Upβ was a global smash on its release in July 1987, topping the charts in 25 countries including Rickβs nat...
There, no need to think
I don't think you can do that
I don't think
You would have to be able to determine when Discord is requesting the link for an embed, vs when someone else is requesting it
What's Discord's user agent?
Discord-Bot
or smth similar
it got that in the string
Ew.
!paste @whole bear
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@whole bear
@whole bear
Cant tell
cospiracy
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
!paste @whole bear
How long is your code?
You might find Gist easier?
@rugged root
guys what if
We banished PHP?
@whole bear #web-development
Yo
π
To keep Eve out.
Stops her from dropping in.
Mr. President - What are you going to do about Katrina?
We're going to find her
And we're going to bring her to justice
How?
Joe probably thought it was funny.
Mods and admins do that to each other for fun
We also typically add the roles to ourselves for quick access to the role ID
Why do you need the IDs for those roles?
When do I get permission to do !int?
It would make me feel very special
what is it?
!d 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__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.
You do want to help me feel special, right @rugged root ?
is still don't get it
Internal commands. Top secret!
Provided to YouTube by Universal Music Group
Three Times A Lady Β· Commodores
Natural High
β 1978 UMG Recordings, Inc.
Released on: 1978-01-01
Producer, Associated Performer, Recording Arranger: James Anthony Carmichael
Producer, Associated Performer, Recording Arranger: Commodores
Studio Personnel, Engineer: Jane Clark
Studio Personne...
Hi Mr Hemlok!
A man was drawing on plants, stamping his feet. He was marking thyme.
After Theresa May says Britain should leave the European convention on human rights, Patrick Stewart, Adrian Scarborough and Sarah Solemani expose the problems in the Conservative plan for a UK bill of rights. -- The Guardian
Andy Serkis' new Brexit parody is precious... β¦
READ MORE : http://www.euronews.com/2018/12/10/andy-serkis-reprises-gollum-character-to-mock-may-s-brexit-plan
What are the top stories today? Click to watch: https://www.youtube.com/playlist?list=PLSyY1udCyYqBeDOz400FlseNGNqReKkFd
euronews: the most watched news channel in Europe
Subscribe! http...
Lo
Hi Everyone π
hi
var a = 219;
var b = 732227;
var c = 571;
var d = 49;
var e = 100272;
var f = 790;
var g = 'a';
var h = '412632322e7267672b23251f222d352c2a2d1f22233066212d6725321f6d333120';
var p = '706e686e696f41414141';
SXF8S/4b0W9YGvZ1aGTe/4PqGEGIYbKUCwuExgq1olm8XDUIkT3uLeQno8bm6M6nSyWkoon32C1gmzshydVUZWI5oI4Uem46OK67Cnhc0r9S1TNV6nEYiBZVDmEVbc0KJm0U77MMPYWmwKsblrkrCrxq6UoCQ70oBEbt1jFU/FvhkIPTqVprep40ZkHnfipixiUCBRKZ5oaaDLzo7+u/vU3CkrfgogSnGhD6hVqni2sCFSuKqk7lTUonWzxLrj7qeU2ep6S76IqL5mJJLyMXWEDOM5OuBaK0FmnLSIWhEQnjoE9ATVWQyuRiyw8sOQxiw2Ka7ujAhN6rNrGiSq0ob7MDswuB414Yvyg1M9RWycHcmon4esy+TrxIxcbSBNbR/dvk3f3O1dANheoevSInn6rkJJf/ZKxDXQeiYtkHxmFAOD5ENuU6JpORs5u1wtFM1MKe+xeaJ73/NTbWwvs3UO5XGlL2p7FXlsNW8jLW4HkO55ERJq1fWRRs8vk2AaQqnr62qH0Sw3RqSHZax2v/Fp+ytsYETEMevHDktD95cgcak11gA2jVpONMyApJfTktFWZ/GEnPqbQRMvifJExvkmVDZNvSFDsh7CpVLDs4UU8=
someone trying to do encode? 0_0
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
no no
i am talking about someone talked in the chat
voice*
i wanna do a script that does something like this
^ this is playing with fire :>
)```
is no one talking or my internet is messed up?
)```
Your internet is borked
ah
Portuguese is one I've been curious about but another instance of me not having an opportunity to use or practice it
Same with German
!e
vowels = "aeiouy"
input_string = "bacon"
output = []
for letter in input_string:
print(letter)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | b
002 | a
003 | c
004 | o
005 | n
mom u goggle
!e
vowels = "aeiouy"
input_string = "bacon"
output = []
for letter in input_string:
if letter in vowels:
output.append(letter)
else:
output.append(f"{letter}o{letter}")
output_string = "-".join(output)
print(output_string)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
bob-a-coc-o-non
Don't copy the vowels ;-;
indentation < curly braces
To each their own
def robber_encode(word):
vowels = "aeiouy"
output = []
for letter in word:
if letter in vowels:
output.append(letter)
else:
output.append(f"{letter}o{letter}")
wordEncode = "-".join(output)
return wordEncode```
@whole bear you have to have that data in your
<meta>
like meta tag, meta description and the image
@rugged root
hemlock are you baking pie?
Why do you ask
I smell pie
Where am I
next door
Are you sure?
lemme check
can you hear me? I'm screaming your name
the wok
is this meta image?
Nope. You must be creeping on a different person
https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png
letters = wordEncode.split("-")```
@sweet lodge Think I'm going to tweak a couple things before I publish
Need to write the readme and I'm also altering the the argparse and .env options
!e
vowels = "aeiouy"
input_string = "momugoggoglole"
output = []
for letter in input_string:
if letter not in vowels:
output.append(letter)
else:
output.append(f"{letter}o{letter}")
output_string = "".join(output)
print(output_string)
@lunar mulch :white_check_mark: Your eval job has completed with return code 0.
mooomuougoooggooogloooleoe
kek
You'll also need this to add a binary to PATH:
https://github.com/MrHemlock/auto_guild/pull/4/commits/65e4fb5cf799f341783c03aa0ce97e4c5b0cd8a9
no
!e
test = "ham"
print(test[0])
@rugged root :white_check_mark: Your eval job has completed with return code 0.
h
you just want the first letter of every item?
Don't write the code Klaus pls π
me on my way to write the code
sure write it, it would be very kind of you to wait till Cocinas done before you post it
wordEncode = ("mom-u-gog-gog-lol-e")
letters = wordEncode.split("-")
vowels = "aeiouy"
output=[]
for letter in letters:
if letter in vowels:
output.append(letter)
else:
output.append(letter[0])
print(output)```
['m', 'u', 'g', 'g', 'l', 'e']
@lunar mulch :white_check_mark: Your eval job has completed with return code 0.
muggle
letters = wordEncode.split("-")
vowels = "aeiouy"
output=[]
for letter in letters:
if letter in vowels:
output.append(letter)
else:
output.append(letter[0])
wordDecode = "".join(output)
print(wordDecode)```
welcome to night city
xd
letters = wordEncode.split("-")
vowels = "aeiouy"
output=[]
for letter in letters:
if letter in vowels:
output.append(letter)
else:
output.append(letter[0])
wordDecode = "".join(output)
return(wordDecode)```
Your query should output a table with a single column for the name of each person.
There may be multiple people named Kevin Bacon in the database. Be sure to only select the Kevin Bacon born in 1958.
Kevin Bacon himself should not be included in the resulting list.```
this is what i am trying to do
person_id ?
? what about it
people_id
?
