#off-topic-lounge-text

1 messages Β· Page 26 of 1

cold lintel
#

Oh sorry, I need to make a correction.

#

Changed data to registros

#

Alright, did it work?

#

Nice πŸ˜„

#

No prob πŸ‘

ivory kernel
#

@ornate thistle

#

we are clear

cold lintel
#

@ornate thistle

#

Erm, one of the owners is called Lemon lemon_pleased

#

Could you use the python debugger?

#

You can't know in advanced which exceptions can be thrown unfortunately.

#

Due to the dynamic nature of Python.

#

Any class/function can raise any exception, essentially.

#

The best you can do is catch any exception with:

#
try:
    ...
except Exception as e:
    ...
#

Then inspect the value of e

primal bison
#

@warm hedge i want to know if there is a way that i can shuffle a string and have it reshuffled back to the original string

#

when it is required

warm hedge
#

you could create your own algorithm

#
string ----> your algorithm ----> shuffled string
shuffled string ----> reverse what your algorithm did ----> original string```
#

a simple algorithm could be like switching the first and the last letters

primal bison
#

yupp i tried but strings does not support item assignment this what i tried

warm hedge
#

what do you mean by item assignment

primal bison
#

like

#

wai

#

t

#
password = input(..)
for x in range(len(password)):
    password[x], password[x+1] = password[x+1], password[x]
#

i tried this

#

and it says strings does not support item assignment

warm hedge
#

string are immutable, you cannot change them unless you have a new variable

#

use lists instead

#

convert your string into a list

primal bison
#

Ohhk got that

#

and one more thing

warm hedge
#

for passwords, you could try an encryption library

#

like bcrypt

primal bison
#

Ohh cool that's what i wanna do

#

thanx man

warm hedge
#

look up cryptography in python

#

I don't have much exp with cryptography

primal bison
#

Yepp I'll do that

#

Ohh

#

btw thanx for the help

warm hedge
#

πŸ‘

ivory kernel
#

@keen sundial

keen sundial
#

basically

#

autoclicker

#

and i dont know how to turn it off

#

this is the code that i used

#

@ivory kernel

#

but it doesnt turn off

#

yea

#

yea sure

compact burrow
#

hi

#

yeah i can't no 50 msg yet

#

what u guys up to

#

i wanna talk πŸ˜„

#

haha

#

i m writing a crossroad python project

#

crossword *

#

thanks are you experienced with python?

#

sorry didnt quite catch that

#

what did u say?

#

Ohhh

#

what channel? help-me?

tender tangle
compact burrow
#

ah right

#

Hello

primal bison
#

welp, didnt know there were new rules implemented already - my bad!

#

and Hello!

compact burrow
#

How are you doing?

primal bison
#

Good, how are you?

compact burrow
#

Good also πŸ™‚

primal bison
#

I was actually trying to ask if there is anyone who has experience with web scraping APIs πŸ˜…

#

I need it for a school project

compact burrow
#

sorry that's not me πŸ˜› im pretty new to python

primal bison
#

oh same here hahaha

compact burrow
#

but maybe one of the helpers can help in the help-channels i tried sending mine there

primal bison
#

Yeah will try that one out, thank you and have a good evening / day πŸ˜„

compact burrow
#

you too πŸ™‚

primal bison
#

Can anyone help with some code I have for linear regression?

tender tangle
#

I know nothing about linear regression, sorry

primal bison
#

even though i cant vc could someone help

#

im in the help-iron zchannel

#

i mean

night kite
#

Halp

#

Where is the starting line? I would like to code.

tender tangle
#

@night kite ehhh?

#

starting line?

flat kestrel
#

\❄️

carmine skiff
#

could someone help with installing pygame?

primal bison
#

pip install pygame

#

@carmine skiff

#

put it into ur terminal and ur well on ur way

primal bison
#

@primal bison what do u need help with?

#

probably python

#

@primal bison there are a lot of online resources

#

u can get started with anyone of those

#

just install python on you machine and you should be good to go with the built in IDLE

#

so now start learning it either from youtube or from online docs

#

i prefer to learn it through youtube

#

Nope you have a lot to cover

#

first you need to master all the basics and then do some programs on your own based on them

#

and then move to upper level stuff

#

also try getting a text editor like vscode

graceful elk
primal bison
#

@graceful elk yea vim is not at all beginner friendly and takes a lot of time to get used to

graceful elk
#

true lol

primal bison
#

but its productive if u know how to use it

graceful elk
#

nah, i prefer sublime

graceful elk
#

64 bit

#

windows 8.1

#

@primal bison

#

yep

#

laptop

#

yes, but actually no

#

oh, what grade ?

#

same

stray rampart
#

damn so many people in vc rn

lethal lintel
#

@kindred kindle

primal bison
#

what r u guys discussing over in the chat

#

?

#

@severe flame

severe flame
#

?

carmine skiff
primal bison
#

pygame's input system is fucking pathetic

forest mountain
#

do any of you guys make simple game bots with python?

echo orbit
#

pygame~~'s input system~~ is fucking pathetic

pseudo charm
#

Try binding it with ur keyboard

timid fjordBOT
#

@burnt quail Please don't try to ping @everyone or @here. Your message has been removed. If you believe this was a mistake, please let staff know!

buoyant kestrel
#

py -m ensurepip @rain loom

#

py -m pip install <module here>

buoyant kestrel
#

!tvban 435582181633425410 1w As I said previously, spamming to get verified will not get you the verified role. As a result, I am extending the period that by 1 week. I do hope you'll participate in the server in a constructive manner.

timid fjordBOT
#

:x: According to my records, this user already has a voice_ban infraction. See infraction #22238.

buoyant kestrel
#

Oh well fair enough

orchid solar
#

hello]

#

my name is jade

boreal maple
#

hi

orchid solar
#

i have less than 50 messeges

#

hello

boreal maple
#

hai hai

orchid solar
#

so

#

what u watching

#

?

#

u watch anime

boreal maple
#

myself

orchid solar
#

?

#

loo

#

lol

#

??????

#

hey

#

hemlock??

buoyant kestrel
#

You do realize that you now have to wait 2 weeks until you can voice verify

orchid solar
#

i see

buoyant kestrel
#

Because of said spamming

orchid solar
#

ohh

#

so now i have to wait even more?

buoyant kestrel
#

Yes

orchid solar
#

jeez

buoyant kestrel
#

That is indeed how that works

#

Well I did warn you

orchid solar
#

😭

buoyant kestrel
orchid solar
#

if i leave the channel

#

and join again

#

?

#

does it work

buoyant kestrel
#

If it were that easy to work around it do you really think we'd bother implementing it?

orchid solar
#

i see

#

i was inactive for a long time

#

but now i dont have classes anymore so i can stay here

#

but now i cant

buoyant kestrel
#

You don't have to be talking in VC in order to enjoy the server

orchid solar
#

i know

#

lol

#

ohh

#

u use linux

#

?

#

???

#

@buoyant kestrel can you help me out with something

#

?

buoyant kestrel
#

With what?

#

What's your question, Jade?

orchid solar
#

im running kde

#

and i need something to make the focused window have a border

#

do you know how to do that?

buoyant kestrel
orchid solar
#

you can speak in voice

buoyant kestrel
#

They should be able to help you

orchid solar
#

im listening

#

ok

#

thaks

rain loom
#

heyyy @buoyant kestrel

#

i have another doubt

#

mind if i ask u?

buoyant kestrel
#

py -m pyuic5

#

py -m pip install <module name>

#

py -m pip list

#

py -m pip install pyqt5-tools~=5.15

#

py -m pip install -U pyqt5-tools~=5.15

boreal maple
buoyant kestrel
#

%appdata%

#

py -c "import os, sys; print(os.path.dirname(sys.executable))"

#

py -m pyuic5

graceful elk
#

bye @buoyant kestrel

frosty spoke
#

anyone here?

graceful elk
#

@queen hatch which os ?

queen hatch
#

Archlinux

primal bison
#

Why cant i voice verify

#

I have sent more than 50 messages

#

I have 300+

timber depot
#

hai

cedar ginkgo
#

@primal bison lol

silk stream
#

Hi

#

In the Django admin section.

#

When I try to submit a form.

#

Ok.

#

I thought that's where I was posting, sorry.

primal bison
#

Helloğ

primal bison
#

damn no one have used this channel in 2 days

undone yoke
#

;-;

warm hedge
#

dunder getattr?

carmine current
#

!e ```py
print(any([None, 12, 3]))

