#voice-chat-text-0
1 messages · Page 728 of 1
"Your spotify was instagram-your-tent-at-sunset-jazz-flex-cabincore bad." 😄
I feel personally attacked.
Nice 😄
Do you have a checkerboard fedora?
Do you have experience in another language @dense ibex ?
Paper?
If libraries are supposed to be repositories of knowledge, why are they called liebraries?
pence is hilarious
He knows which way the wind is blowing.
Which is good to know for when you're the sort of person who spray-paints their hair white.
Relational database is like a collection of tables (relations).
A bit like spreadsheet tables.
Check out Khan Academy's hour-of-code for databases.
brb
no such thing as sql it is a myth
yes thats why its pseudo
not even
sql? fake news
fr
like INSERT INTO table (potato, cactus) VALUES (?, ?)
bruh
and then adding params
it is stupid
and fake
// key entered is "age", looking for it to return "17"
let getVal = (key) => {
// gets database and finds key-value pair with key of key param
db.get(key).then(value => {
// logs "value: 17" to the console
console.log('value:', value);
// in theory won't return anything if value is undefined
if (value != undefined) {
// logging it again just in case, logs "value: 17"
console.log('value:', value);
// and then it returns undefined
return value;
}
});
}
haha
@dense ibex go ahead and try to verify in #voice-verification
Should be long enough now
Alright I will!
typeof myVar !== 'undefined'
same
And most successful startups come from older people in 40-50/
yes, but don't get discouraged from starting something
Hey guys
hey
hey
LOL
Well, I need help in python
Anyone here who really knows it good
Because I have quite hard problem
BIG hardware
Our hypervisor hosts cost 40k per host, 3 hosts minimum per cluster
So if anyone can help me i would rly appreciate it
thxx
hello everyone
no
hmm
i think you can only drop one table at a time
DROP <table-name>;
yup
writing code on UNIX type machines is a pleasure
only reason i'm offering money is that it is a weird branch of cs and isn't that beneficial to learn unless you want to get into my field of study
Mostly I think it would depend upon your field of work
what if linux takes lead in quantum era
not unlike mac or windows in classical computing
for commercial uses
Quantum computing will be very niche for foreseeable future. And currently it seems quantum computing will remain cloud based
quantum linux
Due to requirements to run quantum computers
yeah, 0 Kelvin temps for the qbits
yo guys
does any one can help me with this error in opencv
TypeError: Expected Ptrcv::UMat for argument 'mat'
this the line of error
cv.imshow("capture",capture)
No idea
f
Yes. You do. But keep in mind that you also have to have been on here for more than 3 days, and if you spam to try and get enough messages, we well make it so that it takes even longer to get the role.
ok thank you for telling me
as soon as you call it, you fall asleep

