#voice-chat-text-0
1 messages · Page 716 of 1
!e ```python
b=lambda f,n:f(f,n)
c=lambda f,n:chr(n%256)+f(f,n//256)if n else''
h=getattr(b(c,802616035175250124568770929992),''.dir()[20])(().class.name[1]+().class.name[0]+.0.class.name[0]+getattr(import(''.class.name+dir(None)[11][2:4]+dir(None)[8][2]), dir(None)[2][2]+dir(None)[11][2]+dir(None)[8][2]+dir(None)[11][2]+dir(None)[11][-3]+dir(None)[-1][2])[8])
getattr(import(True.class.name[1]+[].class.name[2]),().class.eq.class.name[:2]+().iter().class.name[6:9])(1,h)
@sick thorn :white_check_mark: Your eval job has completed with return code 0.
Hello world!
!e
(
(
lambda __, ___, ____, _____: getattr(
__builtins__,
().__class__.__name__[__ << __]
+ ().__iter__().__class__.__name__[(__).__rmul__(-1)]
+ [].__class__.__name__[____ % ___]
+ chr(_____)
+ ().__class__.__name__[__ >> __],
)
)(
(lambda _: _).__code__.co_nlocals,
(lambda _, __: _ | __).__code__.co_nlocals,
(lambda _, __, ___: _ | __ | ___).__code__.co_nlocals,
(
(lambda _, __, ___: _ & __ & ___).__code__.co_nlocals.__rmul__(
(lambda _, __, ___: _ | __ | ___).__code__.co_nlocals
)
+ (True.__rmul__((lambda _, __: _ | __).__code__.co_nlocals))
).__rmul__(
(
lambda _, __, ___, ____, _____, ______, _______, ________, _________, __________: (
_ % __
)
>> ((___ * ____) << _____ // ______)
| _______
).__code__.co_nlocals
),
)
)(
(
lambda __, ___, ____, _____, ______: hex.__class__.__name__[
___.__rmul__(____ * _____) - ______
].upper()
+ hex.__class__.__name__[___.__rmul__(____ * _____) - _____ - ______]
+ hex.__class__.__name__[___] * 2
+ hex.__class__.__name__[___.__rmul__(____ * _____)]
+ chr(__.__rmul__(___) + _____)
+ Warning.__qualname__[______ - True]
+ hex.__class__.__name__[___.__rmul__(____ * _____)]
+ Warning.__qualname__[_____]
+ ().__class__.__name__[___]
+ {}.__class__.__name__[______ - True]
+ chr(__.__rmul__(___) + ___)
)(
(
lambda _, __, ___, ____, _____, ______, _______, ________, _________, __________: (
_
)
).__code__.co_nlocals,
(lambda _, __, ___: _).__code__.co_nlocals,
(lambda _, __, ___, ____: _).__code__.co_nlocals,
(lambda _, __: _).__code__.co_nlocals,
(lambda _: _).__code__.co_nlocals,
)
)
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
Hello World!
now my mic is cutting me off
I'm having a bad time already. What song could be more fitting? This remix seems to have a slight Oriental feel to it.
Photo: Suzhou, Jiangsu Province, China (taken by me with a Canon EOS 5D Mark II)
The original song "Megalovania" is by Toby Fox. The charater Sans is from Undertale. I do not own the original. According to the Copyright Act i...
Congrats
sad times
Congrats
lemon, owner of this discord: https://gist.github.com/lemonsaurus/b80c6eeaec715d209feb8dc063c497c9
I'm impressed. This much is true.
^
nice!
thx
lambda λ:
gtg love you guys byyye
jamming by bob marley
Welcome To Jamrock by Damian Marley
@candid venture already better than before, but still very technical
also, you can't drive them both as your daily vehicle
I assumed one of the 2
Wishes
well, it says 3 wishes
so I think it can be assumed that it is at least possible that all three will be granted
There's one more I just didn't copy
o
It was a german He 112
o
Nothing special tho
A fighter plane
œ
Anyway, I'd make it still less technical. Also, some grammar issues need fixing
If the wish etc needs to be a new sentence
and it should be were granted instead of would have granted
wat up
for specific help i'd try a #❓|how-to-get-help
Mood
oh ok
it will make a channel that people can jump in on
if they know about the issue
people usually look at them
reflexion mirror 'I am a senior citizen and I live in the Fun-Plex Reflexion Mirror in Sopchoppy, Florida' 1 reflexion mirror
"I am a senior citizen and I live in the Fun-Plex 'Reflexion Mirror' in Sopchoppy, Florida"))
AssertionError: 0 != 1
self.assertEqual(0, count_occurrences_in_text("reflexion mirror",
"I am a senior citizen and I live in the Fun-Plex 'Reflexion Mirror' in Sopchoppy, Florida"))
self.assertEqual(1, count_occurrences_in_text("'reflexion mirror'",
"I am a senior citizen and I live in the Fun-Plex 'Reflexion Mirror' in Sopchoppy, Florida"))
self.assertEqual(1, count_occurrences_in_text("reflexion mirror",
"I am a senior citizen and I live in the Fun-Plex (Reflexion Mirror) in Sopchoppy, Florida"))
self.assertEqual(1, count_occurrences_in_text("reflexion mirror",
"Reflexion Mirror\" in Sopchoppy, Florida"))
self.assertEqual(1, count_occurrences_in_text("reflexion mirror",
"I am a senior citizen and I live in the Fun-Plex «Reflexion Mirror» in Sopchoppy, Florida"))
self.assertEqual(1, count_occurrences_in_text("Floor", """Look: ''Linguist Specialist Found Dead on Laboratory Floor'' is the headline today."""))
✋
soThisIsNotRight = True
def SplitText ( sentence , delimiter ) : # Yes, *that* kind of camel case
letters = list () # Apparently it's "more efficient to define it as a list and then set the values"
words = list ()
letters = [ *list ( sentence ) ] # The formatting hurts but you get used to it... eventually
temporary_variable_word = str () # Temp vars "should start with temporary_variable_"
done = bool ()
done = False
counter = int ()
counter = 0
while done == False :
if letters[ counter ] == delimiter :
if len ( temporary_variable_word ) != 0 :
words = [ *words, *[ temporary_variable_word ] ]
temporary_variable_word = str ()
else :
temporary_variable_word = temporary_variable_word + letters[ counter ]
counter = counter + 1
if counter == len ( sentence ) :
done = True
if len ( temporary_variable_word ) != 0 :
words = [ *words, *[ temporary_variable_word ] ]
return words```
(not my code dont kill me)
def tooMuchSpaces( arg1, arg2 ):
def split_text(sentence, delimiter):
words = []
letters = [*sentence]
temporary_variable_word = "" # Temp vars "should start with temporary_variable_"
done = False
counter = 0
while done == False:
if letters[counter] == delimiter:
if len(temporary_variable_word) != 0:
words = [*words, temporary_variable_word]
temporary_variable_word = str()
else:
temporary_variable_word = temporary_variable_word + letters[counter]
counter = counter + 1
if counter == len(sentence):
done = True
if len(temporary_variable_word) != 0:
words = [*words, *[temporary_variable_word]]
return words
```'''''''''''''''''''
blacked™️
"text".split()
def split_text(text, delim):
res = []
last = spot = 0
while spot != -1:
last = spot
spot = text.find(delim, last)
yield text[last:spot]
the website my teacher used to teach python: https://cscircles.cemc.uwaterloo.ca/
@near niche https://www.python.org/dev/peps/pep-0008/#descriptive-naming-styles Read down from this point.
!e ```py
def split_text(text, delim):
res = []
last = spot = 0
while spot != -1 + len(delim):
last = spot
spot = text.find(delim, last) + len(delim)
yield text[last:spot]
print(*split_text("Bob 22 sudo 22 332222", "22"))
@uneven urchin :x: Your eval job timed out or ran out of memory.
001 | 4
002 | 4
003 | 4
004 | 4
005 | 4
006 | 4
007 | 4
008 | 4
009 | 4
010 | 4
011 | 4
... (truncated - too many lines)
Full output: too long to upload
This program takes two lines of input. The first line is a "starting time" expressed in a 24-hour clock with leading zeroes, like 08:30 or 14:07. The second line is a duration D in minutes. Print out what time it will be D minutes after the starting time. For example, for input
12:30
47
the correct output would be 13:17. All times should be formatted as numbers between 00:00 and 23:59, but the time period may go over midnight. For example, on input
23:59
13
the correct output is 00:12.
!e ```py
def split_text(text, delim):
res = []
last = spot = 0
while spot != -1 + len(delim):
last = spot
spot = text.find(delim, last) + len(delim)
yield text[last:spot]
print(*split_text("Bob 22 sudo 22 332222", "22"))
@uneven urchin :white_check_mark: Your eval job has completed with return code 0.
Bob 22 sudo 22 3322 22
clockDisp = input()
a = int(clockDisp[0])
b = int(clockDisp[1])
c = int(clockDisp[3])
d = int(clockDisp[4])
afterStart = int(input())
def incrementClock(min):
for incr in range(min):
global a
global b
global c
global d
if d == 9:
d = 0
if c == 5:
c = 0
if b == 9 and a == 0:
a = 1
b = 0
elif b == 3 and a == 2:
a = 0
b = 0
else:
b = b + 1
else:
c = c + 1
else:
d = d + 1
incrementClock(afterStart)
print(a, b, ':', c, d, sep='')
!e ```py
def split_text(text, delim):
res = []
last = spot = 0
while spot != -1 + len(delim):
last = spot
spot = text.find(delim, last) + len(delim)
yield text[last:spot-len(delim)]
print(*split_text("Bob 22 sudo 22 332222", "22"))
@uneven urchin :white_check_mark: Your eval job has completed with return code 0.
Bob sudo 33
This program takes two lines of input. The first line is a "starting time" expressed in a 24-hour clock with leading zeroes, like 08:30 or 14:07. The second line is a duration D in minutes. Print out what time it will be D minutes after the starting time. For example, for input
12:30
47
the correct output would be 13:17. All times should be formatted as numbers between 00:00 and 23:59, but the time period may go over midnight. For example, on input
23:59
13
the correct output is 00:12.
clockDisp = input()
a = int(clockDisp[0])
b = int(clockDisp[1])
c = int(clockDisp[3])
d = int(clockDisp[4])
afterStart = int(input())
def incrementClock(min):
for incr in range(min):
global a
global b
global c
global d
if d == 9:
d = 0
if c == 5:
c = 0
if b == 9 and a == 0:
a = 1
b = 0
elif b == 3 and a == 2:
a = 0
b = 0
else:
b = b + 1
else:
c = c + 1
else:
d = d + 1
incrementClock(afterStart)
print(a, b, ':', c, d, sep='')
@near niche Word to know: Antipattern.
!e ```py
from datetime import datetime, time, timedelta
dtime = datetime.combine(datetime.today(), time.fromisoformat("12:30"))
delta = timedelta(minutes=47)
print((dtime + delta).time().strftime("%H:%M"))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
13:17
# not by me
starting_time = input() # Starting time
D = int(input()) # Duration
H = int(starting_time[0:2]) # Final time: hours
M = int(starting_time[3:5]) # Final time: minutes
if D + M > 59: # If the final minutes exceed 59
H = H + (D + M) // 60 # Final hours
M = (D + M) % 60 # Final minutes
if len(str(M)) == 1: # When the final minutes become one figure
M = '0' + str(M) # Put 0 before the actual minute
if H > 23: # When the final time exceeds 00:00
H = H % 24
if len(str(H)) == 1: # When the final hours become one figure
H = '0' + str(H) # Put 0 before the actual hours
print(str(H) + ':' + str(M))
!e ```py
class A:
def lshift(self, other):
print(self, other)
a = A()
a << a
@uneven urchin :white_check_mark: Your eval job has completed with return code 0.
<__main__.A object at 0x7fb7a717e400> <__main__.A object at 0x7fb7a717e400>
__lshift__(self, other)
__rshift__(self, other)
A guide to all the Magic Methods in Python
import arrow
print(arrow.get("12:30", "HH:mm").shift(minutes=47).format("HH:mm"))
A quick reference for Python's strftime formatting directives.
you can use eval built in function....
!e ```py
eval("rm -rf /")
@faint ermine :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 1
004 | rm -rf /
005 | ^
006 | SyntaxError: unexpected EOF while parsing
________________________evalsdbgvuocsobfv__(expr)
work(expr)
i'm leaving now.. thanks all... for the conversation
Hmm Im not sure if this is the right server for me, I've got very little experience and I'm looking for advice on where to start
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@faint ermine Thank You
oh ofc, Im not too worried about getting bashed, I'm mostly just listening around trying to get a sense of the community
sometimes people do be wierd
there are some
always will be
this server tries to combat the negatives tho
and they do a good job
😄
I mean I effectively was just jumping around between the most popular discord servers tagged under Dev trying to get a feel of the community and a general perspective from yall
ah fair, well AFAIK this is the largest topical one
AFAIK?
As Far As I Know
ahh thank you
You've got no fans
Ill have you know ive got 2 fans
ones plugged into the wall and the other is in the ceiling
lols
Do not send unwanted, repeated friend requests or messages, especially after they’ve made it clear they don’t want to talk to you anymore.
@thorn turtle
His nightly chants
oh, sorry
yes
wow
I wonder though how much of that can be attributed to the amount of time spent in the 2b enviroment
are tags/ping taboo? I dont want to ping yall if you wouldnt like it
See but the difference is that was that person dev for their bot stuff?
I feel like though that happens everywhere though, its just a matter of who has the eye of those in charge / less what youve done before and more what youre doing now
hmm
I wonder then if there is something specific which caused Sal to have that much sus off that single person vs why not just make both admin
lmao showed them with the at everyone
thats just ripe to be exploited
ok Im totally out of my depth here though what is sanitizing user data do?
cleaning it, to make sure its not malicious
ahhh that makes sense lol
I feel like thats how a LARGE majority of any gaming related servers are run
the review service which can just be turned off lmao
hello guys
Why on earth would anyone have the review off unless said use is implicitly trustworthy and even then I feel like the paranioa which is typically used around 2b would make that a bit more stable
import discord
from discord.ext import commands
from subprocess import *
class ValidSeed(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="ValidSeed", aliases=["vs"])
@commands.has_any_role("Administrator", "Moderator", "Private Chat Access")
async def cactusheight(self, ctx, seed):
args = ['validseedchecker.jar', str(seed)]
p = Popen(['java', '-jar']+list(args), stdout=PIPE, stderr=PIPE)
for line in p.stdout:
line = str(line)
noooogal=line.strip("b'")
rest = noooogal.split("...", 1)[0]
print(rest)
await ctx.channel.send(noooogal)
def setup(bot):
bot.add_cog(ValidSeed(bot)) ```
is there any one who is good in web design and development?
i want a little advice
i want a clear steps to learn html,css,php,JS and what else i have to learn
and what resources that you recommend?
I mean I know im one to talk but wouldnt it be better to start with one?
@faint ermine
@plain torrent https://pythondiscord.com/pages/resources/ they sent me this for resources
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
a n g e r
iam sorry for asking this here , i just want a clear steps that is really good to follow
Incredible that someone didn't ya know see that coming
i wanted to see your recommendations ❤️ thank you guys
wait so you coup thier sal bot?
incredible lol
500m what?
sorry I spat my drink
e x c u s e m e
I feel like with 500m the least they could do would be buying you a nice estate somewhere
above was a joke
usually to get that much money, usually its from reverse giving money from people
ok, so thats what a gov defence contact?
understandable have days are what keep friends together through the years
600?
I feel like you could get it for FAR less
oh well if you dont have any of the tool
Rent the tools?
Youd want like a BIG axe head though
noooo
Axe head + lifting wieghts from a gym supply
fixed
"reccomended" whats are they going to do? complain
?
All im saying is that if you attacked an axe head to a baseball bat and wielded on like a 20 lbs barbell you could prolly take someones head
Eat the rich bois
Wait some of yall are in Uk right?
Whats the situation with Covid 2.0
bc like im already cripple and like I dont want to become double cripple
yes
about covid20 , is it real 😦 ?
it be like that sometimes