timid fjordBOT
#

@carmine current :white_check_mark: Your eval job has completed with return code 0.

True
buoyant kestrel
carmine current
#

!e ```py
def myproperty(func):
func._property_value = None

def wrapper(self, *args, **kwargs):
    if not (func._property_value is None):
        print("cached")
        return func._property_value

    val = func(self, *args, **kwargs)
    func._property_value = val
    if val is None:
        self.unload()
    return val
return property(wrapper)

class A():
@myproperty
def a(self):
return "a"

def unload(self):
    print("unloaded")

a = A()
a.a
a.a
a.a

timid fjordBOT
#

@carmine current :white_check_mark: Your eval job has completed with return code 0.

001 | cached
002 | cached
warm hedge
carmine current
fallen bobcat
#

o/

warm hedge
#

o/

silver trout
#

o/

young imp
#

o/

weak mortar
#

Yo

shadow garnet
#

how can i get the permissions to general voice chat?

primal bison
#

@shadow garnet 50 msgs

#

3 sessions of 10 min each in the general voice channel

#

and u need to be a member for at least 3 days

#

then go to the #voice-verify channel and type !voiceverify

primal bison
#

why cant I speak

#

this is annying

#

omg

#

help me

#

pls

#

people

rapid geode
#

yo

timber depot
#

hai

night lily
#

@prime jay You can pop down here, if you like. πŸ™‚

prime jay
#

check this for me please

night lily
#

To what purpose?

prime jay
#

<p> this is the text </p>

#

<strong> bold </strong>

young imp
#

you wanna remove the tags?

prime jay
#

this will become bold

carmine current
manic dagger
#

Hi guys, what happens is that I am trying to get the user to enter a list of numbers and that the result of this is when the user puts '#', at this moment as I have the code when entering the data it works for me and it adds me (city, duration and price)
but it is having an error in the dialed number since it only prints the first number entered by the user
could you help me with this

compact crescent
#

I need help

#

With my code

#

also i cant speak in the voice channel still

prime jay
#

gosh

graceful elk
#

@drifting orbit damn, that quality though

supple willow
#

i need help downloading modules in cmd prompt

primal bison
plush raptor
#

Failed to voice verify.

wet minnow
#

Nice dp @plush raptor

#

Can u send me the pic?

plush raptor
#

Which one?

wet minnow
#

Right now

rain loom
#

so basically i trying to create a billing form in pyqt5
where im supposed to add all the numbers present in a column
and print it as a total in a label
how am i supposed to do this in pyqt5
can someone pls help me with this
its really urgent

subtle plume
#

df = pd.read_csv(io.StringIO(uploded['googleplaystore.xlsx'].decode('utf-8')))

#

i am gettin a utf 8 codec error

primal bison
#

@subtle plume Why are you using io.StringIO and .decode() for reading the CSV?

subtle plume
#

well i saw it on a website and i am not much into coding so i dont know ....

#

i just copied this code line

primal bison
#

@subtle plume Well there probably is a reason for it. Can you manually export the "googleplaystore.xlsx" to a csv file?

Then just read the data in by:
df = pd.read_csv('file.csv')

subtle plume
#

actually i tried it but the thing is i am doing this in google colab so i was not able to do it the way you mentioned above

#

if you could please guid me on how i can manually convert it into a csv file..

primal bison
#

@subtle plume If you can download the .xlsx and open it on Excel if you are on winsows and save it as a .csv file.

#

@subtle plume I am pretty sure there is a read_excel function as well.

subtle plume
#

Ok thanks

weak mortar
#

What's Up Everybidy

woeful bough
#

hey'

candid ravine
#

@night lily

night lily
#

Is this a Pandas course?

candid ravine
#

Yup

night lily
#

It's not a library I've used, before, I'm afraid. Have you talked to the #data-science-and-ml people?

#

What, specifically are you needing help with, the working with Pandas side of things, or more the math of it all?

candid ravine
#

Everything

#

Its not a library I’ve used before

#

Like you

night lily
#

@candid ravine For if you haven't yet seen these.

#

Corey Schafer's tutorials are worth their weight in gold...if they had weight.

candid ravine
#

Yes i watch a lot of videos but still have problems in coding

night lily
#

Which they don't, but we can use our imagination.

#

@candid ravine How new are you to Python?

candid ravine
#

Just the principles' course

night lily
#

Would you like me to explain any specific Python concepts?

candid ravine
#

My problem just with pandas

#

Do you know anyone who can help me with this homework?

#

I don't want to repetitionπŸ˜‚

amber pike
#

!rule 5

timid fjordBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.

amber pike
#

just an fyi

buoyant kestrel
#

@amber pike We can help, just not give the answers

amber pike
#

ik

buoyant kestrel
#

Just for clarification

#

Right, sorry

#

Force of habit

amber pike
#

all good

night lily
#

@candid ravine As above, I would maybe poke your head into the data-science channel or grab a help channel, though I would recommend going through the Corey Schafer video series I linked. If that doesn't suit, there are others which you may find easier to follow. I would also suggest reading the Pandas documentation, itself.

candid ravine
#

@night lily thanks for your time πŸ˜…

night lily
#

@candid ravine I'm sorry I couldn't be of more direct assistance. πŸ™‚

candid ravine
#

It's okay. Thank you again @night lily

weak mortar
#

Hello

primal bison
#

ho

#

la

#

how are you

#

lmao

#

!rule

timid fjordBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

primal bison
#

!rule 1

timid fjordBOT
primal bison
#

yessir

subtle violet
#

!rule 2

timid fjordBOT
subtle violet
#

!rule 3

timid fjordBOT
#

3. Listen to and respect staff members and their instructions.

subtle violet
#

!rule 100

timid fjordBOT
#

:x: Invalid rule indices: 100

carmine current
#

@subtle violet please use #bot-commands

buoyant kestrel
#

@subtle violet If you're going to be using a lot of commands- damn it laund

#

Too damn fast

subtle violet
#

my bad

buoyant kestrel
#

No worries!

carmine current
#

@vestal pagoda

#
@bot.command()
@commands.has_role(267628507062992896)
async def ping(ctx):
    await ctx.send("pong")
undone yoke
#

i think you can point it to the python exe

#

and the python file

#

so thats cool

carmine current
orchid solar
#

hello

#

yay

#

im back

wary jay
#

hii

midnight shadow
#
weight = int(input("Enter your Weight: "))

mass_type = input("(L)bs or (K)g")

if mass_type == 'L':
    print(weight)
elif mass_type == 'l':
    print(weight)
else:
    print(weight * 0.453592)
#

^
i was writing this

#

adn it works fine but it seems redundant

#
weight = int(input("Enter your Weight: "))

mass_type = input("(L)bs or (K)g")

if mass_type == 'L' or 'l':
    print(weight)
else:
    print(weight * 0.453592)

#

then when I wrote this l or L entries would work as they just re entered the weight

#

but the else did not seem to work is there a reason why a

or in an if statment will give me issues

#

ok sorry

#

does my question make sense?

#

i asked above

#

ooooh i see

#

is there a way to combine?

#

insteed of spliting

#

what are you looking for i can possiblyhelp

#

search it to help you

night lily
#

mass_type = input("(L)bs or (K)g").upper()

#

if mass_type == 'L':

midnight shadow
#

yes

#

i see one second my freind came give me 10 seconds

#

im back

night lily
#

if mass_type in ('l', 'L'):

#

if mass_type == 'l' or mass_type == 'L':

midnight shadow
#

ok

#

one second

#

if mass_type in ('l', 'L'):

#

I am testing this

#

ok

#

why change int to float again

#

oooh

#

i see that makes sense

#

makes sense

#

ok

#

so basicly i should

  1. if for l or L

  2. elif for K or k

  3. else this try agian this is not valid input

#

would those 3 options in the if statmnet make sense?

#

thank you

night lily
#
def my_input(text=''):
    result = ''
    while result not in list('kKlL'):
        result = input(text)
    return result```