|| Rabbit was talking about invoking a REST method, for context ||
words?
it will sound like spam
Could just casually participate in our conversations. Or help in a help channel, ask for help, check out the topical channels, hang out in the off-topic channels....
ok let me see
if anyone need help
don't talk about me
yea but why you talk about me as I am bothering you
!e
try:
print("What could I say")
raise Exception("You're welcome!")
except Exception as e:
print(f"Except! {e}")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | What could I say
002 | Except! You're welcome!
ok
$body = @{
Key = "Value"
Key2 = 2
Key3 = $false
}
Invoke-RestMethod -Uri http://restapi.domain.com -Header @{Key = "Value} -Body ($body | Convertto-Json) -Method POST```
@mental talon 
yo
I got engaged!! =D and own a house
there is two admins in here, i scared 
Yesterday was eventful
like it closed?
Yup! Got the keys, fully closed
Congrats
Thanks! =D
npm init
py -m pip install <module here>
pimp my list
py -m pip list
I figure it was eventful because of other things kat
🔫 gimme your code
gimme ur watergun
Lol my messages and calls to my friends were like "hey eventful day besides... Gestures vaguely in the direction of DC"
⭐ ⭐ 🔫
Your news is better then "So my boyfriend is in DC wearing a fur coat"
"so my boyfriend is the one actively stealing the podium"
YOINK
Machine learning is just a part of AI
There's AI without machine learning.
Called 'expert systems'
Our whole crew got together to celebrate the start of what we hope will be a happier year: Happy New Year from all of us at Boston Dynamics. www.BostonDynamics.com.
this is amazing!
Yep 
the bot should get a promotion
Boston Dynamics' amazing robots Atlas and Handle
ATLAS®
The world’s most dynamic humanoid robot, Atlas is a research platform designed to push the limits of whole-body mobility. Atlas’s advanced control system and state-of-the-art hardware give the robot the power and balance to demonstrate human-level agility.
HANDLE™
The mobile robot for mov...
Are you crazy? PyDis bot is already primed for takeover
Join [THE FACILITY] right now for members-only live streams, behind-the-scenes posts, and office hours with me: https://www.patreon.com/kylehill
Twitter: https://twitter.com/Sci_Phile
Instagram: https://www.instagram.com/sci_Phile/
Artist: Masood Safdarian
Editor: Lilit Aramyan
ARIA: @ClaireMax
Smart boi: Kyle
Music: bensound.com
Sound effe...
Even just abstract shapes
yeh
hummusize the robots!
I do not own this video, all content belongs to Adult Swim.
@rugged root 😗
Sand Flea is an 11-lb robot with one trick up its sleeve: Normally it drives like an RC car, but when it needs to it can jump 30 feet into the air. An onboard stabilization system keeps it oriented during flight to improve the view from the video uplink and to control landings. Current development of Sand Flea is funded by the The US Army's R...
Multi-robot motion coordination is a fundamental robotics problem with wide-ranging applications that range from urban search and rescue to the control of fleets of self-driving cars to formation-flying in cluttered environments.
Two key challenges make multi-robot coordination difficult: first, robots moving in new environments must make spli...
Mass affects terminal velocity.
joe
Because more mass means a greater wind resistance force to counteract the force of gravity.
boobies 

