#voice-chat-text-0
1 messages ยท Page 726 of 1
first I looked at all the steps I was already doing when I did it by hand
I wrote them down on a bit of paper
then I looked if the process could be simplified any by removing some steps
then I broke down those steps into things that a computer could do
then I translated them from English instructions into Python code
hum that is a good example
so if you didnt know where to start on the python code
what would you do
google it
I have a clear idea in my head what I wanna do, in English
since it's in small steps, if I get stuck on one step, I google that individual step
what should I use
for what?
to find what I do wrong or find codes
you're going to have to be more specific
like a website that u typically use
those are two completely different things
to find codes
see idk if i am using the right word
cuz im not too familiar with it
for Python code examples, I generally look in the Python documentation
stackoverflow helps too
stackoverflow I prefer to use for solving problems
umm
wow, they allowed streaming now. niceee
is there things I need to know that will help me start
@waxen mauve why don't you do a basic Python course
I did
that'll take you through every single one of the things I just told you
oh?
which one
can't have been a very good one or you'd have known this
ah
if you're interested, this is the best python course I know of
incidentally, it's free
ok look ove this
over this
can u explain to me what he is doing on number 3
what does that doe
it's a comment, it "does" nothing, but makes the code more readable for others
Ight thx yall
is there something else I should watch before starting the course
to learn about computer science in general
nope, just start
ight thx
hyderabad and bangalore
I asked what people from Kolkata think about Mother Teresa.
i dont know
@alpine delta Some of the first things I suggest to people is to watch youtube tutorials. Corey Schafer chief among them. The other is to read through the python documentation at python.org, specifically the downloadable version.
Also
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thx
As to the downloadable docs, located on the documentation page in the upper left, there's a pdf collection in a zip that I like. In that is library.pdf, which I consider to be the Python bible.
First, you would select your IDE, your integrated development environment. You don't need one, but it can help. It's basically a bit of software that makes writing and running your code easier. You'll mostly hear about three. IDLE, which is Python's native editor, Pycharm and Visual Studio (VS) Code.
IDLE is your basic, no-frills IDE. I use it because I don't have to muck around with anything complicated in order to get it to work and because my computer is a potato.
The other two are fancier.
People like them.
Manners maketh man
@tame nexus If you could not send me DMs unless you want to say something to me as an aside, that would be preferable. ๐
I have not expressed any interest in joining your discord server, so please don't send me anything like that again. ๐
for sure!
House Designing - girl
age 7: everything should be pink
age 15: i want a lot of decorative things
age 25: put this here and that there. hmm. no the other way around
age 60: you shouldn't imagine moving that to anywhere it should be right there
Delta time
b = a + datetime.timedelta(seconds=3)
b = a + datetime.timedelta(hours=1)
hours = int(input('enter no of hours:'))
Same for seconds and minutes
@graceful nebula ?
@graceful nebula are you there?
i'm getting help in a channel that shares screens
Can I give you the whole code? @graceful nebula
sure
Ghost ping huh
lol
Haha
there is a youtuber same name as u have
@hard wyvern hi
import random
import turtle
from typing import List, Tuple
class Racer:
def __init__(self, name: str, colour: str, x: int):
self.name = name
self.colour = colour
self._turtle = turtle.Turtle()
self._turtle.color(colour)
self._turtle.penup()
self._turtle.shape('turtle')
self._turtle.setheading(90)
self._turtle.setx(x)
self._turtle.sety(-250)
@property
def position(self) -> Tuple[float, float]:
return self._turtle.pos()
def move(self):
self._turtle.pendown()
self._turtle.forward(random.randrange(1, 20))
def delete(self):
self._turtle.clear()
def winner_dance(self):
self._turtle.penup()
self._turtle.setpos(0, 0)
self._turtle.shapesize(5, 5, 12)
for _ in range(20):
if random.randint(0,1):
self._turtle.left(random.randint(45, 90))
else:
self._turtle.right(random.randint(45, 90))
def race(participants: List[Racer]) -> Racer:
while True:
for racer in participants:
racer.move()
if racer.position[1] > 200:
return racer
width, height = 500, 500
turtle.screensize(width, height)
my_racers = [
Racer("Lightning McQueen", "Red", (width//5)*-2),
Racer("Troybert", "Blue", (width//5)*-1),
Racer("Eco Warrior", "Green", (width//5)*0),
Racer("Ninja Pingu", "Black", (width//5)*1),
Racer("Privlidged", "Grey", (width//5)*2)
]
winner = race(my_racers)
print(f"The winner was: {winner.name}")
my_racers.remove(winner)
for racer in my_racers:
racer.delete()
winner.winner_dance()
# Output to file
with open('scores.txt', 'w') as f:
f.write(winner.name)
Hi, can someone please help me with a simple fastapi question
don't drag jesus in your mess, ๐
21 jump street joke
from typing import Optional
from fastapi import FastAPI
from pydantic import BaseModel
class Item(BaseModel):
name: str
description: Optional[str] = None
price: float
tax: Optional[float] = None
app = FastAPI()
@app.post("/items/")
async def create_item(item: Item):
return item
I need a status code, response body and request body
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.
class Racer():
pass
class Race():
def __init__(self, participants):
self.participants= participants
def race(self):
# racing code here
self.losers = [all losing racers]
self.winner = racer
racer.winner_dance()
return racer
my_racers = [racer, racer, racer]
race1 = Race(my_racers)
race1.race()
race2 = Race(race1.losers)
race2.race()
I'll be back
Output may refer to:
The information produced by a computer, see Input/output
An output state of a system, see state (computer science)
Output (economics), the amount of goods and services produced
Gross output in economics, the value of net output or GDP plus intermediate consumption
Net output in economics, the gross revenue from production l...
@faint ermine your voice sounds funny))))
could you give me a link to the library.pdf pls?
you don't print it out
you read it
:))
oh ok
ty
nah i found this earlier but you said something about the upper left corner
and got confused a bit :))
ok ty
i'm gonna freaking read
all of this
i want to read it all
why not?
because it's frickin huge
even if you don't learn all the information from it
you'll have an idea
of what you're talking about
right?
the thing is
one of the pdf's, which is the largest
has like 250 pages
nah
this is c-api
oh library.pdf is 9 times bigger
you could type help("<insert-mod-name>") in cmd after opening py repl
honestly i want to read over half of it at least
because i'm 16
and it's time i get serious about programming
because i've been slacking a lot
i mean
Python is really good with forcing documentation automatically.
i practiced solving problems
but it seems hard for me to work with api's
and stuff
that's what i mainly want to read about
At least documentation of a sort.
rly?
anyway, i still need practice on the syntax
hm ok
i mean i'll still read it
let's say i don't get it now
but someday i'll remember it
and understand it
the sooner i know some things
the better
no, no
that's not what i'm thinking
i'm thinking that after reading all of it
i'll at least be able to solve basic problems faster
oof
it's hard
to understand
other's code
like
omg
oh ok
Haha I tried and tried and gave up
oooooh ok
so basically
git is the tool you use to manage code
and github is the platform
you post this code on
?
Git is the CLI
oh ok
https://github.com/python/cpython <-- the official py repo (cpython) for example
btw what should I do now?
like
i need to work on small problems, for my exams
but
besides that
should I work on harder problems or do some projects (apps)?
"If you want to create issues..." Troublemakers, eh?
theyre probably 20-40
Older than the sun.
hehe
Hi
yes
Can someone please help me with a issue
from typing import Optional
from fastapi import FastAPI
from pydantic import BaseModel
class Item(BaseModel):
name: str
description: Optional[str] = None
price: float
tax: Optional[float] = None
app = FastAPI()
@app.post("/items/")
async def create_item(item: Item):
return item
I need a status code, response body and request body
It's a API related issue
Might I suggest that you ask this in #python-discussion
Okay, sorry.
this chat is meant for people in the voice chat
Ok
actually best is to ask in #โ๏ฝhow-to-get-help
Bye guys
Heya
Get mad about โMicrochipโ tracking them while posting about it on Facebook with full location permission On their phone
Ceiling wax.
Ooo I like that one
how to share screen
@pure path
I'm just curious
its showing that I'm not allowed?
We disabled it since we had little twits streaming porn
oof
So I enable it for people that I'm helping
alright
wow 8 admins online
the first time I'm seeing these many admins online
there are a total of 10 admins iirc
Why does discord make this difficult
make what difficult?
guys somebody talk about something
what's the code for?
I mean, you're not wrong
What's it doing? I'll be up there in a bit
thank you! @gentle flint
@rugged root maybe just explain that try is like him/her picking up a box, but if the box is too big, then you cannot do that
exception is: if you cannot do that then say, "ow boy I cannot pick up this box"
ow that's fine, just hoping to give you a hand
Webhook documentation is awful
using a bot?
@amber raptor
Nope, webhook
good conversation with people, go help someone out or have discussion with people in off-topic channels, you will hit way too lower number quickly by doing that
why does code help has 6/5 people lol
ye
but thats only for admins
subprocess.Popen([r'C:\Users%USERPROFILE%\AppData\Roaming\Zoom\bin\Zoom.exe'])
what are u trying to do again?
auth = Auth(public_key=os.getenv('CLIENT_PUBLIC_KEY'))
zoom automation
os.environ dict of environment variables
time to learn docker
Recommendation, don't use python alpine
@faint ermine https://youtu.be/zuDtACzKGRs
Buy the Beer Boot at Vat19: https://www.vat19.com/item/giant-glass-beer-boot?adid=youtube
Please subscribe to our channel: โชhttp://www.youtube.com/user/vat19comโฌ
Hundreds more curiously awesome products at:
http://www.vat19.com/?adid=youtube
Das Booooot! There's just something exhilarating about knocking back a few cold on...
@syncchat.route('/dashboard')
def dashboard():
if session.get('uuid') is not None:
try:
session['username'] = getUsername(session['uuid'])
session['discriminator'] = getDiscriminator(session['uuid'])
session['avatarUrl'] = getAvatarUrl(session['uuid'])
return render_template('dashboard.html')
except:
return redirect('/login')
return redirect('/login')
@syncchat.route('/dashboard/<guild-id>')
def guilds(id):
if session.get('uuid') is None:
return redirect('/login')
can u have multiple run command on docker?
How do you mean?
here @candid venture
ha hemlock using the real pythons example
meme
def do_twice(func):
def wrapper_do_twice(*args, **kwargs):
func(*args, **kwargs)
func(*args, **kwargs)
return wrapper_do_twice
def derp():
print("derp")
really hemlock
def do_twice(func):
def wrapper_do_twice():
func()
func()
return wrapper_do_twice
the same thing
!e
def decorator_example(func):
print("Entering outer wrapper\n")
def wrapper(*args, **kwargs):
print("Entering inner wrapper\n")
func()
print("Exiting inner wrapper\n")
print("Exiting outer wrapper\n")
return wrapper
@decorator_example
def example():
print("Inside the wrapped funciton\n")
example()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Entering outer wrapper
002 |
003 | Exiting outer wrapper
004 |
005 | Entering inner wrapper
006 |
007 | Inside the wrapped funciton
008 |
009 | Exiting inner wrapper
huh
i wasn't listening
i was watching this vid https://www.youtube.com/watch?v=gAkwW2tuIqE&t=135s
A complete introduction to Docker. Learn how to Dockerize a Node.js and run manage multiple containers with Docker Compose. https://fireship.io/lessons/docker-basics-tutorial-nodejs
00:00 What is Docker?
01:54 Installation & Tooling
02:40 Dockerfile
06:06 Build an Image
07:12 Run a Container
08:52 Debugging
09:35 Docker Compose
Source code htt...
thx lol, i have yet to learn a lot lot lot lot
ye but some people know a lot
i.e - eivl, and salt die
Create a Docker Container on Linode right now w/ $100 credit: https://bit.ly/nc_linode
*Sponsored by Linode
โก๏ธCheckout ALL my training at CBT Nuggets: http://bit.ly/nc-cbt
0:55 โฉ What is a Virtual Machine?
4:12 โฉ What is Docker?
6:41 โฉ FREE DOCKER LAB
16:50 โฉ Why Docker?
FREE Docker lab on Linode: ($20 credit): https://linode.com...
bruh he knows the entire python data model like memorizied
eivl has 27 years of exp with just programming
that's insane
ye
this is my note on him
Sorry to bail in the middle of my tangent, just realized what time it was so I have to get this done
week 2 of no anti depressant or anxiety med
good luck g
thank you sire
dont ever call me that again
d
:x: According to my records, this user already has a mute infraction. See infraction #26165.
:incoming_envelope: :ok_hand: applied mute to @stiff tendon until 2021-01-05 17:44 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
guys
are you here?
def shot(k,a,b,c):
checker = True
while (a!=0) and (b!=0) and (c!=0):
if (a>=b) and (a>=c):
k += 1
a -= 1
elif (b>=a) and (b>=c):
k += 1
b -= 1
elif (c>=a) and (c>=b):
k += 1
c -= 1
if k == 7:
a -= 1
b -= 1
c -= 1
k = 0
if (a==0) and (b==0) and (c==0):
checker = False
print('YES')
if checker == True:
print('NO')
how can i shorten this?
sup
!server
Server information
Created: 3 years, 11 months and 28 days ago
Voice region: europe
Features: COMMUNITY, PARTNERED, INVITE_SPLASH, BANNER, RELAY_ENABLED, NEWS, DISCOVERABLE, VANITY_URL, ANIMATED_ICON, WELCOME_SCREEN_ENABLED, VIP_REGIONS, MEMBER_VERIFICATION_GATE_ENABLED, PREVIEW_ENABLED
Channel counts
Category channels: 27
News channels: 8
Text channels: 151
Voice channels: 12
Staff channels: 63
Member counts
Members: 127,674
Staff members: 86
Roles: 80
Member statuses
39,451
88,223
40k online yikes
imagine someone pingingin 40k people like lemon did, it would be halirious
!e
a = ['1','2','3']
print(list(map(int, a)))
@pure path :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3]
!e
list(map(print, ["you", "suck", "nerd"]))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | you
002 | suck
003 | nerd
come back to me when you zip a map to map a zip
!d zip
zip(*iterables)```
Make an iterator that aggregates elements from each of the iterables.
Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th element from each of the argument sequences or iterables. The iterator stops when the shortest input iterable is exhausted. With a single iterable argument, it returns an iterator of 1-tuples. With no arguments, it returns an empty iterator. Equivalent to:... [read more](https://docs.python.org/3/library/functions.html#zip)
hey this is me building up to 50 messages in chat
My friend and I just got through the pandas course on dataquest.io
be careful not to get banned and you will have to restart.
alright
Logging Cookbook Author Vinay Sajip <vinay_sajip at red-dove dot com> This page contains a number of recipes related to logging, which have been found useful in the past. Using logging in multiple modules Multiple calls to logging.getLogger('someLogger') return a reference to the same logger object. This is true not only within the same module, but also across modules as long as it is in the same Python interpreter process. It is true for references to the same object; additionally, [...]```
None
hello
the question ?
you can eat wood?
What we learned today is to always use df.loc[] explicitly
why is it so queit in vc
huh?
I dont know where to put the code at the bottom for it to work
I dont know what I gotta change in my code for It to work
we also learned we don't need to use .loc for series in pandas but we decided we're going to anyway
Anyone wanna type race?
ok
let me get the link
please i need help
who the blue guy
I'm blue
I dont know what I need to change in my code to make it work, I'm trying to get it to count up once per loop and set that as the y
125
I got 72 again
u r in grde 4 ?
68
Jag please help me
typeracer mine highest is 107
78
I started learning touch typing in February of 2020 with typingclub.com
like my highest on mkonkeytype is 125
please the person in my help room isnt helping
I got 68 on that one
66
should look at keybr. Pretty useful
oh no I got 65 on that one
@rugged root u know the highest on monketype is 250 wpm
@pure path yeah I did that the person there isnt helping
91 cool
^ you can just try again another day
oh I can join just not talk
yes
linus is a fast typer among the staff
I'm on my way to 50
5th
y'all take hand roids?
no but i am getting a new keyboard tomorrow
I'm typing with neuralink
Ohh @vivid palm jack types on that
yall hacking
@vivid palm what's your score on monketype?
I got 69 nice
3rd
oh 130 on 30 sec
what are those?
this whole fall/winter lol
fake nails
which i finally removed this week
so hopefully i can get improve my average?
ye
oh how are u able to type on that
i honestly don't know if i'll be able to use a 40% regularly lol.
neuralink it
@vivid palm , is that glass or acrylic?
wait ima go do something
working my way to 50 to have my voice heard
almost close to being there
metal
neuromorphic
I gotta be at 30 messages by now
looks aesthetic, but dust will be a pain
^ btw you also have to have been on the server for like 3 days
and there's another requirement for duration of visit or smth
why always .loc?
.loc attribute was annoying at first
what is .loc ?
but we got the hang of it
i've heard of .lock not .loc
df.loc[''] in pandas to select columns of data
brb
Bye!
im dpwm to race
i am opening an issue on seasonalbot
im white
made an account
guys ij made my agent super speedy
no you donโt want to learn
les goooo
im zargnar
typing is bad i use my mouse for everything
tts
?
last one
github commands?
no it's an issue
Looking now
There's a problem with this already, and it's the latency of the Discord API
2nd
wdym?
So the bot has to send the message and check when the test starts by sending the words. It then has to check the message and grab its contents. Both of these rely on the API receiving and time stamping them properly
oh it wont' send the words
the words are gonna be fit into an image
and then it would send that image at once
Same issue applies, whether it's a text or an image
I don't get the issue
maybe we could move to #dev-contrib and you could explain it there?
I'm done y'all got too may 90s
technique squidward!!
monketype is broken in safari
yall using 3 hands huh?
cya
gg's
g to the g
right the bot could wait 1s
120 wpm is crazy
wait so you are saying that the time that it takes the bot to send the message might delay and it would throw of the calculation?
I feel like I've been in this server for more than 3 days
KimCockerSpaniel
I should be close to 50 messages with this one adding another to the goal
async hard
get 69
seems legit
noiice
Oh @rugged root ik the fix to that
same here
wait till I get bionic hands
so what happens is that when the bot sends the message it doesn't start the test, the test actually starts when the user reacts to that message
yall typing neurons look like the right one
doesnt the bot dm you?
myelinated axons
thicc axons
hmmm let me think
Band name
gg's guys. thanx for the invite . just got done studying with @whole bear for the day. will be on later ๐
Back in a bit
yeah
I'd absolutely listen to a band named that
I am getting an error while trying to setup seasonal bot
oh what do that be
i don't see anything related to that in contributing guide
ok so what i do again
I'm the complete opposite lol
sure thing
i havn't used anything beside vsc
hmm
although vim certainly has a bit of a learning curve
not as bad as emacs tho kekw
also vsc vim has some bugs, so sometimes is just works better in shell
USE_FAKEREDIS=true
Hello
So you see all the edits on a comment Hemlock?
If so, I want to apologise for how often I edit my posts ๐
Ah right ok
I'm sure I do more than you with regards to message edits. And in fairness, they're just in the channel. We rarely are actively watching it unless we know some d-bag is ghost pinging or being hateful and quickly deleting it or something
My approach to writing is to get roughly the right words out then edit them into the right order afterwards ๐
Mine is to carefully craft my thoughts and then realize I still sound like a raving lunatic
is here some one of you italian?
Sound pretty dry
I can remember literally falling asleep in software engineering lectures.
same
same haha
no but i like pasta
Yeah, but people do do that ๐
David Lynch?
Also everywhere in America is miles away from everywhere else
Bleh, forgot I had to do shredding. I'll likely head home right after
Hi guys
Yo
they would
Oh
if gas would be 5 dollars per gallon people wouldn't be like: "oh i have to walk 100 meters, let me get out my car"
I got a Poland friend and he is super smart
+public transportation is much more efficient from my perspective
like
you burn a lot to make a train move, but you transport much more people
i think it's worth it
I agree , I use public transport to get into college
i wish to do that as well
otherwise I have to walk miles
Not sure I follow... ๐
Lol
much faster, don't have to wait in traffic
i'm following
it's so fun staying with you
i'm just hanging out with people on voice to hear more english
since english isn't my native language
same
me? I'm from south africa
Nice
nice :D
@amber raptor But there are some people behind which takes a lot of money from public
which you need to find
oh ok xD
Also reduce minimum parking spaces required?
if you think like that
of course we're fucked
if noone does anything
of course we're fucked
@gentle merlin How do you know?
one person can't change the world
@severe elm Nice answer
xD
i mean, not the whole code, just the definition
show the code
2sec
def shot(k,a,b,c):
checker = True
while (a!=0) and (b!=0) and (c!=0):
if (a>=b) and (a>=c):
k += 1
a -= 1
elif (b>=a) and (b>=c):
k += 1
b -= 1
elif (c>=a) and (c>=b):
k += 1
c -= 1
if k == 7:
a -= 1
b -= 1
c -= 1
k = 0
if (a==0) and (b==0) and (c==0):
checker = False
print('YES')
if checker == True:
print('NO')
omg how do you not melt at 40 degrees
oh it's fahrenheit
it would've been funny if you said kelvin
:))
102 degrees fahrenheit?
idk man i use celsius :P
hahahaha
ok so can i shorten that code?
xD
so if i want to do a -= 1, b -= 1, c -= 1
can i do it all at once?
Just put a nuclear reactor in your car: https://en.wikipedia.org/wiki/Ford_Nucleon
Also brb ๐
I wish I could talk in the channel to show you how a spaniard pronounces mai hahaha
Where has this conversation gone
in the 2 minutes I was away ๐
English
Alright, that explains it ๐
@spark eagle Check DM lol
rackoon cartoon
Oh dear no
i was thinking of buying this domain name
Like experts exchange
do it
lol
guys
did you check
my status?
:))))))))
so nobody checked my status
:(
God no
I lived in Japan for 3 years
:OOOO cool
how was it?
did you accomplish all my dreams while you were there?
why?
lmao
i'll hit you with the
no, u
ok so
it's 00:37pm
and i kind of want to go to sleep
don't wanna mess up my sleep schedule again
so
bye bye guys
pzzz
You can also do it in the shell
On unix.
Erm, ok
Bye @tiny seal
Sorry for the ping
@faint ermine hey can you message me when your online. I had a few questions for you
Hey @vestal mason is it something someone else could help you with?
Because feel free to claim a help channel if so.
@whole bear, it was more so about a conversation we were having about making request to load JavaScript
Erm, I have a mic
not sure if I'm going to talk though ๐
Ah right
Ah, is that in relation to the big hack recently?
Oh right ๐
Yep
We're somewhere between the US and continental Europe
thanks to Thatcher ๐
Yep
I've always thought that a large part of security is just designing systems that are simple enough for people to use securely.
But idk, I skipped computer security at college so I probably shouldn't give my opinion ๐
Oh right. Is that differential privacy?
Yep @graceful nebula
Should be straightforward...
```python
```
like that
class Die:
def __init__(self, number: int):
self.number = number
def roll(self):
return randint(1, self.number)
def __repr__(self):
return f'D{self.number}'
d4 = Die(4)
d6 = Die(6)
d8 = Die(8)
d10 = Die(10)
d12 = Die(12)
d20 = Die(20)
d100 = Die(100)```
y = <number of rolls>
result = 0
for x in range(0,y):
result += roll_dice
result += <modifier>```
You're making rapid progress if you're already on to classes ๐
!e python import random y = 2 result = 0 for x in range(0,y): result += random.randint(1,6) result += 2 print(result)
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
14
!e python i = 0 for x in range(0,2): i += 1 print(i)
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
2
def roll_number_of_times(times:int, modifier:int = 0)```
hi, everyone. what is this "python bot" messages?
this discord channel has a built-in python interpreter?
!e print("Hello")
@whole bear :white_check_mark: Your eval job has completed with return code 0.
Hello
nice
Python puzzles?
class Rabbit:
#Built In
def __init__(self):
pass
#Private
def __private_function(self):
pass
#public
def public1(self):
pass
def public2(self):
return public1()```
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 3.9.1 (default, Dec 11 2020, 14:22:09)
002 | [GCC 8.3.0]
is the answer to this question no?
I'm not a language lawyer.
@whole bear from the looks of it you might already have enough messages.
really?
Did you join the server recently?
def roll_number_of_times(times:int, modifier:int = 0)
@whole bear nope
Try running the voiceverify command
i've been here for a while
for x in range(0,2):
i += 1
print(i)```
In the #voice-verification channel ๐
@graceful nebula are you following a tutorial?
ty @stuck furnace
I am using pycharm
@whole bear it is 1
See ya Rabbit ๐
Yeah, due to past issues...
Before my time here ๐
Pretty much.
So, you're making a text-based game @graceful nebula ?
Oh right.
def roll_dice(n):
x = random.randint(n)
print(x)
Did you get help writing the class?
Do you understand what it does?
I mean, for now it might be best to just use functions.
Classes usually come a little bit later on when learning Python.
You were in here the other day right?
Not sure what you mean sorry?
Oh ๐
Alright, and sum the result?
Btw, in case someone didn't already give you this link, check out our resources section:
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
def dice_roll(n_rolls, n_sides):
rolls = [0]*n_rolls
for i in range n_rolls:
rolls.append(rand_int(1, n_sides))
Here's my attempt:
import random
def role_dice(num_dice, num_sides):
total = 0
for die in range(num_dice):
total += random.randint(1, num_sides)
return total
```python
```
from random import randint
def dice_roll(n_rolls, n_sides):
rolls = []
for i in range(n_rolls):
rolls.append(randint(1, n_sides))
print(rolls)
dice_roll(3, 4)
Yep
from random import randint
def dice_roll(n_rolls, n_sides):
rolls = []
for i in range(n_rolls):
rolls.append(randint(1, n_sides))
print(rolls)
dice_roll(3, 4)
You can also execute code here @whole bear
print('hwllo world')
!eval ```python
print('hello world')
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
hello world
!eval
print('hwllo world')
@whole bear :white_check_mark: Your eval job has completed with return code 0.
hwllo world
hewwo wowwd
.uwu mr president, im drowning
mw pwesident, im dwowning
Tbh, if you just started learning yesterday, classes are bound to confuse you ๐
Nope, dropped out of uni.
Erm, it was a few years ago.
I got too stressed ๐
Fell behind, and couldn't catch up.
Have you ever tried Khan Academy @graceful nebula ?
I actually dropped out of sixth-form (like last two years of high-school), and KA helped be get back on track enough to apply to university.
Erm, because I'm dyslexic ๐
ur from england @stuck furnace ?
Yep ๐
nice, same
Yep ๐
Something goes wrong in my brain between the meaning of the word and the production of the spelling.
I spend far too much time doing programming puzzles ๐
Want an esoteric python puzzle?
I think it's getting to the point where python might get usurped soon.
Due to the language getting complicated by feature additions.
The mods are always looking out for people to make helpers. If you help out on the server a lot it will be noticed.
@stuck furnace ok nice thanks
I mostly just answer questions in the help channels.
I thought it was a wine-tasting term? ๐
You pretty much just have to read the whole file @whole bear
lmao im muted
with open('myfile') as file:
for linono, line in enumerate(file):
if lineno < 42:
continue
...
yeah
Ah, check the #voice-verification channel for info.
with open('myfile') as file:
for lineno, line in enumerate(file):
if lineno == 0:
continue
...
``` @whole bear
with open('myfile') as file:
contents = file.read()
all_but_first_line = '\n'.join(contents.splitlines()[1:])
not sure if im allowed to straight up ask but if one of yall can take a look at the question i asked in #๐คกhelp-banana that would be cool
fixed it ๐
also please watch my new movie
fixed the other error ๐
"King Richard" 2021 staring me, Will Smith
Please don't let my acting career die out like my marriage did
You're really committed to this roll (or is it role?)
Oh yeah ๐
Yeah, it kind of defeats the point...
Florida has pretty much already gained immunity but only after basically everybody got it and a ton of people died
Yang
ah
yeah I woulda voted yang
but they really had to make me vote trump
like why biden
yang was so good
in 2016 the democrats picked one of the only people that america hated as much as trump to run against him
it seemed like they did the same again
also anyone know how i can monetize a discord bot cuz im tryna chase that bag g
Talking politics in a text channel is risky lmao
Alright, I have to go.
Write a bot people want to pay for. Itโs very difficult road to travel.
See ya ๐ ๐
no I got that one down
well atleast the blueprint
but the process of making it able to purchase
Write pay system. Likely integrated with the bot.
@dry ocean
ah sick
aa
I do not know know how many more messages i have to send till i can vc but lettttssss goooooo
hey
@tidal salmon good question
Remember not to spam to get to 50 messages ๐
not spamming, just trying to have a nice conv
yup, that's us
Doing good, how about you @sweet talon ?
I'm doing great!
Glad to hear!
just got another project to do from my teacher!
python game but with a server!
never done this before
Wow
๐
That is pretty cool
i guess, but I have no idea how to do that
I was struggling to make a menu last time
so a server?
YouTube.com has some good videos that can help with game servers
Lol
"dr google is your best friend"
That is what I use for the most part