midnight shadow
#

wow thats complex

#

i guess thats proper python

#

ok that makes sense

#

any tips on learning while loops?

#

^
this is my final question for you

night lily
#
while True:
    pass #I will run forever, because of the above true.```
#
while False:
    pass #I will never run```
#
while input() != 'exit':
    pass```
midnight shadow
#

yes

#

i see

** !=**
^
this means if it is not this then it is true correct?

#

do I ever write anything in front of the pass?

#

ill look into this more thank you very much for all the help

#

your time means a lot ot me

night lily
#

!e

    print(i)```
timid fjordBOT
#

@night lily :white_check_mark: Your 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
midnight shadow
#

i see

#

well thakn you again

#

where should I look

#

to learn more about python

#

Python tutorial - Python for beginners
πŸš€ Learn Python programming for a career in machine learning, data science & web development.
πŸ”₯ Want to master Python? Get my Python mastery course: http://bit.ly/35BLHHP
πŸ‘ Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF

πŸ‘‰ Watch the 2020 edition: https://youtu.be/kqtD5dpn9C8

πŸ“• Get My ...

β–Ά Play video
night lily
#

Corey Schafer, sentdex

#

python.org, documentation page, downloadable documentation in the upper left, pdfs in zip, library.pdf <--- Python bible.

#

!resources

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

midnight shadow
#

thank you very much

#

i hope we talk again

#

yes that is all

spark belfry
#

s

timid fjordBOT
#

:x: There was an error adding the infraction: status 400.

#

:incoming_envelope: :ok_hand: applied mute to @spark belfry until 2020-12-13 14:29 (9 minutes and 58 seconds) (reason: burst rule: sent 9 messages in 10s).

shy coral
#

s

#

!e

timid fjordBOT
#
Command Help

!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!*

solemn comet
#

if I put : this is what shows up

warm hedge
#

you dont need the indents for the if blocks

#

remove the indent after the luckynumber input

#

also, using fstrings for the final print() statement will be good

#

!t fstrings

timid fjordBOT
#

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))
warm hedge
#

@solemn comet

timid fjordBOT
#

@verbal whale Per Rule 6, your invite link has been removed. If you believe this was a mistake, please let staff know!

Our server rules can be found here: https://pythondiscord.com/pages/rules

graceful elk
#

!rule 6

timid fjordBOT
#

6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.

graceful elk
next night
#

hi can any one help me

wet python
#

pls where did you guys learn python

wispy nova
#

hi, how calculate the derivative of a function in python ?

primal bison
#

hi

clever ice
#

hmm

#

@opal sentinel i think i got some help

graceful elk
onyx wyvern
ruby prairie
#

hai everyone
i got this question in code challenge event i have one solution for this question
but i need optimize solution for this question can any help me in this please

Question

Asha and Amar are playing SpaceKings a video game. It is a two-player game where the second player is the helper. Asha needs your help maximizing her gold while playing her favorite game. Both are facing N aliens. Asha and Amar are both at a single location and the aliens are lined up in front of them. Asha and Amar take turns shooting the aliens, and she goes first. During her turn, Asha may choose any alien to shoot at (this means Asha may choose to skip a turn). During his turn, Amar always shoots the alien closest to him to help Asha maximize her gold. Asha and Amar can not shoot dead aliens.

If Asha shoots at an alien, its hit points are reduced by P. If Amar shoots at an alien, its hit points are reduced by Q. If an alien’s hit points go below 1, it is killed. The ith alien starts with Hi hit points. Asha is awarded Gi gold if her shot kills the ith alien, but none if Amar’s shot kills it. What is the maximum amount of gold Asha can obtain?

Input:

Each case begins with one line containing three space-separated integers representing P, Q and N. N lines then follow, with the ith line containing two space-separated integers representing Hi and Gi. The aliens are given in the order of their distance from Asha and Amar. In other words, Amar will shoot at the ith alien only if all aliens < i are dead.

Output - The maximum amount of gold that Asha can get

Input

20 60 3

80 100

80 200

120 300

Output - 500

warped musk
midnight shadow
#

hi

#

is anyone online to help

dry osprey
#

dying

finite mango
#

Hello everyone. I'm still pretty new to python. I know the basics a little bit. Do you guys recommend to just make projects and google the errors or purchase an online course?

buoyant kestrel
timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

buoyant kestrel
#

We've got tons of helpful resources on our site

past estuary
#

it's free

#

it's called think python

buoyant kestrel
#

There's also Automate the Boring Stuff and A Byte of Python that're all solid

#

Think Python is also pretty good, yeah

finite mango
#

okay thank you both πŸ™‚

past estuary
#

it was suggested by my prof at the 1st year of applied computer science and aritificial intelligence

#

at La Sapienza

primal bison
#

hello

civic lake
#

hello

balmy blade
#

hi

slim wave
#

hello, what's up? still coding in christmas? πŸ˜…

balmy blade
#

merry christmas

simple lake
#

merry christmas !

vivid breach
#

@knotty vector are you facing any issues?

knotty vector
#

yes