brb
你在哪你都要不要
@steady root It's an english only server
no reason for any private company to show their finances
Ok. I was joking around... sorry
Hey @rugged root can you send me the python video you were talking about or send me the channel that's has it because I cant seem to find it.
Would rather not have to learn every other language the users in our server use
I have to grant it, Jake
What do you- ohhhhh
Right, sorry
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Damn you got your own website
Yep yep!
very professional haha
Sorry, thought you were asking about the video role
Who is math teacher ?
Me, I can teach you algebra and anything below that
What kind of math?
Hmm idk im studying math in france
Im in highschool
If someone can help me about python
It will be nice !
:p
Sure, what kinds of help do you need
hello
I have an exam in 1 month... they not gonna ask me about programming... just complete an algorithm so it’s not that hard i guess... but i need to watch video or something ? Maybe i can learn by internet ? Do you have a site ?
@rugged root
how can i open my microphone?
You are not allowed to talk i think
oh so what should i do?
idk XD
😦
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
We've got a whole slew of good resources for you, Doux
@vagrant rune Check out the #voice-verification channel. That should tell you what need to know
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have been on the server for less than 3 days.
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks......... this is so bad:(
Tysm !
@vagrant rune It'll go by faster than you think
idk,thank u
You'll get there. Just a conversation or two left
but I need to find out how to make money living in a cubicle
idk if i can hold down 2 internships at once
when one is already like a 9-5
in it
yeahhh, but I graduate in comp prog & info systems in spring 2022
and I have to move out now
Fair point. Still, do what you can handle. There's always a risk of doing poorly at both due to the stress
yeah honestly youre not the only one to bring it up. I have a friend whos been helping me with this transition. He's been encouraging me to just get through school
I honestly though am trying to find some paid coding opportunities over the summer to build a resume up for when I graduate. The projects I have been working on have been getting to like more fullstack oriented, but I need income and a way to get a real salary position and not just another internship post graduation
True enough
What about this: http://openbookproject.net/thinkcs/python/english3e/index.html
how do i get my voice back
@dense ibex
@ashen igloo Did you leave the server and come back at some point?
I'll temporarily disable it so you can get the help you need
But if you move channels or disconnect it'll reapply itself
Just how it works
thank you!
my buddy got a house as a math tutor
indeed

you are a dirty dirty Developer, take a shower, heres a bar of dove
!fstrings
In Python, there are several ways to do string interpolation, including using %s's and by using the + operator to concatenate strings together. However, because some of these methods offer poor readability and require typecasting to prevent errors, you should for the most part be using a feature called format strings.
In Python 3.6 or later, we can use f-strings like this:
snake = "Pythons"
print(f"{snake} are some of the largest snakes in the world")
In earlier versions of Python or in projects where backwards compatibility is very important, use str.format() like this:
snake = "Pythons"
# With str.format() you can either use indexes
print("{0} are some of the largest snakes in the world".format(snake))
# Or keyword arguments
print("{family} are some of the largest snakes in the world".format(family=snake))
!e
j = "rings"
print(f"f{f'st{j}'} ew")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
fstrings ew
@rugged root rate my string of f
What are you wearing?
mastablasta
Well that came out of nowhere
Didn't Mark Rober do something like that @eternal bough ?
What you talking about? Wasn't listening.
Two's complement?
what do you mean?
@alpine path
why are so many people server muted?
in call
bruuuuuh
why can't I talk
bc I need help
because voice verification probably
how do I get voice verified?
clean?
generally jsut talking and interacting with the community till u get 50 msgs
okay
can you help me btw
import time
def createuser():
global username
nickname = input("Username: ")
time.sleep(1)
global password
password = input("Password: ")
if nickname == password:
print("You can't have the same username and password, please change your password or username")
createuser()```
so I have this script
and it is giving me an error
anyway know any lightweight surveillance apps for android phones
this is the error:
if nickname == password:
NameError: name 'nickname' is not defined
or would it be better to just go with ardrunios and crap
Ah, you did global username
oh
rather than global nickname
yeah
thanks
File "TryingSomething.py", line 11, in <module>
if nickname == password:
NameError: name 'nickname' is not defined
same thing again
you define it within the function scope
huh?
but i'd assume the other would be in the global scope
I am new to python so Idk what that means
nickname = ""
password = ""
def createuser():
global username
nickname = input("Username: ")
time.sleep(1)
global password
password = input("Password: ")
if nickname == password:
print("You can't have the same username and password, please change your password or username")
createuser()
```try this
brb
kk
Also, the function has to be called for the global to be created
there is a great vid that just release about global
In this Python lesson, I'll be going over why you should never use the 'global' keyword in your code. Often times, you'll hear me and others say you shouldn't use the global keyword, but you never really hear why. I'll be demystifying the global keyword and explaining why you shouldn't use the global keyword in Python and why it's generally reco...
^ this talks about scopes
etc.
techwithtime`s ?
@sick cloud thanks I will try that
tim is a cool guy
np 
indeed
a guy called Tim I worked with taught me tons, i miss him
it reminds me of him
Person: how many balls do u want ?
me:
did u loose contact ?
or just broke up the relation
@whole bear Try: ```py
nickname = ""
password = ""
def createuser():
global nickname, password
nickname = input("Username: ")
time.sleep(1)
password = input("Password: ")
if nickname == password:
print("You can't have the same username and password, please change your password or username")
createuser()
nvm
it was checking if nickname and password was the same
and you defined both of them as "" and ""
so I just put a space in nickname
so it is " "
instead
and that fixed it
how is " " == "" ?
it isn't
It's not
I changed "" to " "
nickname = " "
password = ""
def createuser():
global username
nickname = input("Username: ")
time.sleep(1)
global password
password = input("Password: ")
if nickname == password:
print("You can't have the same username and password, please change your password or username")
createuser()
```is this how ur code looks ?
ye
hmm, does it ask for the input when u run the code ?
does it say: ```py
"You can't have the same username and password, please change your password or username"
or
"Username: "
which one does it say first
hmm, but the function shouldn't be called if the statement is false 🤔 cuz: ```py
if nickname == password:
# print statment
createuser()
if the if nickname == password: is false then createuser() shouldn't be called
did u de-indent the function or smth ?
wait
paste the code here
balancing a pole on a cart
I will try having the if statement in the function
alr
i smell some physics and newton's law of motoin here

how do I check how many messages I have?
its the rod keeping the base stable ig
idek
okay
@Here i'll see ur tmr gn
fbi
911
wait @sick cloud
yess ?
nopee
oh okay
b y e e e e
thx !
sleep tight
@rugged root whats the subject?
does anyone have tips for a new python scripter?
Do you think I should be coding along with the vid or no because I feel like there is no point because I just delete it for the next part
@dense ibex It's good to type it out too
It helps you remember it
Or at least it does for me
Hemlock is a nerd
Seeing it in action and being able to mess around with it makes a big difference
i'll remember it for life now

Also yes
wow this video is over an hour. that makes it a movie
Wanna know exactly where at VidCon I'll be? Check it out here: https://www.youtube.com/watch?v=aDwkpyQlG6w
Do you want to skip over my failed seeds, and get right to the seed that actually succeeds? Skip to 29:32, that's where the successful seed starts.
Do you hate seeing creatures that can...
this dude
Part 1: https://www.youtube.com/watch?v=o1IheoDRdGE
Part 3: https://www.youtube.com/watch?v=8g2nkzaUsTA
I will make this open-source on OpenProcessing as soon as Part 3 comes out!
CORRECTIONS: Every time I say "infectious", I meant "contagious". Oops.
Music:
"Evo" by DemiPixel
https://soundcloud.com/demipixel
"Nerves" by Kevin MacLeod
https://...
really cool stuff
@tall flicker
do you have the problem written
somewhere?
it's kind of hard to understand what you're askind :))
asking*
i understood that you have a list of sublists and in each sublist you have 20 numbers, then you want to take the numbers from a sublist and place it in the other sublists?
preorder_list = [
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
[4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
[-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18],
[-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18],
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21],
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]]
not at all
so wait a minute
i don't understand the combinations part
if you put it into another sublist then order it from highest to lowest it's just one combination
do you want to get unique elements from all sublists?
like, the only possible one
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
how do I make it so that is says a message and then it waits for the user to press a specific or any button
yes
normal
vanilla
normal python
Ik that
my_input = input("Type your favourite coffee")
input("Press enter to continue")
how do you highlight code that way?
like so
`highlight my code please`
but three times
ok ty
what if I want it to wait for the user to press spacebar?
from getkey import getkey, keys key = getkey() if key == keys.SPACE: do stuff
idk if this would work, i'm just giving you the general idea
wait, i think we can eval this
from getkey import getkey, keys
key = getkey()
if key == keys.
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
i think it was pip install
i just searched for it
real quick
i think there's something from windows called raw_input
nice
idk, i just wanted to give the guy his answer
do I need to say "Space" in all caps?
like you did here
oh okay
i'm not used to python, i just searched it
usually i'd search for space's keycode
and use that to check
also, i think you need to install the library to be able to use it
pip install getkey
do this in your command prompt
nice :D
File "TryingSomething.py", line 2, in <module>
from getkey import getkey, keys
ModuleNotFoundError: No module named 'getkey'
I get that error
oh no
Idk how to
yeah you don't have the library installed
open command prompt and write pip install getkey
does it matter in what file I do it?
ok, i'm going to the bathroom really quick :D
why -m?
I used to code in python
but that was a while ago
well what was your question?
oh
oh
it gave me
a huuuge red text
oh it is an error
ERROR: Command errored out with exit status 1:
command: 'D:\Python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py'"'"'; file='"'"'C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Maxen\AppData\Local\Temp\pip-pip-egg-info-4n9xbxsr'
cwd: C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py", line 37, in <module>
long_description=read_description(),
File "C:\Users\Maxen\AppData\Local\Temp\pip-install-fsprnbws\getkey\setup.py", line 11, in read_description
return fd.read()
File "D:\Python\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 876: character maps to <undefined>
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the 'D:\Python\python.exe -m pip install --upgrade pip' command.
wait
should I do cd \
and then go in to D:
and go there?
I don't really know what that means
I am kinda dumb
in notepad++
py -m pip install getkey
I tried the "D:\Python\python.exe -m pip install --upgrade pip" command
...
that was an easy way to put it
unlike how I described it
py -0
mine is 3.8.7
or something
I downloaded the 3.8 something
cute cat
cuteness overload
I don't really know
just feels weird to press enter
true
import keyboard
k = 0
while k < 1:
if keyboard.is_pressed('space'):
print('yes')
k += 1
yep
i just tested this
it works
wait
did it even easier
import keyboard
while True:
if keyboard.is_pressed('space'):
print('yes')
break
it will execute once and break
how?
do it!
hemlock you're cute
now i'm really gonna go to the bathroom then to sleep
since it's 00:48 lol
yes
okay
in pascal you'd do if "condition" then instruction
and pascal is a really old language
XD
a bit of drinking I see
which one is best to use
'' or ""
?
so ""
@median bone
hi
my name is john i am new python programmer
File "TryingSomething.py", line 2, in <module>
from getkey import getkey, keys
ModuleNotFoundError: No module named 'getkey'
do I need to download the library?
ew
@median bone are you afk?
hahaha
I'll just make them press enter
then it is like 7 hours earlier than it's here for me
good night :D
if I say something in an input then it saves for the next time I run the program
is it?
and if so
is it easy?
do you mean like in a txt file?
sooooo...
is it easy?
?
@rugged root
do you know if it is?
I'm sorry for spamming
but I gtg
do I need to buy the book
or is it an online thing?
the website isn't safe according to my browser
oh yea
okay
I was concerned bc I my "trusted" fiend here on dc tried to get my roblox cookie using a link
@rugged root trying to hack us
XD
jk
I gtg
goodnight
bye
okay
I will just dm you
one question what is pressure-vessel-launcher?
a launcher for a vessel designed to withstand pressure
au revoir
tot ziens
i use python2.3
Yep, he's drunk
f
The dress is a photograph that became a viral internet sensation on 26 February 2015, when viewers disagreed over whether the dress pictured was coloured black and royal blue, or white and gold. The phenomenon revealed differences in human colour perception, which have been the subject of ongoing scientific investigations into neuroscience and v...
I've seen it both ways 
Switching between them is called a 'gestalt shift'
I have a mysteriously purring curtain
is it a lion or a gorilla
duck and rabbit
The spinning dancer, also known as the silhouette illusion, is a kinetic, bistable, animated optical illusion originally distributed as a GIF animation showing a silhouette of a pirouetting female dancer. The illusion, created in 2003 by Japanese web designer Nobuyuki Kayahara, involves the apparent direction of motion of the figure. Some observ...
You should check out this book: https://press.princeton.edu/books/paperback/9780691165165/eye-and-brain
If you're interested how optical illusions work.
It's so interesting.
Cabbage can be nice 😄
Steamed with butter.
But when you overcook it it goes kind of sulphurous.

