#voice-chat-text-0
1 messages Β· Page 129 of 1
yeh yeh yeh
the lady is ryt
yess yess he hasnt
let them
yeh pls
the lady is irritating
:[
ing*
neglecting to it
.
yesss
^^^^
bruhhhh
cool
yesss
it wasnt
yes
agree:]
@somber heath Thanks!
That was on of the most detailed explanations I have ever seen in my life lol
Detail is all good and well. How much do you feel I was able to communicate effectively so as you could absorb it?
Any points that need clarification?
I didn't understand this
a = []
b = []
c = a
print(a == b) #True. a points to an empty list. b points to an empty list. They are equal.
print(a is b) #False. a points to a list. b points to a different list. They're not the same list.
print(a is c) #True. a points to the one, same list that c points to.
I don't understan why a is b is False
How many lists exist here?
uh.. 2?
so 'is' is basically just the name of the variable?
a is b is False, because a refers to a different object than b refers to.
A variable is a named signpost to an object.
a, b and c are the variables
a points to one list, b points to a second list, c points to the first list.
All three variables each point to one list.
If we wish to check equality, yes.
I have two boxes.
One box is labelled a and c.
The other box is labelled b.
The two boxes are equal, being empty boxes, (==)
But they are not the same box (is)
so is just compares names?
No. It compares identity.
oh ok
abc is def_```This asks if abc refers to the same object as def_ refers to.
isn't that ==?
One box with three red balls in it is equivalent to another box with three red balls in it, ==, but they are not the same box, is.
is compares the memory addresses
oh
Assignment creates references to objects.
a = [1, 2, 3]``` = is assignment
yeah
I have created a list. It is sitting there in memory. I then put a sign in the ground pointing to it, a.
if they are not in the same box, how does is exist?
Once an object has no (hard) references (of which variables can be one), the object is garbage collected and destroyed.
Basically pointers
Variables are named pointers.
List/tuple elements are an ordered sequence of unnamed pointers.
So is is used for pointers?
That could be one way of thinking about it, yes.
Oh ok
== is used for comparing values and is is used for comparing pinters?
*pointers
Broadly.
@tough osprey π
()
Yo check out my new code I just learned
!e
name = input('Enter your name: ')
age = input('Enter your age: ')
age = age + 1
print(f'Hello {name}')
print(f'You are {age} years old')
@dense meadow :x: Your 3.11 eval job has completed with return code 1.
:warning: Note: input is not supported by the bot :warning:
001 | Enter your name: Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | name = input('Enter your name: ')
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | EOFError: EOF when reading a line
import os
import time
import random
os.system('color 0a')
nums = [1,0]
tm = 0
while tm < 30:
print(random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),random.randrange(1,5)* " ",
random.choice(nums),)
one two buckle my shoe
three four buckle some more
five six nike kicks
that's so fire bro
Hey!
long time no see
bro your voice is soo good π coffee
Sonic you from india?
The kid was smart..
i gtg
bye
"You are someone being interviewed. What do you consider to be the ideal interview technique?"
Dam no ones talking ic
Busy being an adult, hang on a sec
I miss college when I didnβt have to babysit frying pans
.
Cooked in extra creamy local sheepβs milk butter
Hi Opal, I have a doubt
How do I like code: if variable is less than or more than something, print this
here is my code:
name = input("What is your name?: ")
age = input("What is your age?:")
print(name)
print(age)
if name == 'sanjeev':
print("Hello Founder!")
if age == 11:
print('Young boy')
I want it to say: if age == less than 11: print young kid
if age<11
Ohh ok
@dense meadow What is the type of the object returned by a call to input?
Uh idk?
user_input = input('>')
user_input_type = type(user_input)
print(user_input_type)```
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@dense meadow See above code.
Yeah I checked , I have joined just yesterday
Every time you do input(...) or print(...), you are calling a function. In addition to that function performing its purpose, it returns an object to your video. In effect, the call becomes that returned object.
name = input("What is your name?: ")
age = input("What is your age?:")
print(name)
print(age)
if name == 'sanjeev':
print("Hello Founder!")
if age == 11:
print('Young boy')
!e ```py
def func():
return 123
result = func() #result = 123
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
123
I just want to say:
A call to func returns an object of type int.
123
A call to input returns an object, too.
``if age is less than 11:
print('young boy')
I understand what you intend. I'm explaining what you need to understand.
@sick condor π
@jolly terrace Yo
The def keyword indicates to python that you are creating a type of object called a function.
hello
what's function?
A function can be thought of as a collection of code that can be run on command as many times as required.
well think of a function as a way to reuse your code
so you could call it the times you want
thanks
input is a function
yeah...
It's purpose is to get information from the terminal
Provided by the user
It has a return
Yeah
That object is of a type.
oH ok
I've provided the code for you to examine the type of object that input returns.
Who knows?
@modest gorge @prisma lintel @meager onyx π
Can u send the code here?
I have.
user_input = input('>')
user_input_type = type(user_input)
print(user_input_type)```
@barren crown π
hello!
It return a String object right?
Do you guys find the official tutorial and documentation for python to be effective for learning python?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Great thanks!
Check.
so that means right?
I've given the code above
user_input = input('>')
user_input_type = type(user_input)
print(user_input_type)
this one?
wait 1 sec
!e
user_input = input('>')
user_input_type = type(user_input)
print(user_input_type)
@dense meadow :x: Your 3.11 eval job has completed with return code 1.
:warning: Note: input is not supported by the bot :warning:
001 | >Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | user_input = input('>')
004 | ^^^^^^^^^^
005 | EOFError: EOF when reading a line
Ever wonder how electrons know where they are going? Electricity is a pretty mystifying topic, because electricity seems to be able to do impossible things, or at least things that don't make sense at a normal "human" scale. In this video I use a thermal camera to show electric current through a maze made of aluminum foil. The electric current v...
Not on Discord. You'll want to run it locally.
Oh ok
so u are finding ot the type of input
that's why u are using type()
wait it says everything is a str
it's not supposed to do that, right
So, in your code, you are comparing objects. What are the types of those objects?
strings and ints
How do I compare a string to an int?
That is the correct question.
How do I do type casting?
you cast something to a certain type by converting it to that type using the correct function
for instance:
!e py a = '123' b = int(a) print(a, type(a)) print(b, type(b))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 123 <class 'str'>
002 | 123 <class 'int'>
Assuming int is what you want to convert to. There are other numerical types.
or, vice versa, you can cast an int to a string
Conversion from str to int would make more sense.
so
input() takes a string
but you are then trying to compare the input with an int
int(name)?
Does that seem right?
do you know what int and str are?
does it?
int is numeric. str is text.
so if you have some numbers, and you add them together, the computer has to know that they are numbers
that they are of a number type, so to speak
there are two types of numbers
float and int
integers, like 1, 2, 3
floats, like 1.3, 1.8, 2.784237648723
then you have strings, which are not numbers
they can represent any characters
like
hello
foo8yrt
#^&yz8*
if you add two numbers, you get the mathematical result
!e py v = 5+6j print(v, type(v))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
(5+6j) <class 'complex'>
so if you add 2 and 2, and the computer knows they are numbers, it will return 4
but if you add 2 and 2, and you tell the computer that they are strings, it will put them one after the other
and return 22
complex is another type
but that's not relevant for your question
anyway, you have had more than enough information for you to solve your problem by now
it's now time for you to think
That's required for you? @tidal shard
hi guys
How's it going
I'm working at a part-time job right now
I'm happy because I'll be getting paid in 4 days!
Payday is the best day
True π
@formal arch Yo
Hello fam π§’
ππ
Looks applish.
Lightning
Cya
Work things or outside of work things
stable diffiusion whit my immage
if False:
print('I am pissed'):
else:
print('I am pissed')
I have a lot of work to do
I'm glad my blog comes up as soon as I search it!
I just need you to search for my blog name and it should come up.
Provided to YouTube by CDBaby
Baby Got Back Β· Jonathan Coulton
Thing a Week One
β 2006 20 Goto 10, Inc.
Released on: 2006-01-01
Auto-generated by YouTube.
@reef barn You can participate in here. If we're in VC we'll typically be watching these channels
@gentle flint is, quite a few others
what's that supposed to be
@zenith radish We can hear you, you can't hear us
Robot LP 
This sounds sketchy
@gentle flint we can't hear you
If itΒ΄s done by a programmer, donΒ΄t run it that is my motto
all done now
Hello π
Well done
Errrm
Yeah I think that's an apple thing 
Table Of Contents Introduction What Aspects Are Most Legally Risky? What Legal Doctrines Affect Reverse Engineering? Copyright Law Limiting Reverse Engineering Copyright Law Allowing Reverse Engineering Reverse Engineering Court Decisions Trade Secret Law and Reverse Engineering DMCA Anti-...
Yeah I think that's called "Live Text"
Live Text in videos
Text is completely interactive in paused video frames, so you can use functions like copy and paste, look up and translate. Live Text works in Photos, Quick Look, Safari and more.
Telemetry or telemebush? You decide!
Not server appropriate guys
Client_Name_newest 10-27-2022 (QuickBooks2022 Oct 26,2022 12 48 PM) (QuickBooks2022 Jan 24,2023 12 51 PM).QBA'
yes it quarters its when its set through the software
unless its through the web browser
dont use browser
they almost hired me
lel
fr fr now im a software dev
so they missed out
^^^^
they havent really updated their web software in a while
they havent done data migration :c
^^^^^
true!
LMAO
no it was my dad ran his own buisness years ago
used to run with quickbooks
later applied and got denied now a 100dev data analytics c:
their is its open source i think i might still have it on my pc
never used it :c
should have
LOL
isnt there a movie?
i need to watch :c
HYPE
i might do that this afternoon π
lol
excel vs pyspark π€
^^^^ use jupiter notebook then convert over
i havent used open py excel
im trying to basically use excel to should the word count then download all the data separately use a histogram with a map :c i havent seen it be done :c
send help
conclusions make separate graphs then use them in div containers :c
The word count of what?
so i cant send file big data :c
but count every word for cancer and different cancers
and mortality vs survival rate
then graph it with location with a map plot heat map with a histogram from 20 years ago
41 books this month π need to start reading fiction
fuck the nonfiction
^^^^^
litterally
brawlhalla for me
Yeah, gaming for sure
have you seen choo choo charles
lol
this is the first time ive seen this discord active in a while
^^^^^
I'm gonna take a break
Long day?
^^^^
I don't understand the meaning. What are you saying to me?
debating pyspark or crash pc with excel π€
As in has it been a long day? Like.... lots of work that had to be done, exhausting, things like that
Lions and Tigers and Bears... and Dragons and Dinosaurs and Werewolves and Vampires and Aliens and some just regular people and Cats and Dogs and Snakes and Owls and other stuff, OH MY! Basically, this is where I'm gonna post all of my non- Pixie and Brutus comics. By "ALL" I mean all the biggest hits that I posted before now, excluding unpopula...
LMAO
i need to read that
movies make me tired
use read outload or google voice
listen to it like a podcast
It's not completely over yet.. I think we've solved about 40 percent. It moves so much that I take a little break.
movies make me fall asleep π’
That's the healthy thing to do. Don't overwork yourself.
Unrelated
Lions and Tigers and Bears... and Dragons and Dinosaurs and Werewolves and Vampires and Aliens and some just regular people and Cats and Dogs and Snakes and Owls and other stuff, OH MY! Basically, this is where I'm gonna post all of my non- Pixie and Brutus comics. By "ALL" I mean all the biggest hits that I posted before now, excluding unpopula...
:c to crash excel
get a second monitor get an auto reader app
then have it on the side
Thank you!
nosuchthingasafish.com | A weekly podcast about interesting facts from the makers of QI.
whats it about????
no i wish
hmmmm ill give it a go! π
i've really been enjoying philosophize this
thats my current fav
just a guy who reads and loves philosophy and tells what he learned
very interesting give me new looks of the world somedays and shows me what others believe and effects my world view bias that i might struggle with
hi
That's always tough to do for sure
Trying to work or view things through the eyes or thoughts of another
^^^^^ empathy is a struggle but eye opening
when i was a psych major i never thought of it
which was interesting i helped so many homeless people but i never thought to myself
whats it like to be homeless
:incoming_envelope: :ok_hand: applied timeout to @upper mirage until <t:1683659952:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
what?
!cban 651799611421229067 Low effort troll
:incoming_envelope: :ok_hand: applied ban to @upper mirage permanently.
Who was that
brb
would be better if it was high effort
I mean
^^^^^
I want to stop working and study programming for my SPAC
That would be nice
But I don't have enough time.
I have a summer break coming up so just looking around for internships
for now, Id be okay with wherever , tho im picking based on tech used
backend
this is only for 2 month internship, in my last semester I can look for a 6 month one
im good with python based and js
so mostly that
I do have a research internship in my uni, but im gonna keep that as my last option
they do get boring tho
Fair
Inferior or in fear of ya? You decide!
Hello guys
makes sense when you are literally the only unmuted person in vc
from my experience i barely understand anythng
i prefer it when its topics that are sort of related to programming, but arent
more in the tech space
IBM getting into the AI world
Yes they had some AI translators, readers, etc... but stepping up their game
Getting into generating models
@somber heath this is how I imagine you
@split parrot π
Hello @split parrot
hi xd
lolololol
I have a doubt, what the heck is recursion?
I heard about it in a forum
def func():
func()
func()```
!e
def func():
func()
func()
print('func')
@dense meadow :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | func()
004 | File "/home/main.py", line 2, in func
005 | func()
006 | File "/home/main.py", line 2, in func
007 | func()
008 | File "/home/main.py", line 2, in func
009 | func()
010 | [Previous line repeated 996 more times]
011 | RecursionError: maximum recursion depth exceeded
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/yeraqoqoxu.txt?noredirect
A recursive function is one that calls itself.
!e ```py
def func(arg):
if arg:
print(arg.pop())
func(arg)
func([1, 2, 3, 4, 5])```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 4
003 | 3
004 | 2
005 | 1
whats pop
It removes an element, by default the rightmost, from a list and returns it.
oh so
An index may be given as argument to instead remove/return the element at that index position.
!e py my_list = [1, 2, 3] popped = my_list.pop() print(my_list) print(popped)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [1, 2]
002 | 3
i think i have an idea
!e py my_list = [1, 2, 3] popped = my_list.pop(0) print(my_list) print(popped)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [2, 3]
002 | 1
0 refers to the element at index position 0, in this case, the integer object, 1.
!e py my_list = ['a', 'b', 'c'] popped = my_list.pop(1) print(my_list) print(popped)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['a', 'c']
002 | b
!e ```py
print('abc'[0])
print('abc'[1])
print('abc'[2])
print('abc'[-1])
print('abc'[-2])
print('abc'[-3])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
Subscription by index.
!e ```py
print('abcd'[0])
print('abcd'[1])
print('abcd'[2])
print('abcd'[3])
print('abcd'[-1])
print('abcd'[-2])
print('abcd'[-3])
print('abcd'[-4])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | d
005 | d
006 | c
007 | b
008 | a
yeah i got it opal
thanks
now i can run recursion in teacher's computer
muhahaha
jkjk
@sand panther π
Heyoo
@whole bear π
Hows it goin?
Fellow Aussie?
alr I'm gonna head off now, later guys!
Heya SonicCoder!
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
letter = 'a'
print(letter)
letter = 'b'
print(letter)
letter = 'c'
print(letter)```
!e py for letters in ['abc', 'def', 'ghi']: print(letters)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | abc
002 | def
003 | ghi
!e py for letters in ['abc', 'def', 'ghi']: for letter in letters: print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | d
005 | e
006 | f
007 | g
008 | h
009 | i
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
!e
i = -2
while i <10:
i +=1
print(i)
hello
i am noob what is it?
@dense meadow :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | -1
002 | 0
003 | 1
004 | 2
005 | 3
006 | 4
007 | 5
008 | 6
009 | 7
010 | 8
011 | 9
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/qodeqozone.txt?noredirect
!e
code
Discussion of loops.
for loops akin to assignment.
while loops akin to if statements.
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
!voice
Visit the voice verification channel.
at the top
your welcome
you're welcome
yes
You're welcome, Abol. π
friends for fun say it
but not my friends XD
i am a noob in code
i just know html5 and css
Google's service, offered free of charge, instantly translates words, phrases, and web pages between English and over 100 other languages.
break and continue
lol
!e py for i in range(10): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e py for i in range(10): if i == 5: break print(i) print('Bye.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | Bye.
@whole bear π
who have link python for pycharm?
no no link python for it
!e py for i in range(10): if i == 5: continue print(i) print('Bye.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 6
007 | 7
008 | 8
009 | 9
010 | Bye.
how i print (i) for python for number
Which version should I get for Paycharam program?
3.7?
python?
I don't understand.
lol
okay
i go for old python
for pychram
i cant use python news
bro
he not in vioce
hi is there any available
I am getting an error, what is the reason?
!e py while False: pass else: print('Hello.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello.
@somber heath can you take a look
bro your old is 18+ ?
I don't use vscode, so I'm not sure. Are you supposed to invoke it py instead of python?
go to run
you need get run for python
but i am a noob i just know print lol
no run
I mean, invoking python in vscode's terminal like that feels a little odd to begin with
I'm sorry, I'm not sure how best to advise you. I'm both not a Windows person and not a VSCoder.
oh guys sorry
Maybe see #βο½how-to-get-help
I missed the misspellings of your file name, I've fixed it, thanks for your interest.
I feel silly for not seeing the problem for what it was.
All is well that ends well.
Feeling like you didn't notice a simple mistake π
yeah
Not on me.
https://www.goodreads.com/en/book/show/17255186 @amber raptor
Read it, worthless
Management rarely agrees to it
@turbid sandal Look at the widget's get method. Keep a reference to the widget.
@somber heath the thing is im using custom tkinter and there is no .get method for the textbox object
What do you mean custom
Can you show your code where you're making that custom part?
Create your own website for FREE βΊ https://wix.com/wisecrack
Use promo code "WISECRACK15" to get 15% off all yearly plans!
Thanks to Wix for sponsoring this episode!
Subscribe to Wisecrack! βΊ http://wscrk.com/SbscrbWC
Join WisecrackPLUS for EXCLUSIVE content! βΊ http://wscrk.com/YtWcPls
Why do we love The Office? Is it the characters? The joke...
Scientists at UT Austin conducted a study where they created a 3D view of a person's mind and used artificial intelligence to decode brain activity into dialogue.
Β» Subscribe to NBC News: http://nbcnews.to/SubscribeToNBC
Β» Watch more NBC video: http://bit.ly/MoreNBCNews
NBC News Digital is a collection of innovative and powerful news brands t...
Nature Neuroscience - Tang et al. show that continuous language can be decoded from functional MRI recordings to recover the meaning of perceived and imagined speech stimuli and silent videos and...
A brain-computer interface that decodes continuous language from non-invasive recordings would have many scientific and practical applications. Currently, however, decoders that reconstruct continuous language use invasive recordings from surgically implanted electrodes[1][1]β[3][2], while decoders that use non-invasive recordings can only ident...
https://www.youtube.com/watch?v=gMsQO5u7-NQ&ab_channel=TED
Personalized wearable AI?
In this exclusive preview of groundbreaking, unreleased technology, former Apple designer and Humane cofounder Imran Chaudhri envisions a future where AI enables our devices to "disappear." He gives a sneak peek of his company's new product -- shown for the first time ever on the TED stage -- and explains how it could change the way we interact ...
How about specialized models?
https://www.ycombinator.com/launches/IMP-glass-ai-gpt-for-doctors
Boooo
bbl
WASSUP!
Wsp
Excuse me, but I have a doubt. How do I extract text from a string and make a new string out of the text extracted?
Yeah I just need help in this.
msg='welcome to Python 101: Strings'
output = 1 Welcome Ring To Tyler
bool Reader::parse_new_expression(Node<Token>& syntax_tree) {
this->c = read();
if (c == EOF)
return false;
this->parse_reader_macro(syntax_tree);
if (isalnum(c))
this->parse_atomic(syntax_tree);
else {
auto unknown_token = Error{Unknown_Token, this->pos};
message_handler.report_message(Unknown_token);
}
}
What part are you trying to extract
*this.parse_reader_macro(syntax_tree);```
I'm still not understanding what you mean. I don't see what you would be grabbing from msg to put into output (this message was for Sonic, for context)
Chris and I are still trying to figure out what it wants
Right
Yeah that one is a quick one
The first one...
So, what Chris and I are theorizing is
Like.... taking the indexes or slices of the first string and slapping them together to make a new string
!stream 373160837151719424
β @lime vale can now stream until <t:1683734929:f>.
And there's no other context for that?
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
why?
!voice @full salmon
This is something you'd never ever do
There's no point to this exercise
Sorry, this is just me bitching
I'm writing a snippit of what the first bit would be
no bad word splease
Complaining, then
!e
Hold on, I have to do this for my reference:
msg = "Welcome to Python 101: Strings"
print([(i, let) for i, let in enumerate(msg)])
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
[(0, 'W'), (1, 'e'), (2, 'l'), (3, 'c'), (4, 'o'), (5, 'm'), (6, 'e'), (7, ' '), (8, 't'), (9, 'o'), (10, ' '), (11, 'P'), (12, 'y'), (13, 't'), (14, 'h'), (15, 'o'), (16, 'n'), (17, ' '), (18, '1'), (19, '0'), (20, '1'), (21, ':'), (22, ' '), (23, 'S'), (24, 't'), (25, 'r'), (26, 'i'), (27, 'n'), (28, 'g'), (29, 's')]
Okay now that I have a reference...
The question was to teach you counting characters rather than teaching you strings
msg = "Welcome to Python 101: Strings"
new_msg = msg[18] + msg[7] + msg[0:7]
print(new_msg)
!e
msg = "Welcome to Python 101: Strings"
new_msg = msg[18] + msg[7] + msg[0:7]
print(new_msg)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 Welcome
And you'd just kind of work from there
oh ok thanks
I wasn't sure how stringent they'd be with only using characters from the msg string, so I pulled one of the spaces as well
I hate it
Again, this is something you'd never ever ever have to do in real code
Any time
you just saved me hours
!e
print('1 Welcome Ring To Tyler')
One sec
sure
Which says grab all the letters from index 0 until index 6. Much like with range(), the last number is non-inclusive
so
!e
print(*range(0,7))
it grabs everything from 0 to 6
Yep
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
0 1 2 3 4 5 6
Slices are awesome
To grab the space character
!d itertools.cycle
itertools.cycle(iterable)```
Make an iterator returning elements from the iterable and saving a copy of each. When the iterable is exhausted, return elements from the saved copy. Repeats indefinitely. Roughly equivalent to:
```py
def cycle(iterable):
# cycle('ABCD') --> A B C D A B C D A B C D ...
saved = []
for element in iterable:
yield element
saved.append(element)
while saved:
for element in saved:
yield element
```...
So we can look at this and do the same kind of thing we did with the slice
We know that string has the word ring in it
So we just get the slice of the string that has that part
ahh ok
!e
import itertools
my_list = [1, 2, 3, 4, 5]
my_cycle = itertools.cycle(reversed(my_list))
for i in range(10):
print(next(my_cycle))
@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 4
003 | 3
004 | 2
005 | 1
006 | 5
007 | 4
008 | 3
009 | 2
010 | 1
!e python a = range(0,7) for x in range(0,len(a)): print(a[x*-1])
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 6
003 | 5
004 | 4
005 | 3
006 | 2
007 | 1
this is correct right?
Try it. The best way to learn is to do
ok
Never be afraid to try things in the repl. The worst it's going to do is give you an error
thanks
to slice just a single letter we use :28 or something like that right?
So we don't slice a single letters
We just grab them by their index
Interestingly, the [:28] you did is indeed a valid slice
i'm smart
It says "grab everything in the string up to (but not including) index 28"
not what i intended
but umm...
there's no word where tyler is together
so i just do [28]?
Yep, so you'll have to grab individual letters from the words
Yep, you'd be doing indexes, so no :s
ok
!stream 373160837151719424
β @lime vale can now stream until <t:1683736572:f>.
@lime vale
def bulkRequest(requestObj):
res = requestObj()
if res.status_code != 200:
if res.status_code == 429:
# retry the request if we get a ratelimit
while True:
res = requestObj()
if res.status_code != 429: break
else:
# epic fail
return None
html = res.text
return {
"title": (sub := html[(start := html.find('<div id="largeProductImage">')):start+300])[sub.find("alt")+5:sub.find("/>")-2],
"imgUrl": html[(start := html.find("https://images.barcodelookup.com")):html.find(".jpg", start)+4],
"description": (sub := html[(start := html.find('Description: '))+48:start+2000])[:sub.find("\n")],
"category": (sub := html[(start := html.find("Category:"))+37:start+80])[:sub.find("</")]
}```
@rugged root They "were"?
Hi my code is not showing the intended output
!e
msg = "Welcome to Python 101: Strings"
new_msg = msg[18] + msg[7] + msg[0:7] + msg[28] +msg[25:28] + msg[9] + msg[8:9] + msg[28] + msg[12]+ msg[2] + msg[6] + msg[25]
print(new_msg)
@dense meadow :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 Welcomegrinotgyler
about to post code
#crawl
def crawl_single_page(url):
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
options.add_argument('--ignore-ssl-errors')
options.use_Chrome = True
driver = webdriver.Chrome(options=options)
driver.get(url)
path = driver.find_elements(By.XPATH, "/html/body/main/article/div/div[2]/div[4]")
crawl_single_page(url)
It doesn't matter, I was being socially awkward.
expressions -> some_number operation some_number | neg some_number
i don't understand
Socially walkward?
I feel that deep in my sole
What topic is everyone talking about?
``py
msg1=msg[18]+' '+msg[:8]+msg[25:29]+msg[7:11]+msg[13]+msg[12]+msg[2]+msg[1]+msg[-5]
print(msg1.title())
Python learning sites vs python learning books
is this correct?
ohh :0
it work
let's goo
thanks mr. hemlock for help
Oh, I usually use the site.
Happy to help
For sure. But there's tons of resources out there, some easier to digest than others
see ya
grab the site turn it into a PDF
Usually, when I read books, I prefer theory-oriented books to books for programming code.
@rugged root do you follow the idea of - 10 ways to blink a LED , many ways to do one thing
Never heard of that phrase, actually
usually as you improve the code - gets faster or more pythonic
https://youtu.be/FS0q5Srx30g https://youtu.be/bcGA4alhPas @gentle flint I've probably shown you this outstanding gentleman before
From the Victor Borge: Then and Now III special.
The source material had a low volume, so for best results, turn up the sound on your device and consider using headphones.
paganini OR page 9 - remember
def pooeccw(title, text):
class Terminal(tk.Frame):
def init(self, master=None):
super().init(master)
self.master = master
self.pack()
self.create_widgets()
def create_widgets(self):
self.textbox = tk.Text(self, wrap=tk.WORD)
self.textbox.pack(
side=tk.LEFT, fill=tk.BOTH, expand=True)
self.scrollbar = tk.Scrollbar(self)
self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.textbox.config(
yscrollcommand=self.scrollbar.set)
self.scrollbar.config(command=self.textbox.yview)
self.textbox.config(bg="black", fg="white")
self.textbox.insert(tk.END, text)
you have not
ew
please use codeblocks
is ATOM is of type ATOM itself
There are much nicer ways to say that
!code π
That came off a bit snotty
Fair fair
so rudeee
(print (length "hello world")))
!code
def pooeccw(title, text):
class Terminal(tk.Frame):
def init(self, master=None):
super().init(master)
self.master = master
self.pack()
self.create_widgets()
def create_widgets(self):
self.textbox = tk.Text(self, wrap=tk.WORD)
self.textbox.pack(
side=tk.LEFT, fill=tk.BOTH, expand=True)
self.scrollbar = tk.Scrollbar(self)
self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.textbox.config(
yscrollcommand=self.scrollbar.set)
self.scrollbar.config(command=self.textbox.yview)
self.textbox.config(bg="black", fg="white")
self.textbox.insert(tk.END, text)
@turbid sandal In the bot post, there are instructions on how you can post your code in a Discord code block.
not quite
you put ```py at the start
and ``` at the end
()
so
```py
your code
```
(())
You can edit your existing post.
((()))
def pooeccw(title, text):
class Terminal(tk.Frame):
def init(self, master=None):
super().init(master)
self.master = master
self.pack()
self.create_widgets()
def create_widgets(self):
self.textbox = tk.Text(self, wrap=tk.WORD)
self.textbox.pack(
side=tk.LEFT, fill=tk.BOTH, expand=True)
self.scrollbar = tk.Scrollbar(self)
self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.textbox.config(
yscrollcommand=self.scrollbar.set)
self.scrollbar.config(command=self.textbox.yview)
self.textbox.config(bg="black", fg="white")
self.textbox.insert(tk.END, text)
much better
Now make sure that for every one level of indentation, you use four spaces.
@somber heath come to code/help\
No.
would it be fair to say im (kind of) using python if im using gdscript (godot programming language based of python)
polygon with 10^inf side will it be a circle?
circle is limit of polygon as n_sides -> infinity
!e ```py
class Alpha:
a = 'aaa'
b = 'bbb'
class Beta(Alpha):
b = 'ccc'
alpha = Alpha()
beta = Beta()
print(alpha.a)
print(alpha.b)
print(beta.a)
print(beta.b)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | aaa
002 | bbb
003 | aaa
004 | ccc
Are all the sides the same size?
well, i imagine regular would turn out to be a circle
not sure about irregular polygon
@wind raptor can i have stream perms
!stream 373160837151719424
β @lime vale can now stream until <t:1683738361:f>.
For the call going on in voice chat 0, is this chat related to this call?
In geometry, an apeirogon (from Ancient Greek αΌΟΡιΟΞΏΟ apeiros 'infinite, boundless', and Ξ³ΟΞ½Ξ―Ξ± gonia 'angle') or infinite polygon is a polygon with an infinite number of sides. Apeirogons are the two-dimensional case of infinite polytopes. In some literature, the term "apeirogon" may refer only to the regular apeirogon, with an infinite dihedr...
Sometimes yes, sometimes no.
Class: Blueprint. Subclass: A copy of that class, but with amendments.
!e ```py
class MyClass:
def init(self):
print('Hello, world!')
my_instance = MyClass()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world!
books have fine detail - you can absorb at your own speed - they are useful
!e ```py
class MyClass:
def init(self, arg):
self.value = arg
def say(self):
print(f'I was given {self.value}.')
my_first_instance = MyClass('123')
my_second_instance = MyClass('456')
my_first_instance.say()
my_second_instance.say()
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | I was given 123.
002 | I was given 456.
chat GPT , his real name is Bob
but what if you called him , Bob
@turbid sandal
I don't think Bob liked that very much...
re: __init__
You don't have to write an init, but you often will be.
@woeful wyvern tell it - i find Chat GPT to long to type , do you have a short easy name , im only a human
chad
but will it pick a name - or stay firm - if 100 million humans decide to call him Bob will it alter
say - wow , i can type , G , just for you isnt it cool
That's not how the AI is built. The model "resets" for each session
import customtkinter
root = customtkinter.CTk()
root.geometry("1000x800")
root.title("Anonymous Emailer Avocado")
main_frame = customtkinter.CTkEntry(master=root).pack(padx=10, pady=10)
email_label = customtkinter.CTkLabel(master=main_frame, text = "Your Target Email").pack(padx=10, pady=10)
email_enery = customtkinter.CTkTextbox(master=main_frame,placeholder_text="Your Target Email").pack(padx=10, pady=10)
message = customtkinter.CTkTextbox(master=main_frame,placeholder_text="Your message...").pack(padx=10, pady=10)
root.mainloop()
hmm thats like , ' Person of Interest ' , show , it resets after 24 hrs
Another question. How do i know what websites like to be crawled? I use the robots.txt and alot of sites dont have that
Q - does Tkinter on CANVAS have a sprite function??
@lime vale how many languages do you normally use ?
@turbid sandal You're assigning variables to the returns of the pack calls, not to the widgets.
widget = Widget(root)
widget.pack()```vs```py
widget = Widget(root).pack()```
The first example, widget is a Widget instance.
In the second example, widget is None.
Because None is what a widget.pack call returns.
@turbid sandal Make sense?
i actually think , 'Ed' , is built into AmigaOS
AmigaOS Manual: AmigaDOS Using the Editors
Jump to navigationJump to search
AmigaOS Manual: AmigaDOS Using the Editors
A text editor or word processing program is necessary for creating or editing text files and script files. Amiga Workbench software comes with three text editors. This chapter describes them in the following order:
ED
MEmacs
EDIT
i knew i saw it somewhere before
@lime vale did you start with UNIX ?
Q - but is LINUX derived from UNIX ?
by the way , when i write --> Q - bla bla ? , im asking the entire room a Question
what about QNX , did it die ? isnt it POSIX based ?
cobalt 60
Pretty sure POSIX group maintains a list of OSes that are POSIX certified compliance
i only feel slightly confused from all the answers given today
Type hinting?
You're indicating to your linter what the typing of the return should be.
@woeful wyvern I found the Message Request thingy
For more information, see #type-hinting .
Settings -> Privacy & Safety
@somber heath hmm what languages do you use on a regular basis ?
Just Python.
i keep wanting to use Python for ease of use , and C++ for speed , but many claim C++ is a waste of time , im kinda confused
mmm need to learn C++ rather
There is middle ground between Python and C++ which is Go/JS/C#/Java
but many microcontrollers use , C / C++ , is that idea disapearing ?
Little bit, more microcontrollers have decent hardware so you can use higher level. There is also rust.
rust from my limited knowledge , kinda looks like C
if bored - ask a hard question - there are many PROS in the room
What kind of question is it?
i worked with a fella from pakistan , all you have to know is the personal name of a military commander - and just say it - and many would just back away and say sorry
exactly
Only if someone staffed and unstaffed me without me noticing.
Could've sworn you were mod.
-begins nervous sweating-
We cannot in any of the voice chat till 50 msgs?
yes pic of kitty is mandatory
ignore the urdu, but focus on the stuff they took
(people raiding the homes of government officals)
im not getting a pic from instagram
@wind raptor I have reach limitations with Obsidian π¦
!stream 346499303361216524
β @iron plume can now stream until <t:1683745122:f>.
What is that?
No SVG support
print("meow" * 3, )
how does /n work?
print("meow\n"*3)
thanks
static type checking always brings me such joy /s
src/utils.py:10: error: Argument 1 has incompatible type "Callable[[UtilsCog, Interaction], Coroutine[Any, Any, None]]"; expected "Union[Callable[[<nothing>, Interaction, VarArg(<nothing>), KwArg(<nothing>)], Coroutine[Any, Any, <nothing>]], Callable[[Interaction, VarArg(<nothing>), KwArg(<nothing>)], Coroutine[Any, Any, <nothing>]]]" [arg-type]
int(input("x"))
def ham(pork):
try:
int_pork = int(pork)
except ValueError:
print("Input was not an integer. Try again.")
@wind raptor may I stream?
!stream 500168097852948482
β @desert wolf can now stream until <t:1683745738:f>.
i got some wonderful road-rash from a skateboard
There's a cream for that
fun times? π
for all the years ive skated i never fucked up that bad but from mountain biking ive been in hospital 3 time π