regal ice
drifting pilot
young imp
warped musk
flat kestrel
#

@mossy kite

#

@mossy kite

mossy kite
#

hello

#

yep i do

#

how is it at the beginning, what people did and what helped to learn python. do i have to watch projects? do i have to code by myself? bcs sometimes i wanna code soemthing but if i dont know how to keep going i stuck

#

im here for a week

#

how to know which one to use ( a function, for loop, while loop) ? bcs you have to imagen the process in the head

#

i know but only basic, i know how to write simple fucntions

hushed rapids
#

I think the resources page could help you out if you want to learn more about the language honestly. It has resources for learning both advanced and basic python.

#

!resources

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

mossy kite
#

yes i do

#

i work for a logistik company in IT, im support for programs what we use. but some programs has an option to use python code. thats for example to get a certian information from a database and print it in another program

#

for example we have many cars, small and trucks

#

and we have a py script what does - when a car is too late on a destinantion, it has to generate an email and send to a company

#

for example the car has to be at a comapny at 5am and it has a dalay 1-2 hours

#

it has to genarete an email and send the info to a comapny to inform them

#

how it works, all cars have a navigation. and all info will be saved in mongo DB, that means with py script i have to get the info when the car has to be there in the plan + comapre with the real time what the navigation says and if the delay is more than 30 min it has to send an email but if not then nothing. its an exaple . but i think for those things i have to me advance with python?

#

whats hard i have to make a paln to know the whole process , what i need and what i dont need

hushed rapids
#

Depends on the nature of the projects you're working with, and what the company demands you to do with python scripts too. Not everyone needs to learn advanced python , but if you're interested , I would highly recommend going for it πŸ˜„ . It's a great language after all.

mossy kite
#

things in pythoon are very logical but to get the logic takes time

hushed rapids
#

Maybe..
Although I think python is a very intuitive language, it depends on how familiar you are with the language at the end of the day.

mossy kite
#

should i watch videos how people do projects to get the logic how they think ?

#

or just code small functions, for loops and etc

hushed rapids
#

You could watch Corey Schafer or Sentdex on youtube if you prefer video tutorials over text.Their explanations would really suit you, and the python discord recommends them on their resources page too.

hushed rapids
#

Absolutely. πŸ˜„

mossy kite
#

i thought to have a group call and code together

#

but people what are more advanced will be too lazy to have a call with people what are at the beginning

mossy kite
#

thank you very much πŸ™‚

#

the beginning is very hard

hushed rapids
mossy kite
#

i wanna code simple stuff of coure

#

what else is hard to connect functions, that one function use 3-4 other cunftions, to make the connection

#

i already saved

#

functions *

#

yes i have

hushed rapids
# mossy kite the beginning is very hard

Actually, the absolute steep progress you make is when you begin learning to code, atleast from what I've seen. Soon when you have learned the basics, you move onto problems, and the actual learning curve when you learn new concepts, flattens out, unless you're determined from day one. It's just how it is...

mossy kite
#

okay, i will check out the web site that you sent me πŸ™‚ thank you very much that you find time to have a call woth me

#

yeah practicing is the best , i have to go though many basic exercises

plush stirrup
#

id there any way to go fast on programming

#

is**

mossy kite
#

practicing πŸ™‚

hushed rapids
#

Absolutely.
Kay people hope you have a great rest of your day!
I'll take my leave for now.
Peace lemon_fingerguns_shades

flat kestrel
#

Cya

mossy kite
#

how often do you code soemthing? does it make sense to watch how other people code?

plush stirrup
#

without documentation im nothing in python

flat kestrel
#

TechWithTim

mossy kite
#

exactly, to see how other people think

#

do you watch videos how people code? or you watched at the beginning and now you try to solve problems by yourself?

plush stirrup
#

i mean im at that level for now

#

ya my thoughts exactly😩

mossy kite
#

why i cant talk? haha do i have to text here 50 messages?

flat kestrel
#

CodeWithMosh

mossy kite
#

yeah i wacthed him

#

yep it was cool

#

i liked him

flat kestrel
#

#voice-verification

mossy kite
#

should i do it rn? or after our call?

#

thanks, i will be back in a bit

plush stirrup
#

yuos

#

beginnerπŸ’©

#

actually not even beginner

#

not today a week ago

#

on edx

#

loops

#

elif

#

no its just for fun

#

i find it amusing

#

wanna suggest me some channels

#

software aPPs

#

tell me about it

#

lol me an indian

flat kestrel
#

Myanmar

plush stirrup
#

lmao

#

also are active in freelancing

#

yea new mutation strands found in uk

flat kestrel
#

:O

plush stirrup
#

all flights are stopped in india

#

what about your home country GMK ?

#

oki gtg cya

flat kestrel
#

cya nik

#

achoo

undone yoke
#

sneeze moment

flat kestrel
#

covid = 😏

undone yoke
#

nnnnooooooooo

#

whats the issue in code help 2

flat kestrel
#

Experiences with learning python

#

And basic functions/classes

undone yoke
#

aah ok

primal bison
#

lol

#

i cant even join the svc

#

sad

#

i legit can not talk

#

this is sad

#

i want to talk

night kite
#

Please link a starter book for a code n00b

wide aurora
#

!resources

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

copper ferry
#

hi

warped musk
#

Hello

#

@copper ferry

tight relic
#

@primal bison Looking

primal bison
#

same.

charred plume
#

guys 😦

#

please

noble ocean
#

Whats the problem

mystic shuttle
#

hi

#

sry but

#

plz help

#

someone help

#

plz

buoyant kestrel
#

With

rain raptor
kind spear
#

you do not have the command open installed

#

find the package associated with the command open and the do sudo apt install <package name> if the package name is name then you would do sudo apt install name

#

it looks like you might be on windows using wsl if so I do not think that you are doing this correctly, if you want to open an image I do not know if you can. just open the image not from the command line

#

I use feh to open my images on linux, but I do not think that feh will work on wsl because feh needs xorg and needs a display

#

@rain raptor

cedar token
#

Hi, can someone help me?

#

It's about QtCreator

ember marsh
#

κ·Έ

clear bison
#

How is Python Useful in Web-Development

#

!server

timid fjordBOT
#

Server information
Created: 3 years, 11 months and 24 days ago
Voice region: europe
Features: MEMBER_VERIFICATION_GATE_ENABLED, NEWS, RELAY_ENABLED, PREVIEW_ENABLED, BANNER, PARTNERED, VANITY_URL, DISCOVERABLE, VIP_REGIONS, WELCOME_SCREEN_ENABLED, COMMUNITY, ANIMATED_ICON, INVITE_SPLASH

Channel counts
Category channels: 27
News channels: 8
Text channels: 152
Voice channels: 12
Staff channels: 66

Member counts
Members: 125,959
Staff members: 86
Roles: 80

Member statuses
status_online 23,392
status_offline 102,568

mossy kite
#

hello there

#

Happy New Year!!

primal bison
#

@night lily why?

night lily
#

@primal bison Pardon?

primal bison
night lily
#

@primal bison Kivy?

primal bison
#

DevCord

night lily
#

What's that?

#

@primal bison I believe you may be mistaken as to my identity. I don't recall ever having been a part of that server.