:cabbudge:
Post pictures of cabbage 😄

close enough right
It's hard to do because you have to adjust your focus weirdly.
You naturally want your focus to be really close if your eyes are crossed.
Bye 😄
The statue looks like it's floating
import numpy, os
from PIL import Image
os.system("cd /d C:\\users\\administrator\\desktop\\")
imarray = numpy.random.rand(4000,4000,3) * 255
im = Image.fromarray(imarray.astype('uint8')).convert('RGBA')
im.save('array.png')
that one's great
Alright, I'm off cya guys 👋
Yeah me too 😄
Sorry @whole bear 😄
and shut is left alone
somedataclass(x="y", y=None if not z else z)
from typing import Union, Optional
from dataclasses import dataclass
@dataclass
class somedataclass:
x: str
y: Optional[Union[str, None]]
Is z if z else None equivalent?
yo can i get verifed
@whole bear You need to go through the process described in the voice verification channel.
done it already mate
does anyone here use pycharm
me
hii
Hey Guys
i'm tryin to get permission to unlock my mic
Hey
Do you can talk in the Channel
Do they motivating each other to take drugs?
Um no...
They talkin about how some girl made it seem like he was with the way she said it
TBH
idk what they talkin about right now......
o
what are the help Channnel named after elements
like magnesium
XD
expect you land on your feet
like a cat
but on 2 feet
there are news about your separation
is that right
Hey OpaMist
sry
OpalMist
import json
class MyStinkyDatabase:
def __init__(self):
self.data = []
def dump(self):
with open('data.json', 'w') as file:
json.dump(file, self.data)
def load(self):
with open('data.json', 'r') as file:
self.data = json.load(file)```
Hey @dense ibex!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
!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.
!code
!code
@somber heath hi
i am tryin to get unlocked my mic
but i don't want to spam the chat
I'm very new in Python you know
i had a little bit trouble with the syntax
it's a little different
I code in other languages
thinks like count are different
len()
if you qant to the number of letters in a string
you can count it
in python a len() is enough
its great
[1,2,3].__len__()
looks like ninjacode
for me
at this point
Do you have any recommendations how to deep dive in it
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
oh i see
like that
what are the help-* channels about
like elemts
elements
ok got it
i thougt these are extentions
or librarys
hold a sec
dgraph
Help us caption and translate this video on Amara.org: http://www.amara.org/en/v/0N1/
Lecture by Professor Mehran Sahami for the Stanford Computer Science Department (CS106A). In the first lecture of the quarter, Professor Sahami provides an overview of the course and begins discussing computer programing.
CS106A is an Introduction to the engi...
h
import asyncio
import datetime
import aioconsole
async def show_time():
while True:
current_time = datetime.datetime.now().strftime('%H:%M:%S')
await aioconsole.aprint(f'\rDo you want {current_time}? ', end='')
await asyncio.sleep(1)
async def ask_input():
while True:
data = await aioconsole.ainput()
await aioconsole.aprint(f'Data received: {data}')
if data == 'quit':
break
async def main():
task1 = asyncio.create_task(show_time())
task2 = asyncio.create_task(ask_input())
await task2
asyncio.run(main())
Hello, I am not voice verified yet but I need some help with some basic python! It's for some high school notes, can anyone help?
Ok give me one moment, slow typer!
Ok so I have prewritten code that I need to modify lightly!
That link is the pyhton code thats prewritten.
This is my first instruction: In the code editor above, add the following line of code to line 4 to change the size of the turtle.
painter.turtlesize(3)
@somber heath
Well when i paste it the runner crashes, should I refresh? I'm scared if i resfresh i will lose all my progress?
YES like line 4 incorrect syntax
!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.
oh ok give me one moment, you just gave me the idea to just copy and paste all that code into a word document (cant believe i didnt think of that)
ok so now that i refreshed it no error is there, thats super weird
i do too! but our school claims its better so that people can code on anything including tablets and such
definitely!
they give ipad minis out hahahah to students
Well people seem to like the Apple ecosystem
Ok so my instructions state "Change the value in the parenthesis in forward and right and observe what happens when you run the program again.
Change the value in turtlesize and pensize and observe what happens when you run the program again.
Now, add a few more lines of code so that your turtle draws a square on the screen."
import turtle as trtl
painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
wn = trtl.Screen()
wn.mainloop()
thats the code
ok so what lines should i add so that it draws a sqaure?
copy and paste it three times more the "painter.forward(100)
painter.right(90)"
Well, our teacher mentioned them but he said python will be short and that we will move to html soon so he doesnt want to waste time and that he is only teachign pyhton because its required
he literally told us, get your code from github or form other people if you must
I have a problem with my arduino code
#include<Servo.h>
Servo serX;
Servo serY;
void setup() {
serX.attach(10);
serY.attach(11);
Serial.begin(9600);
Serial.setTimeout(10);
}
void loop() {
//lol
}
void serialEvent(){
serialData = Serial.readString();
serX.write(parseDataX(serialData));
serY.write(parseDataY(serialData));
}
int parseDataX (String data){
data.remove(data.indexOf("Y"));
data.remove(data.indexOf("X"), 1);
return data.toInt():
}
int parseDataY (String data){
data.remove(0, data.indexOf("Y") + 1);
return data.toInt();
}
for i in range(10):
print(i)```
OK so for the step of the square, I forgot to paste this
"Stick to methods. For example, a turtle object has a list of methods that can be used to manipulate the object, such as forward(), backward(), and so on."
Im actually in graphic design! But the school put us in a basic html course (that has a side focus for a few days on python) and I am using a school computer it blocks all instals
They put graphic design students in basic HTML so we can make the websites we design function.
I know CSS but not really good at HTML yet. I just couldn't understand why were learning python when that has nothing to do with web design. hahahah! i tried a usb drive and i put firefox ( i prefer it over chrome) and yes its a macbook
Oh right!!! But out teacher was saying we shouldnt bother learning the language because of that all of us are in graphic design and that in the workforce we will have programmers code what we design hahhahaa
Yeah, I am more artistic and I was never entirely into programming, and I think perhaps python will be something useful perhaps in a few years. It's just since were ending this section of the course (python) very soon, and we will be learning basic HTML, I don't want to tire myself learning something right now that won't be useful. I take AP english, ap history, and ap chemistry, so I have a busy plate hahahha, but like i said defintely in the future it would be something i would perhaps like to learn, but also I am learning 3d rendering, since our graphic design class wants us to learn maya and blender.
Well we model the renders, we have other teams that handle what you described that you may need to use algorithims. Like I am considered the modeling team, while the lighting and physics teams handle the more math based parts (they already know how to code hahahh)
well i am in graphic design to have web site designign as a skill, however I plan to work more based on 3d modeling and such. I hope to apply to a univeristy with a great faculty of arts
haha so i have designed environments, forests and such, and i use easy assets for lighting and physics so i dont need to know much about math ahaha, and i like to model animals sometimes too, fur is so time consuming
like omg modeling fur that is made to look like your in the wind, i modeled a wolf and it took 2 weeks
hahha
i
hope i can get
verified
ok i will just
send in shorter sentecnes
instead of large paragraphs
ok so what is the easier way
to do the square in python
ok I am going to see if there is perhaps aany guides or answer keys
import turtle
for i in range(360):
turtle.right(1)
turtle.forward(1)```
ahh thats super helpful thanks
alright i will see to edit it to make it draw a square
our teacher literally said, model each hair one by one.
i was like WHAT
this could be done with shortcuts in 3 days
oh no i get it, i have tools installed in maya that let me do things quickly trust me
like with the forest
i can copy and paste trees
YES
maya tools are a god send
i love art hahah you can make all your imganiation appear on a page or program
like its amazing
yes in that way art and codign are simlar hahaha
your the bob ross for code hahahaha
i defintely think coding is super cool, i see why people love it! like and similar to how people view poeple into art as weird and always in another world is the same way how some view sciene geeks and programmers in their code.
Youtubers Corey Schafer and Sentdex.
Django, Flask, Perlin noise, Worley noise, SQL databases.
L-systems.
Line-line intersections
l-system in blender: https://www.youtube.com/watch?v=N-fNCdjNztk
Hey @graceful nebula!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
you want help with this?
On osx and linux this is a lot easier, but its not too hard on windows just not something done regularly
import turtle as trtl
painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
painter.right(90)
painter.right(90)
painter.right(90)
wn = trtl.Screen()
wn.mainloop()
one ```
three
Yeah, you normally don't work with wheels often
It's usually internal to pip
import turtle as trtl
painter = trtl.Turtle()
painter.turtlesize(3)
painter.pensize(5)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
painter.forward(100)
painter.right(90)
wn = trtl.Screen()
wn.mainloop()
You'll probably have to uninstall 3.9 for it to not get a little off
uninstalling 3.9 and installing the correct version won't mess with any of my code, right?
for i in range(90):
turtle.right(1)
turtle.forward(1)
Shouldn't, provided you haven't installed other modules with pip already
you'll need to re-install those
its fine
no issues
Hi
Hi @whole bear and @hard wyvern
hello
my password thing is working
I made an accountmaker
or whatever it's called
it asks you what username and password you want
and then it saves it into a txt file
any tips for what I should add?
hey @steep juniper
hi @thorn moat
@hard wyvern
I have a question
nvm
yes
I am completely out of ideas
please give me ideas
@whole bear
@whole bear
what ideas
things to create
in python
you can help me lmao
you can create minecraft
btw
I am in the vc
so I can hear you
you don't need to type in the text channel
XD
do you guys have any ideas?
can you send the questions
I want to see them
byeeee!
bai
x/50
With?
Windows right?
You should have pip. Do py -m pip install <module you want to install here>
Have to do the py -m bit before it
No problem!
hey guys
can someone help me
I can't run code in atom
Mr Hemlock
do you know anything about that?
oh
okay
hello
guys
hello
good what about u
ok
how can i get video role sir
@rugged root
Check out the #voice-verification channel. That'll tell you what you need to know
no I am talking video role not voice role @rugged root
ok
so there is no way to earn it like voice role
Not currently. I'm trying to devise a system that may work, but as of right now I only grant it temporarily to people who are getting help or are being helped by me so I can moderate it
How to test classes using pytest?