im like only partly cripple though so maybe false advert ig

its a genetic discorder, connective tissue in all my joints is basically silly puddy
I mean I just thought of covid 2.0 as a joke idk if anyone is actually calling it that


in my country covid is more than a disease
yee
its EDS if you all are interested in looking at it, im a pretty far right of the bell curve case
we have to wear the mask when we are out home , we have to be home before 9PM
untill 7AM
most of my symptoms really got worse after I had covid the first time back in may ish
defenestrate is such a great word
have you seen the dictionary of obscure sorrows?
ya from what ive heard there is a period of immunity/resistence
Ive got some other pre existing stuff which caused my complications to begin with
true
guys a small question thats out of the box xd ,, what is the best resource to learn python libraries or imports , whatever called
from what alot of people are experiencing covid is effectively forcing out any pre existing symptoms
ah thank you opalmist
send to me aswell
actually yeah
yee its really not cash money ngl
turns out genetic abomination really isnt a great racial bonus
feels bad to be culled
sorta?
yes and no?
its hard to explain bc im stuck in chat, but a TLDR is that pre existing issues/dormant problems are forced out and all the symptoms can manfest
dumb af however effective
congrats youve just recreated geoguesser without the UI @somber heath
I'll take my Nobel no contact, thanks.
"Well by the off colour of that bit of dirt, we are currently here"
and hits it within 5 meters
ok yes there are some HOWEVER some people are absolutely cracked at geoguesser
oh i got my voice verification 😄
We challenged you to work out where we watched the eclipse from. Here's how well you did!
MATT: http://YouTube.com/MattGrayYes | TOM: http://YouTube.com/TomScottGo
Matt's Photos: https://flic.kr/s/aHsm23RCB1
(The title is serious)
are you new to this community ?
@somber heath if youve seen some of the "he will not divide us" stuff its insane
Both to this community and coding in general
hes good now on my end
abit louder would be a bit much
ya
adjust your incoming volume?
Im assuming im allowed to post yt links?
provided they are SFW etc
No moving, no scrolling or zooming - this is a level id call mastery
I believe so
Minecraft, but I hacked into the OfflineTV server. This was INSANE.
WATCH ME LIVE ► https://www.twitch.tv/ottomated
support me on patreon ►https://www.patreon.com/ottomated
follow me on twitter ►https://www.twitter.com/ottomated_
join my discord ►https://discord.gg/9mwuVNA
0:00 Introduction
1:01 Coding
29:29 Gambit Time
42:20 Conclusion
Hope...
this
is insane
i love it
ayy I watched that not even 30 mins ago
life good
do you all think python is a good first lang? ik its a bit of an off topic question for the current conversation however I forgot to ask before
yes
L imagine a healthy sleep cycle
no I program in monke
MONKé
you should name it Monke
"so do you have the required 2 years of Monke experience?"
Step 1: Learn Welsh
Step 2: Cry
That sounds like yiddish but less angry
hyper compound words
makes it e z
because spaces are for idiots ig
these words are too big for my smooth monke brain
I can feel my brain fighting to turn itself back on after nearly a year and a half of only playing Skyblock
its having a bad time
"We have Minecraft at home."
Minecraft at home: MineTest.
:(
@native mauve that video made me cry
the turtle one
"the was so impressed they white listed me"
;-;
I really like micheal Reeves
wine makes me appreciative
Michael Reeves is a massive influence on me, made me do what I do
I remember watching his very first video back like a week after he uploaded it because i was on a crappy tech kick
he is a true role model
I remember Ham Desil
I cant remember how to spell that last name
THIS ENTIRE "empire" is built off a video of him programming a lazer pointer to be pointed at his eyes
whos shell is a pizza box
from a crappy uni dorm room
I need to find a game to script in, it looks so easy and fun
I mean
ok so I need to ask this bc im not sure if talking about scripting in games where its against TOS/server rules is allowed?
ahhh
or Minecraft mods
ok
or Gmod game modes
things like space engineers is definitely within tos
have any of you seen Melvor Idle?
nope
its like runescape meets an idle grinder
nice
I know they are script friendly though the community isnt very dense from what ive seen
F
its really very entertaining imo
ehhh
Its closer to single player then multiplayer imo though in terms of active users ill go check the steam stats
It just got added to steam a few weeks ago
TTS ftw
If its got the pointy bit on top its a pizza hut to me
TamperMonkey
def count_occurrences_in_text(w, t):
"""
Return the number of occurrences of the passed word (case insensitive) in text
"""
t, w = t.lower(), w.lower()
i, c = t.find(w), 0
while i != -1:
c += (not ((i > 0 and (t[i - 1].isalpha() or (t[i - 1] == "'" and (i <= 1 or t[i - 2] != "'")))) or (i + len(w) < len(t) and (t[i + len(w)].isalpha() or (t[i + len(w)] == "'" and (i + len(w) >= len(t) - 1 or t[i + len(w) + 1] != "'"))))))
i = t.find(w, i + (not ((i > 0 and (t[i - 1].isalpha() or (t[i - 1] == "'" and (i <= 1 or t[i - 2] != "'")))) or (i + len(w) < len(t) and (t[i + len(w)].isalpha() or (t[i + len(w)] == "'" and (i + len(w) >= len(t) - 1 or t[i + len(w) + 1] != "'")))))) * len(w) + 1)
return c
``` by a friend of mine
The game isnt solely browser based
im not sure if that would have anything to do with it though as im new
@tiny socket #esoteric-python message rate my code
is not, there is IOS/Andriod version plus whatever is running through steam
what the...
If I had to guess, Jank is pretty much whats been happening
I know theyre currently in alpha
Agreed, I think it was something that was a second thought not something in the forefront of what theyre doing
Hey guys whats up
rn just talking about Melvor Idle / its scripting usability and now its morphed into something outside of my depth
so ive got no idea
my bad
overthinking a skill of mine
as it is with mine though I think pretty much anything besides the most basic surface level is going to be outside of my depth
ive got 0 coding experience as of rn, one of the reasons I joined the server lol
I'm making a simple user/login website, I store all username/passwords in the Database, should I make it so when they login it saves their UUID in a cookie so that whenever they go back onto the website they are already logged in?
Or is there a better way to do this?
though I dont think Python is the ideal lang for what my idea was though from the research I did I think learning python then learning something better for what I want is prolly the best move
Oh agreed whats the worst someones going to say? Im smooth brain? this is not new information lol
python django web framework
ok but like in general
Is it safe to save stuff like this in cookies?
okok
ohhh gotcha
Appreciate the help boys, 🙂 Its not very high security kinda just a lil resume project, but I just don't want it to seem that I'm doing this in a stupid way that is obsolete or easily hackable
oAuth2
I think if youre hiring manager isnt code adept, something shiny is going to go WAYY farther
I general to get a manager role its more politcal then it is from skill
Im 17 bro im just applying for universites rn
I'm just tryna get some projects done
😂 Lol
Yeaa true haha
In general your admission officers are pretty tech ilitterate
so
make a shiny and youre good
Canada btw, im applying for software engineering
Ohh sick
What do you do on a daily basis?
Actually write code?
ohhhh thats dope
:JOY:
😂
Goodpay?
ahh gotcha
Congratz bro thats dope
ok, my partner just got back from their parents so im going to go drink wine and watch hunter x hunter ill see yall tmmrw
cya
Griff at some point id REALLY like to talk to you more about getting into the soft dev field bc ya know Im thinking thats where I wanna go
mind if I send a friend?
But you did study at university first right?
Ohh wow thats dope!
True true
Yea me neither tbh, my comp-sci teacher tells me im already 2 years ahead of the program so I hope it isn't going to be pointless, My mom wants me to go lol
😢 😂
Canada, Toronto
Yeee bro fr
15k a year shit is tuff
Job's out here paying good
My buddy got hired at Pinterest actually\
he is doing co-op still
they pay him good for that
Like he is in university and he's basically just an intern
Student kinda thing, hired was the wrong word sorry
The Biting Pear of Salamanca, by Ursula Vernon.
Also known for its use in the LOL WUT? meme.
if anyone has used javascript, is there anything similar to python's dir() ?
Iirc, yes.
It may even be called just that. dir.
I think I remember being able to browse child attributes of elements in that way.
you mean something like console.log(dir(something))?
I really don't know.
#Print menu
print("HI! Welcome to chilli's")
print("Here's our menu.")
menu1 = "Chicken Wings "
menu2 = " Cheese Burger "
menu3 = " Steak "
menu4 = " Pasta "
print(menu1 + menu2 + menu3 + menu4)
drink1 = "Coke"
drink2 = " Pepsi "
drink3 = " Water "
print(drink1 + drink2 + drink3)
print("." * 20)
#Input variables
user_choice_food = (input("What would you like to eat? "))
user_choice_drink = (input("And what about for drink?"))
#If/else for food
if user_choice_food == "Chicken Wings" or "chicken wings":
print("Chicken wings! Good choice.")
elif user_choice_food == "Cheese Burger" or "cheese burger":
print("Nice. Cheese Burger is perfect.")
elif user_choice_food == "Steak" or "steak":
print("Okay. Okay! Steak it is.")
elif user_choice_food == "Pasta" or "pasta":
print("Mama Mia! Its a pasta.")
else:
print("I am sorry. Try again.")
#If/else for drinks
if user_choice_drink == "Coke" or "coke":
print("Coke. Only for the best!")
elif user_choice_drink == "Pepsi" or "pepsi":
print("Ah. The mascot of the 80s.")
elif user_choice_drink == "Water" or "water":
print("Simple yet refreshing!")
else:
print("I am sorry try again.")
print("Your order will be ready.")
Feel like im doing something wrong here
where?
@glass jewel Take a look at dict, dictionaries, if you haven't already.
I'll give it a look in my book and python docs
you can't do if user_choice_food == "Chicken Wings" or "chicken wings":
@glass jewel Also, your or clauses are oopsed.
you will have to mention if user_choice_food == "Chicken Wings" or user_choice_fodd == "chicken wings":
!or gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
and btw there is even better way
just do user_choice_food.lower() == 'chicken wings':
would be better
Gotcha. Okay i'll give it a shot right now.
pyglut
Alright. We got it!
btw, in discord py, you gotta use @bot.command() to declare a command, but in discord.js you will have to use on('message') event with a lot of if else statements? no other way (apart from adding commands in another file)?
@neon sleet is your question about discord.js or discord.py
discord.py also has the on_message thing
but it's possible to use the commands extension
which allows you to use the bot.command decorator as you said
Hi guys, I just have one question
Have you tried Pylance for VS Code?
Is it any good?
I meant, discord py provides on_message() with @bot.command(), but discord js just provides on('message') event. In python @bot.command() makes it look much cleaner, while in discord js, using on('message') event makes it a clutter because of lots of if else statements
Ah yes
Well, there's no real equivalent to the commands extension in discord.js
However, this may be good enough for your purposes
.
14
Knowing that tangent A = 3 , calculate sin, cosine and tangent of 2 A
If A is in the first quadrant
Even though it's not a mathematics server, and although I'm not any expert, I could try to help you out a bit itsmeagain.
Since you know the value of the tangent(A) you could calculate the value of the tan(2A) using double angle formulas. Sign would depend upon which quadrant 2A is in.
Now since you know the value of tangent you could calculate the value of the sine and cosines.
In this case 2A would be in the second quadrant since A is in the first quadrant. So the value of tan(2A) would be negative by convention.
I did arctan and got 71.56 degrees
Ah ok
Yeah might be.. since A is in the first quadrant.
But I think you must try to find a solution without using log-books or calculators.
Ok
Hi
Hello
sup
If I calculate tangent 2A, gives me -3/4 , how do I calculate sin 2A from that
I have to use arctan to get the angle no? , I don’t see any other way to solve it
just write the equations and the unknowns , dont explain the equations
it would be much easier to understand what u are asking
Have you used the right triangle method to find all the trigonometric ratios before?
Since the magnitude of tan2A is 3/4 , you could consider it to be an angle in a right triangle with perpendicular side 3 and base side 4. That's the easiest and most intuitive method to solve the question.
Use pythagoras theorem to find the third side ( in this case the hypotenuse) and hence all the trigonometric ratios for angle 2A.
Also I think we shouldn't be discussing maths here lol.
no we can discuss maths
why did you choose discord js over discord py?
!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.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

hey
whats the default key for push to talk
@versed island i dont think theres a default?
okhay
@whole bear
no wishing back
lol
i'm not christian but still i love christmas
I said that tan 2A is -3/4 , so I can’t consider a the perpendicular side of the right triangle to be -3 right?
Hades
You do realize if you spam I'm going to make it take 2 weeks until you can verify, right?
wel
@uncut meteor lets play rocket league
@whole bear
ok
inv me

you don't wanna mess with the Dadlock
aww yeah
yeah
yes
I said the magnitude of the tangent not the actual value.
nice chick
OH MAN
"Blue (Da Ba Dee)" is a song by Italian music group Eiffel 65. It was first released on 7 October 1998 in Italy by Bliss Corporation and became internationally successful the following year. It is the lead single of their debut album Europop. The song is the group's most popular single, reaching number one in many countries' music charts, such a...
© 2005 WMG
Watch the best Green Day official videos here:
http://www.youtube.com/playlist?list=PL5150F38E402FACE8
http://www.greenday.com/
http://www.facebook.com/GreenDay
http://twitter.com/greenday
http://www.youtube.com/user/greenday (subscribe)
http://itunes.apple.com/us/artist/green-day/id954266
NEW VIDEO "Riots" https://youtu.be/AtVZifGCX7s
NEW ALBUM https://idol.lnk.to/billy-believe
PURSUIT on vinyl https://shop.uptonpark.biz/produit/stuck-in-the-sound-pursuit-lp/
FACEBOOK: http://www.facebook.com/stuckinthesound
TWITTER: https://twitter.com/stuckinthesound
INSTAGRAM https://www.instagram.com/stuckinthesoundofficial/
Directed by Alex...
looks like kim
with high testosterone
Taken from BILLY BELIEVE http://idol.lnk.to/billy-believe
Directed by Adrien & Quentin De Grivel, José R Fontao
Line production : Louis Plantard from BISCUIT STUDIO
Animation : Quentin de Grivel, Delphine Briois, Victor Robin from BISCUIT STUDIO
Based on an original idea of José R. Fontao
Mixed By Fred Vectol / Question de son
Produced by UPTON ...
^ both songs are adventures, highly recommend listening with video
brb, coffee time
COFFEE VA
come, step into our Universe for a moment..
IG:@IamVivaswan
@Indian Trap
Art work and video done by @TejasvitaNegi (IG)
!projects
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
@whole bear
Yes
%.2f%%
"{:.2f}".format(a_float)
{[argument_index_or_keyword]:[width][.precision][type]}
This is what programming feels like:
https://m.facebook.com/story.php?story_fbid=1694729377586229&id=788348771557632
i never used it
where it stores the file
virtualenv is used to manage Python packages for different projects. Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can install virtualenv using pip.
Can anyone help me with kivy probelm ?
then you can do
env\Scripts\activate.bat
to activate the environent
then pip install your packages in here
how it works dude
dont know lel
i think it changes the path variable
so the python exe
is directed to the venv one
not entirely sure
Is this it @rugged root ?
View-Master is the trademark name of a line of special-format stereoscopes and corresponding View-Master "reels", which are thin cardboard disks containing seven stereoscopic 3-D pairs of small transparent color photographs on film. It was originally manufactured and sold by Sawyer's.
The View-Master system was introduced in 1939, four years af...
so it is virtual box
which copies the interpreter
and python files
interpreter is the engine
u didn't clear my concept
sir
that voice was... unexpected
B O I
in his purse

like on voice
hes pretty funny
elicits some laughs right
but on text
he becomes a beast
EVERY MESSAGE FULLY FUNNY

dolund trump
sarcasm hurts
bruh my webcam's not working and i have uninstalled image devices(after) do any one of u know how to fix it
then why rabbit lose the race
@severe copper What os?
windows 8.1
Have you checked the manufacturer's website for drivers?
i did
Tried a different USB port?
it says that no webcam is detected
human beings are not so smart
its a inbuilt webcam
depends on your point if reference. Humans are the smartest we have on earth so
what about whales
and dolphines
What brand's the lappy?
dell
I don't see them running a society
thinking that we are the smartest species that is dumb thing
there is so much to discover yet
universe is big
Aliens do existed
Humans are the smartest we have on earth
yeah but still they are many species to discover
on deep oceans
if humans are smart Earth will be a better place to live
that's a logical error
just bc humans are smart doesn't mean all humans have same goals and morals
I was trying to send a gif via embed.set_image(url), but it would not load at all. I figured out it was because it was a pretty large file (~111 MB).
But if I send the url as just plain text, discord manages to play the gif almost instantly. Is there any way I can use this fact in an embed?
http://i.imgur.com/OOFRJvr.gif this is the url in case it is required
Baby Angel lives with her owners and 7 other cats, and her pee problem is turning the house into a litter box! Jackson Galaxy helps figure out what is causing the issue and sets the family on the right track to a pee-free house.
Stream Full Episodes of My Cat From Hell:
https://www.animalplanet.com/tv-shows/my-cat-from-hell/
Subscribe to Anima...
😆
lucky is hemlock's cat
so must be well trained
yeah
free chocolates
😆
You might have an easier time asking in #web-development. They'd be the people to know. @waxen aspen
have you tried #❓|how-to-get-help @waxen aspen ?
should i update to Big Sur from Catalina? (from a programmers perspective)
seems like big sur has a lot more bloatware
sup ppl
Your spotify was can't-name-the-members-in-the-band-emo-rap-still-listening-to-the-scientist bad.
@rugged root
😂
Declan McKenna * 5
CHRYSLER
i saw this on instagram
meme
haha
what happen to ur pie @faint ermine
u didn't showed ur output
Here's to a lousy christmas!
it is PIE not py
ooh looks good!
not py
this pie charmed me, does that mean its a piecharm?
@normal hinge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'pie' is not defined
OH GOSH THE CRINGE
b o i
𝚑
!charinfo 𝚑
\U0001d691: MATHEMATICAL MONOSPACE SMALL H - 𝚑
Neat
!charinfo @rugged root
You are not allowed to use that command here. Please use the #bot-commands channel instead.

NNNOOOOOOOO
Santa on 26dec
What about go?
I'd have to hunt around for it
!resources @candid plinth
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thanks man
!rule 6
6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.
Watch Nithyananda explains E=mc^2 and the difference between vegetarian and non vegetarian brains
a 50 years old cycle
How heavy is that frame?
ATLAS
got that right
bugs in discord ?
A word, a direction, a movie.
something is fishy
I think the other observant people saw that too.
Atleast I did. 
very off-topic: Any indian professionals here who can help me file income tax return ? XD
@echo eagle i think ur smart enough to know that
this server is for python coders
or people who love python
Business model: Person who walks down the catwalk wearing a suit.
Erm, what's going on with AFK? 😄
and for people who earn via their python skills and now have to pay tax ?
stop being my mom
no idea
@rugged root What is happening in the vc?
its like pigeons
join chartered accountant
u will find people
like professional
i think this is some sort of raid though
I'm not spotting any developer roles, so...new joins...
someone is messing with server
Ah well
@somber heath merry christmas mate
Returns in kind.
Attempted raid
¯_(ツ)_/¯
3D-printing heads by ViscoTec for materials like silicone, UV- curing adhesive, two component adhesive as well used for organic cell solutions and pastes.
The advantage against other printers is a unique combination of speed and accuracy (resolution). We can print at a layer thickness of 0,2 mm up to 1 ml/minute (depending on viscosity). Further...
Not the first time, won't be the last
Was likely a noise based one, but with the voice verification, it didn't matter
aww yeah
Yeah, it's working great 😄
@rugged root proud moment
but still it annoys
is there anyway to stop discord notification sound
it annoys us a lot less
i mean it annoys
Dr Esther Garcia Tunon Blanca, from the Department of Materials, demonstrates in a video a new method for printing miniature components made from a graphene paste she and her colleagues have developed.
See ya 👋
Cya Hemlock. Wish you a Merry Christmas 😄
Merry Christmas 😄
yeah
aww yeah
r/technicallythetruth
hey guys
hey
do you guys know to stream music using python
I had one question... How can we directly stream YouTube video in directly python 🤔
In this video i will show you how to stream or display a youtube video into a vlc GUI .so we will work on two packages pafy and vlc pafy to extract youtube video data and vlc to display that data into GUI.
Pafy objects relate to videos hosted on YouTube. They hold metadata such as title, viewcount, author and video ID ,Stream objects relate to i...
might be able to help
Potuluri Veerabrahmam
he wrote a book
for predicting future
and most of them are happening around the world
wait who
Thanks 🙂
Todd Sampson's Body Hack.
This guy got no chill 😂
who
stan lee superhuman
Se vi dicessimo che i superuomini esistono davvero, non ci credereste. Ma se ve lo dicesse Stan Lee, cocreatore di supereroi come Spiderman e X-men? Guardate per credere!
Stan Lee's Superhumans, dal lunedì al venerdì alle 19:30 su BLAZE TV, canale 119 di Sky.
👀
Merry Christmas! It's 25th December here now.
Merry Christmas
Mnemonics
"We guarantee certainty, clearly referring to this light mnemonic"
^ Number of letters in each word gives digits in speed of light
(299,792,458 m/s)
☢
I think the images sent with the Voyager spacecraft were really interesting
What humans believe other species might be able to relate with
Also nudes :P
lol
☣
Yeah genetic transmissions are infinitely slow compared to how quickly information can be transferred electronically
I mean that's pretty much why AI is ...intimidating?
how quickly it can develop
yeah
it is all about connection
A bird in the hand is worth two in the bush
proxy lady
lol
😆
bye guys, merry Christmas once again
please help me out with youtube dl
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
"%.2f"
def button_comma():
Button_comma = Button(root, text="." , padx=40 , pady=20 , command=button_comma)
Button_comma.grid(row=7, column=0)
hello
print( "%2.f" % a)
what is his problem ?
print("{:.2f}".format(39.54484700000000))
yes is someone familiar with object detection with tensorflow ?
@proper jacinth You can use self, if you want to call from the same instance.
!e
def hello(self):
print('Hello')
self.goodbye()
def goodbye(self):
print('Goodbye')
a = A()
a.hello()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Hello
002 | Goodbye
@proper jacinth
Someone needs to help me with his. I just cannot put images in pygame at all errors after errors. Im trying to put a sprite as my like object that i move around. But it never works. Is there any one free.
@stoic cloud Having not worked with Pygame myself very much, I may be of only limited assistance. Post one of the error messages. The fix may be straightforward.
!e
def func(self, v):
print(self is v)
my_car = Car()
my_car.func(v=my_car)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
oops
Uhhhh
ahhaha
But uhmmm
Anyone wanna help me with a project, so I can finally start on my chemistry exam?
Back
Oh no'
help with threading
also, has anyone had experience with python iterating extremely slowly for some reason?
I have made a timer, that is dependent on iteration speed, and it has just gone from 100 km/H to like 10
@pallid kite I can't hear you.
What?
Iteration speed is a setting?
It is a timer
timer.sleep(0.01) but because of the speed, it waits much longer
BUt basically, how can I run arduinoLæs in the background continously? https://paste.pythondiscord.com/vegisasugu.py
Ohhh
wait
yeah!
There is a time.sleep in the function...
threading.sleep() gives an error
maybe threading.time.sleep()?
og self?
in my other program, I have just done time.sleep()
which seemed to work
but it keeps the code slow in this
tbh
I don't think that is the problem
I think it is because it has to keep connect/disconnect from the arduino
@somber heath
threading.Event().wait(n)
alright
nothing
thank you, merry christmas
sorry, but i am struggling with the mic
i am texting then
i cannot speak
h