primal bison
#

o

#

im sorry then

night lily
#

OpalMist is not unique to myself, though I am perhaps the most prolific.

primal bison
#

heh

severe flame
#

Need help? @somber lantern

somber lantern
#

@severe flame.

severe flame
#

I thought you needed something

#

Lol mkay cya

somber lantern
#

Sweet! No problem mate

#

@severe flame are you a python developer

severe flame
#

Let’s say I’m a hobbyist

somber lantern
#

Can I talk to you a sec?

modest vortex
icy hazel
#

😩

#

how i can improve my brain

#

lol

#

i can't find solutions of tasks

#

without internet

modest vortex
#

!docs

timid fjordBOT
somber lantern
#

Why find one when someone already did it for you 🀣

modest vortex
#

!docs python

timid fjordBOT
#
python```
[python](https://www.python.org) is an object oriented interpreted language widely used for scripting, application development, web application servers, scientific computing and more.
icy hazel
#

i think that it's not fait

#

fair

#

to google

#

okay

modest vortex
icy hazel
#

ok, thx u

#

good bye

#

have a nice day

tender tangle
tender tangle
#
@dataclass
class Via:
    ident: str
    type: str

    def __post_init__(self):
        if self.type not in ['SID',
                             'STAR',
                             'AWY-HI',
                             'AWY-LO',
                             'NAT',
                             'PACOT']:
            raise ValueError(f"{self.type} is not a valid Via type")
rustic forge
#
.card {
    color: white;
    float: left;
    width: calc(25% - 20px);
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    height: 200px;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    background: no-repeat center fixed;
    background-size: cover auto 100%;
    transition: 400ms;
 }
 .card:hover {
    -webkit-filter: none !important;
    filter: none !important;
    transition: 350ms;
 }
 .card p {
    font-size: 18px;
 }
 .cardContainer:after {
    content: "";
    display: table;
    clear: both;
 }
 @media screen and (max-width: 600px) {
    .card {
       width: 100%;
       -webkit-filter: none !important;
       filter: none !important;
    }
 }
#
    <div class="card" style="background-image: url('https://cdn.statically.io/img/i.imgur.com/O9Wmyek.jpg');">
        <h2>Fourth card</h2>
        <p>Some text</p>
     </div>
wide aurora
rustic forge
#
{% extends "layout.html" %}
{% block title %}
    Home
{% endblock %}

{% block head %}
<link rel="stylesheet" href="{{url_for('static', filename='cards.css')}}">
{% endblock %}

{% block body %}
<div class='box'>
    <div class='wave -one'></div>
    <div class='wave -two'></div>
    <div class='wave -three'></div>
</div>
<div class="container">
    <h1>SyncChat</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus iste ducimus ex consectetur, vitae, tempora architecto nisi quaerat animi esse eligendi vel corporis at doloribus minima suscipit labore hic facilis.</p>
    <div class="card" style="background-image: url('https://cdn.statically.io/img/i.imgur.com/O9Wmyek.jpg');">
        <h2>Fourth card</h2>
        <p>Some text</p>
    </div>
</div>



  
{% endblock %}
wide aurora
#
    <style>
    .card {
        color: white;
        float: left;
        width: calc(25% - 20px);
        padding: 10px;
        border-radius: 10px;
        margin: 10px;
        height: 200px;
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
        background-size: cover;
        transition: 400ms;
     }
     .card:hover {
        -webkit-filter: none !important;
        filter: none !important;
        transition: 350ms;
     }
     .card p {
        font-size: 18px;
     }
     .cardContainer:after {
        content: "";
        display: table;
        clear: both;
     }
     @media screen and (max-width: 600px) {
        .card {
           width: 100%;
           -webkit-filter: none !important;
       filter: none !important;
    }
 }
</style>
</head>
<body>
    <div class='box'>
    <div class='wave -one'></div>
    <div class='wave -two'></div>
    <div class='wave -three'></div>
</div>
<div class="container">
    <h1>SyncChat</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus iste ducimus ex consectetur, vitae, tempora architecto nisi quaerat animi esse eligendi vel corporis at doloribus minima suscipit labore hic facilis.</p>
    <div class="card" style="background-image: url('https://cdn.statically.io/img/i.imgur.com/O9Wmyek.jpg');">
        <h2>Fourth card</h2>
        <p>Some text</p>
    </div>
</div>
rustic forge
tender tangle
#

big dog is watching you

tender tangle
#
_ = "!"
__ = "'"
___ = "d"
____ = "e"
_____ = "h"
______ = "i"
_______ = "l"
________ = "n"
_________ = "o"
__________ = "p"
___________ = "r"
____________ = "t"
_____________ = "w"
______________ = "("
_______________ = ")"
________________ = " "
_________________ = __+_____+____+_______+_______+_________+________________+________________+_____________+_________+___________+_______+___+_+__
__________________ = __________+___________+______+________+____________+______________
eval(__________________+_________________+_______________)
wide aurora
#

!e
_ = "!"
__ = "'"
___ = "d"
____ = "e"
_____ = "h"
______ = "i"
_______ = "l"
________ = "n"
_________ = "o"
__________ = "p"
___________ = "r"
____________ = "t"
_____________ = "w"
______________ = "("
_______________ = ")"
________________ = " "
_________________ = ++++++++++___________++++__
__________________ = +++++_____________
eval(
++_______________)

timid fjordBOT
#

@wide aurora :white_check_mark: Your eval job has completed with return code 0.

hello  world!
rustic forge
#

!e

_ = "!"
__ = "'"
___ = "d"
____ = "e"
_____ = "h"
______ = "i"
_______ = "l"
________ = "n"
_________ = "o"
__________ = "p"
___________ = "r"
____________ = "t"
_____________ = "w"
______________ = "("
_______________ = ")"
________________ = " "
_________________ = __+_____+____+_______+_______+_________+________________+________________+_____________+_________+___________+_______+___+_+__
__________________ = __________+___________+______+________+____________+______________
eval(__________________+_________________+_______________)
timid fjordBOT
#

@rustic forge :white_check_mark: Your eval job has completed with return code 0.

hello  world!
rustic forge
#

!e import math

timid fjordBOT
#

@rustic forge :warning: Your eval job has completed with return code 0.

[No output]
wide aurora
#

!e import brian

timid fjordBOT
#

@wide aurora :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'brian'
modest vortex
#

!e import griffbrain

timid fjordBOT
#

@modest vortex :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'griffbrain'
steel root
#

hi how day is every ones

languid island
serene spruce
#

!e True

timid fjordBOT
#

@serene spruce :warning: Your eval job has completed with return code 0.

[No output]
serene spruce
#

!e False

timid fjordBOT
#

@serene spruce :warning: Your eval job has completed with return code 0.

[No output]
rotund beacon
#

!e import tkinter

raw turtle
#

!e import tkiter

timid fjordBOT
#

@raw turtle :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'tkiter'
raw turtle
#

!e print("Heelo")

timid fjordBOT
#

@raw turtle :white_check_mark: Your eval job has completed with return code 0.

Heelo
slender rover
#

!e print ("HELLO_WORLD")

timid fjordBOT
#

@slender rover :white_check_mark: Your eval job has completed with return code 0.

HELLO_WORLD
primal bison
#

!e while True:
print("Hello world")

#

oh πŸ™‚

#

num = [5, 2, 5, 2, 2]
for number in num:
print(number*'*')

#

!e num = [5, 2, 5, 2, 2]
for number in num:
print(number*'*')

timid fjordBOT
#

@primal bison :white_check_mark: Your eval job has completed with return code 0.

001 | *****
002 | **
003 | *****
004 | **
005 | **
primal bison
#

!e import requests

timid fjordBOT
#

@primal bison :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'requests'
primal bison
#

smh just make requests part of python

buoyant kestrel
buoyant kestrel
#

driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')

primal bison
#

If you wanna know how to obfuscate your python3 code hmu

carmine current
icy hazel
#

!e print('Hello, world!')

timid fjordBOT
#

@icy hazel :white_check_mark: Your eval job has completed with return code 0.

Hello, world!
icy hazel
#

!e name = input()

timid fjordBOT
#

@icy hazel :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
primal bison
#

hey can someone help on my problem, pls

my problem:
can you tell how to get users name, Birthday, gender using his google account ??

primal bison
#

they might mean using their api

primal bison
#

Hi how can I get the index of a value in a multi-dimensional list(no loop)

tribal jackal
#

@rotund beacon can u join this vc?

#

need some help

stiff hemlock
#

!e

 = "!"
 = "'"
 = "d"
 = "e"
_ = "h"
__ = "i"
__ = "l"
__ = "n"
__ = "o"
__ = "p"
__ = "r"
__ = "t"
__ = "w"
__ = "("
__ = ")"
__ = " "
__ = +___++___+__+__+__+__+__+__+__+__+++
__ = __+__+__+__+__+__
eval(__+__+___)
timid fjordBOT
#

@stiff hemlock :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     = "!"
003 | IndentationError: unexpected indent
stiff hemlock
#

!e

_ = "!"
__ = "'"
___ = "d"
____ = "e"
_____ = "h"
______ = "i"
_______ = "l"
________ = "n"
_________ = "o"
__________ = "p"
___________ = "r"
____________ = "t"
_____________ = "w"
______________ = "("
_______________ = ")"
________________ = " "
_________________ = __+_____+____+_______+_______+_________+________________+________________+_____________+_________+___________+_______+___+_+__
__________________ = __________+___________+______+________+____________+______________
eval(__________________+_________________+_______________)
tribal jackal
#

@rotund beacon can u come to off topic vc?

#
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)
void sigil
#

Hii can I ask a doubt here??

#

I'm getting an error that is 'tuple' object has no attribute 'append'. How do I fix???

snow grail
#

Ya ask

ripe fractal
#

i cant hear anything

#

@snow grail

snow grail
#

I can

#

Dude

#

Just joi

ripe fractal
#

i joined

#

but cant hear

snow grail
#

I can't

#

Hear

ripe fractal
#

haha

#

internet very sloww

snow grail
#

Lol

#

Hmm

ripe fractal
#

i pinned you

#

in other server

primal bison
#

someone help me in vc 2

balmy nova
#

!e print ("HELLO_WORLD")

timid fjordBOT
#

@balmy nova :white_check_mark: Your eval job has completed with return code 0.

HELLO_WORLD
primal bison
#

majiiki

remote juniper
#

!e print(5+4)

timid fjordBOT
#

@remote juniper :white_check_mark: Your eval job has completed with return code 0.

9
wide aurora
#

@primal bison

primal bison
#
def print_remaining_tasks(task_list): #TOTAL : 56 characters
    if len(task_list) == 0:
        print('Congratulations you win !')
        quit()
    elif task_list != []:
        task = task_list[0]
        print(f'| {task[0]}'+ (15 - len(' ' + task[0]))*' '+
              f'| {task[1]}' + ' km' + (16-len('  km'+task[1])) * ' ' +
              f'| {task[2]}' + ' km' + (10- len('  km' + task[2])) * ' ' +
              f'| {task[3]}' + (10-len(' '+task[3])) * ' ' + '|')
    else:
        print(56 * '-')
    return(print_remaining_tasks(task_list[1:]))
#
--------------------------------------------------------
| TaskName      | ByFootDistance | ByPegasus | HPNeeded |
--------------------------------------------------------
| Task1         | -1 km          | 400 km   | 50       |
| Task2         | -1 km          | 500 km   | 100      |
| Task3         | 600 km         | 500 km   | 75       |
| Task4         | 1000 km        | 500 km   | 50       |
| Task5         | 900 km         | 700 km   | 80       |
Congratulations you win !
#
--------------------------------------------------------
| TaskName      | ByFootDistance | ByPegasus | HPNeeded |
--------------------------------------------------------
| Task1         | -1 km          | 400 km   | 50       |
| Task2         | -1 km          | 500 km   | 100      |
| Task3         | 600 km         | 500 km   | 75       |
| Task4         | 1000 km        | 500 km   | 50       |
| Task5         | 900 km         | 700 km   | 80       |

--------------------------------------------------------
wide aurora
#
        print('Congratulations you win !')
#
print('-' * 25)
serene spruce
#

that format for table should be using an external function

primal bison
#
--------------------------------------------------------
| TaskName      | ByFootDistance | ByPegasus | HPNeeded |
--------------------------------------------------------
| Task1         | -1 km          | 400 km   | 50       |
| Task2         | -1 km          | 500 km   | 100      |
| Task3         | 600 km         | 500 km   | 75       |
| Task4         | 1000 km        | 500 km   | 50       |
| Task5         | 900 km         | 700 km   | 80       |
--------------------------------------------------------
serene spruce
#

nice avatar

primal bison
#

ty xd

serene spruce
#

where did you find that

wide aurora
#
input("Press Enter to continue...")
primal bison
#

idk πŸ˜„

#

ty bro @wide aurora

primal bison
#

lemme find

serene spruce
#

i cant speak

#

i left the group

#

due to technical issues

#

i cant hear

#

taht day

#

yes

#

yeah

#

hmm

#

its okay

#

1 more day

#

to go

primal bison
#

if u want

#

i can send u this gif

#

thorough dm

#

@serene spruce

manic zinc
#

!e for i in range(1, 10): print('hello, this is execution nr. ', i)

timid fjordBOT
#

@manic zinc :white_check_mark: Your eval job has completed with return code 0.

001 | hello, this is execution nr.  1
002 | hello, this is execution nr.  2
003 | hello, this is execution nr.  3
004 | hello, this is execution nr.  4
005 | hello, this is execution nr.  5
006 | hello, this is execution nr.  6
007 | hello, this is execution nr.  7
008 | hello, this is execution nr.  8
009 | hello, this is execution nr.  9
manic zinc
#

!e x = 10

timid fjordBOT
#

@manic zinc :warning: Your eval job has completed with return code 0.

[No output]
manic zinc
#

print(x)

#

!e print(x)

timid fjordBOT
#

@manic zinc :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'x' is not defined
rustic python
#

Hey tim

fallow thistle
#

hello

#

!e number = "python"

timid fjordBOT
#

@fallow thistle :warning: Your eval job has completed with return code 0.

[No output]
fallow thistle
#

!e print('hey Kevin Tempel')

timid fjordBOT
#

@fallow thistle :white_check_mark: Your eval job has completed with return code 0.

hey Kevin Tempel
fallow thistle
#

@rustic python

north glacier
#

πŸ‘

umbral kraken
#

!e

buoyant saddle
gusty venture
#

dict[list(dict.keys())[0]]

tardy depot
#

i needd help to remove all the extra stuff in my terminal

#

i want my terminal to only show the code that it should

cold lintel
#

@dry copper

dry copper
#

hi

cold lintel
#

Hey, so you don't have voice permissions yet?

dry copper
#

no

#

just joined

#

like 30 min ago

cold lintel
#

Ah right.

#

No worries. Will have to talk via text for now sorry.

dry copper
#

can you just add me we call and then you un add me

cold lintel
#

Sorry, I'd rather keep discussions inside the server.

#

What is it you're having trouble with?

dry copper
#

i dont think i can do it then because ive tried to explain to 3 different servers and no one could figure out how to help over text

#

thanks for trying to help

#

but its not possible for me to show you

cold lintel
#

You sure?

dry copper
#

thats what i got for you

#

that one error needs to be fixed thats it

#

everything else works

cold lintel
#

Hmm. Maybe it is the spacing.

#

This looks like a test, so I'm hesitant to directly give you the answer.

dry copper
#

no i just started the program

#

dont worry ahaha

#

its this program called code hs

#

its just orur assingment for the day

cold lintel
#

Wait, sorry

dry copper
#

ok

cold lintel
#

It might just be the way that they check your answer. Looks like they are doing some kind of text pattern-matching.

dry copper
#

yea its so annyoing

cold lintel
#

Can you try removing the parentheses around age?

dry copper
#

done

cold lintel
#

This might be messing with their grading script.

dry copper
#

nope

#

didnt work

cold lintel
#

Perhaps they expect you to do 'blah blah blah' + str(age)

dry copper
#

been trying to figure this out for 2 hours and my teacher really said yea you did it right they just want it differently

#

yea i tried that too

cold lintel
#

Erm, does the score from this test affect anything?

dry copper
#

coutns as a 0

#

says not complete

#

so dumb

#

it litteraly works

#

but nooooooo i dont wanna im a teacher that doesnt teach

cold lintel
#

Yeah, seems like it's a problem with the grader. Your solution looks fine.

#

So your teacher can't just bypass the automated grader for you?

dry copper
#

ok imma take a break nothing is working i might have to take the 0

#

no they say there is a right way to do it

#

but hes not helping this is litteraly the second day of class cut me some slcak

#

im so frustrated if you cant tell imma take a break

cold lintel
#

Yeah that sucks

dry copper
#

thanks for trying to help unlike my teacher

cold lintel
#

No worries πŸ˜„

#

Is this an in-person class?

dry copper
#

no

#

online

#

im a freshmen in highschool

cold lintel
#

Oh right.

dry copper
#

zoom calls

cold lintel
#

Anyway, heading back to off-topic. Cya

dry copper
#

bye bye

rotund flame
#

good morning everyone

ocean quail
#

gm

whole swift
#

@amber elm

#

@ivory kernel @amber elm @maiden wind

#

@maiden wind did he leave?

maiden wind
#

yeah think so

ivory kernel
#

yep

hot tiger
undone pond
#

goodmorning

ancient holly
#

hey i have a question if i have a loop and everytime it gives me a word and i want to concatenate the words how i do thta

royal temple
#

Hi everyone! I'm new to python and the coding world in general. trying to change fields from electrician to coding. I have been told that python is a good language to learn. I have been watching coding videos on youtube to kind of learn things but I was hoping to make some friends in the coding community to help accelerate the learning process. Any ideas on good videos to learn with or any tools, tricks, or exercises would be greatly appreciated! Kinda feels a little overwhelming but i'm determined to learn a little more than I did yesterday! Feel free to dm me or add me if you have ANY knowledge you would be willing to share with me!

buoyant kestrel
#

!resources We've got a whole slew of resources here on our site! From texts to videos. We've also got a section on suggestions for code editors and the like

timid fjordBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

buoyant kestrel
#

@royal temple Just in case you miss this message this

true hazel
#
import concurrent.futures


with concurrent.futures.Executor() as executor:
    futures = {executor.submit(perform, task): task for task in get_tasks()}

    for fut in concurrent.futures.as_completed(futures):
        original_task = futures[fut]
        print(f"The result of {original_task} is {fut.result()}")
carmine current
#
def stuff(word, word_list):
    unfiltered = process.extract(word, word_list, limit=None)
    filtered = []
    for match, score in unfiltered:
        if score...:
            filtered.append((match, score))
    return filtered
molten crow
#

Me actually (sorry for interruption)

carmine current
#

@molten crow yea this is quite a complex topic right now

molten crow
#

Yeah, i got all the intermediate thing i think, but i dived into concurrent one time and got lost haha

carmine current
#

["hey", "hello"]

#

process.extractBests(word, word_list, limit=None, score_cutoff=75)

molten crow
#

Just learnt a new way to use list comprehension. Thank you !

jovial ravine
#

You dont have a shared state . That's why its better to be a pure function

primal bison
molten crow
molten crow
#

[word for word, count in h if word != matchexpression]

#

?

jovial ravine
#

[ word for word in words if <some-condition>]

molten crow
#

I have to go. I hope some days i will be able to show you some code i'm doing and get your return guys, as i might to some things wrong haha. I learnt a lot and i thank you all !

carmine current
molten crow
#

It let you do cell execution and markdown =)

#

(jupyter)

#

exemple for jupyter haha

snow grail
#

@ornate thistle

teal veldt
#

Traceback (most recent call last):
File "C:\Users\Yash\anaconda3\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\Yash\anaconda3\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Yash\anaconda3\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:/Users/Yash/Desktop/YouTubeShop-master/yt.py", line 26, in <module>
server = botgaurd.server_start()
File "c:\Users\Yash\Desktop\YouTubeShop-master\lib\auth.py", line 16, in server_start
self.browser = webdriver.Chrome(executable_path=r"lib\chromedriver.exe")
File "C:\Users\Yash\anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Users\Yash\anaconda3\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

ornate thistle
#

chromedriver.exe

teal veldt
#

@ornate thistle some problems i am facing

#

Import "lib.cli" could not be resolved

sage rune
#

my pip not working

teal veldt
#

Import "lib.auth" could not be resolved

#

Import "lib.execption" could not be resolved

#

Import "lib.action" could not be resolved

#

Import "lib.cli" could not be resolved

#

"Botgaurd" is not defined

#

some on help me

sinful onyx
#
                 High        Low       Open      Close      Volume  Adj Close
Date
2015-12-31  56.189999  55.419998  56.040001  55.480000  27334100.0  50.627274
2016-01-04  54.799999  53.389999  54.320000  54.799999  53778000.0  50.006744
2016-01-05  55.389999  54.540001  54.930000  55.049999  34079700.0  50.234879
2016-01-06  54.400002  53.639999  54.320000  54.049999  39518900.0  49.322346
2016-01-07  53.490002  52.070000  52.700001  52.169998  56564900.0  47.606789
formal ermine
#

do you know what kind of programs do people pay for in python?

young imp
#

data scientists maybe

undone yoke
#

data scientists and backend web developers

warped musk
steep marsh
#

homework

young imp
#

immutable

#

!e

a = {1, 2, 3, 3}
print(a)
timid fjordBOT
#

@young imp :white_check_mark: Your eval job has completed with return code 0.

{1, 2, 3}
steep marsh
#

Alice and Bob like to play with colored cubes. Each child has its own set of cubes and each cube has a distinct color, but they want to know how many unique colors exist if they combine their block sets. To determine this, the kids enumerated each distinct color with a random number from 0 to 108. At this point their enthusiasm dried up, and you are invited to help them finish the task.
Given two integers that indicate the number of blocks in Alice's and then Bob's sets N and M. The following N lines contain the numerical color value for each cube in Alice's set. Then the last M rows contain the numberical color value for each cube in Bob's set.

Find three sets: the numerical colors of cubes in both sets, the numerical colors of cubes only in Alice's set, and the numerical colors of cubes only in Bob's set. For each set, print the number of elements in the set, followed by the numerical color elements, sorted in ascending order.

#

4 3
0
1
10
9
1
3
0

#

2
0
1
2
9
10
1
3

warped musk
#

!e
print("Bye guyz, Catch you later!")

timid fjordBOT
#

@warped musk :white_check_mark: Your eval job has completed with return code 0.

Bye guyz, Catch you later!
young imp
#

bye

steep marsh
#

see ya

#

def print_set(some_set):
print(len(some_set))
print(*[str(some_set)])

N, M = [int(s) for s in input().split()]
A_colors, B_colors = set(), set()
for i in range(N):
A_colors.add(int(input()))
for i in range(M):
B_colors.add(int(input()))

print_set(A_colors & B_colors)
print_set(A_colors - B_colors)
print_set(B_colors - A_colors)

young imp
#

!e

x = [1, 2, 3, 4]
print(x)
print(*x)
timid fjordBOT
#

@young imp :white_check_mark: Your eval job has completed with return code 0.

001 | [1, 2, 3, 4]
002 | 1 2 3 4
young imp
#

print(*x) = print(1, 2, 3, 4)

#
N, M = [int(s) for s in input().split()]
N, M = input().split()
#
import discord
import os 
import requests
import json
client = discord.Client(800743802045726733)
def get_quote():
    response = requests.get("https://zenquotes.io/api/random%22%22") 
    json_data = json.loads(response.text)
    quote = json_data[0]['q'] + "-" + json_data[0]['a']
    return(quote) 
@client.event 
async def on_ready():
    print("We have logged in as {0.user}.format".format(client))
@client.event 
async def on_message(message):
    if message.author == client.user:     
        return
    if message.content.startswith("//inspire"):
        quote = get_quote()
    await message.channel.send(quote)
client.run(os.getenv("Token"))
buoyant kestrel
#

Missing a closing qu- you got it

young imp
#

yip

#

was telling him that thing

runic snow
#

If I need help with some code do I mention it in here?

primal bison
#
import requests

url = "https://currencyapi-net.p.rapidapi.com/rates"

querystring = {"output":"JSON","base":"USD"}

headers = {
    'x-rapidapi-key': "API",
    'x-rapidapi-host': "currencyapi-net.p.rapidapi.com"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
#

It ouputs this

#

How do I grab some data from the dictionary?

timid pivot
#

response.json()

#

data = response.json()

compact rampart
#

how can I use "return" I cant use thisthinkmon

twilit stream
twilit stream
#

`import json
decoded_response = json.loads(response.text)

then you can you each key of dict you want like this:

print(decoded_response['valid'])
`

primal bison
#

ty

#

got it thanks

twilit stream
prisma idol
#

!e

timid fjordBOT
#
Command Help

!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!*

prisma idol
#

!e print("Hello!")

primal bison
#

TypeError: sequence item 0: expected str instance, list found

#
mylist = ['x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
          'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
          'x', 'x', 'x', 'x', 'x', 'x', 'x']

result = '\n'.join(mylist[x:x+90] for x in range(0, len(mylist), 90))

print(result)
#
def initialize_map():
                Root.update()
                DemoMap['map'] = DemoMap['map'].replace('\n', '')#all new lines are deleted from the maps
                DemoMap['map'] = DemoMap['map'].replace('x', ' ')#x's are replaced with spaces to make the map feel open
                
                wCounter = 1#the width and height counter are used so the function prints
                hCounter = 1#according to the dimension of the map
                for e in DemoMap['map']:
                    Root.update()
                    Cell[e] = dict(x=wCounter, y=hCounter, gfc=f'{e}')#cells are given an x,y and graphic
                    CellList.append(Cell[e])
                    SceneW.insert('insert', Cell[e]['gfc'])
                    wCounter += 1
                    if wCounter > DemoMap['w']:
                        Root.update()
                        wCounter = 1
                        hCounter += 1
                        SceneW.insert('insert', '\n')```
#
for cell in CellList:
                    Root.update()
                    if cell['x'] == Player['x'] and cell['y'] == Player['y']:#this condition assigns a graphic to the temporary
                        tempGfc = Player['gfc']                              #variable which tells the function what graphic to print
                    else:
                        tempGfc = cell['gfc']
                    SceneW.insert('insert', tempGfc)
                    wCounter += 1
                    if wCounter > DemoMap['w']:
                        Root.update()
                        wCounter = 1
                        SceneW.insert('insert', '\n')```
gleaming quest
#
from audioplayer import AudioPlayer
import threading

global audio

class InputCapture(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)

    def run(self):
        while True:
            choice = input('Do something\n')
            if choice == 'pause':
                audio.pause()
            elif choice == 'resume':
                audio.resume()
            elif choice == 'stop':
                audio.stop()

audio = AudioPlayer('do i wanna know.mp3')

audio.play()

x = InputCapture()

x.start()
potent notch
#

hello
can anyone help in vc
i have a question about pip
it doesnt seem to be working properly on my device

jovial ravine
#

You havent imported sklearn.

Type import sklearn

potent notch
#

ok

#

so im not going to use that example

#

take a look at this

#

i want to play a sound file

#

using playsound

#

so that is my code

tender tangle
#

those two first lines overwrite each other
first playsound is the module
then it is the function

jovial ravine
#

or channge it from sklarn import model_seleection``` and change to model_selection..`

potent notch
#

and this is my workspace

#

so when i run the code....

#

this is the error

#

and i already installed in pip

jovial ravine
#

you don't have the package playsound installed

potent notch
#

it says its already satisfied

#

also

#

when i do pip list

#

it shows up

#

so idk why it says no module named playousound

#

and the same thing happened for a module named winsound

#

and kivy

#

so i know it doesnt have to do with this specific module

tender tangle
#

are you in a virtual environment

jovial ravine
#

Nope. he is not

potent notch
#

i dont think so

#

thats what i thought originally

jovial ravine
#

I think, there is a problem with system paths in order to find to packages.
Can you try adding the path to the location where packages are installed into $PYTHONPATH

potent notch
#

how would i go about doing that