#voice-chat-text-0

1 messages ยท Page 98 of 1

somber heath
#

!pep8

wise cargoBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

stuck goblet
#

would I be able to get a job with knowing python alone

amber pagoda
#

pep has a song!!! uuuaaallll

golden sonnet
#

it's a song made by one of the people in this server

amber pagoda
#

i would be able to work 3 months without receiving a salary just to learn english and python lol

old heart
amber pagoda
#

I play guitar

old heart
#

lemon does live performances here sometimes, really good stuff.

#

@somber heath but 3.11 ..

golden sonnet
stuck goblet
#

i like python because it makes it easier to understand other languages easier to read and I really enjoy scalability

old heart
#

compile times are a problem with C also, from what I gather?

amber pagoda
golden sonnet
#

python is lovely
and it has good libs

old heart
#

๐Ÿ˜ I am confused about envs.

stuck goblet
#

im looking towards getting a job in data science

old heart
#

containers.. remote instances.. local.. docker or no docker..

stuck goblet
#

its not at all

golden sonnet
amber pagoda
#

@somber heath you lives in London?

old heart
#

basic understanding only.

#

Opal is from Austrailia

#

docker can be used a few different ways

stuck goblet
#

@golden sonnet im not quite sure to be honest im very naive when it comes to what i really want to do in data science i just want to build cool thing well paying the bills

golden sonnet
amber pagoda
#

cloud is the best way to use them?

golden sonnet
#

data science isn't what people normally see at first glance

old heart
#

cloud is expensive.

amber pagoda
#

like Azure, AWS and GCP?

old heart
#

depends entirely on what you're trying to acomplish

#

I would recommend you learn about cloud services, and docker and follow pep8 with your learning strategy with scalability being front of mind while you're developing

stuck goblet
#

in Minecraft

old heart
#

understanding databases is important as well

golden sonnet
#

really at this point you need a basic tutorial for python

amber pagoda
#

I recently achieved the Azure AZ-900 certification

old heart
#

relational vs non-relational .. you can't hop midstream from one to the other

stuck goblet
#

how do you find open source projects to contribute towards?

somber heath
#

!source

wise cargoBOT
golden sonnet
old heart
#

I highly recommend you check out CS50P

#

its totally free.

golden sonnet
#

tho cs50p is really good

stuck goblet
#

why do you have them?

old heart
#

if your intention is to learn python exclusively, I'd say cs50x isn't neccesarily a requirement.

stuck goblet
#

live and grow king

golden sonnet
#

cs50p is not as basic as a beginner needs

old heart
#

a basic understanding of CS is excellent and David Malan is fantastic.

golden sonnet
#

i would say corey shafer is better for an absolute beginner

old heart
#

it wouldn't hurt to learn both, and I would agree if you're to do that then start with CS50x

stuck goblet
#

would you recommend learning a langue first over a cs50 to get an understanding

golden sonnet
#

cs50 tends to go fast on some of the stuff
specially oop

old heart
#

CS50x is a basic intro to a variety of programming languages

golden sonnet
#

so corey is better for start
and cs50 is better for complition

old heart
#

CS50p is a basic intro to python

stuck goblet
#

im little burnt out on my udemy python class and was thinking about starting cs 50

golden sonnet
#

also let's not forget the lovely socratica

amber pagoda
#

As a Brazilian, I didn't even know there was cs50... I added it to my favorites to watch later... thanks

old heart
amber pagoda
golden sonnet
#

corey for sure has some unique work

#

but socratica is just lovely

stuck goblet
#
old heart
#

when you build a venv, does it host all of python in the directory that you created it

stuck goblet
#

you know some knows what there talking about by the way they pronounce icons

golden sonnet
#

i am yet to see a better oop tutorial than corey
either books or videos
he is number 1

stuck goblet
#

socratica kinda dope

#

tutorials shouldn't be so boring

#

the reason i even got into programing or tech is your micheal revves and ltt

old heart
#

"and if you're using C++, then I'm glad that you are using Python" -Socratica ๐Ÿ˜›

golden sonnet
#

indians still are the number 1 language tutors on youtube tho

stuck goblet
#

"use your mouse skills to click the link"๐Ÿ˜†

old heart
golden sonnet
#

i like to keep naresh IT around just in case

#

tho i feel like they mostly care about java

stuck goblet
#

Socratica prob the best thing im leaving here today with these are fun

golden sonnet
#

socratica is gonna get u through python and sql to a good point

#

but will not be enough

#

they don't have the budget

stuck goblet
#

GIVE ME MORE

golden sonnet
#

they are a small studio
you want video give them money

old heart
#

I think, are you using linux yet?

#

probably you should start to learn that too.

#

if you're on windows, get WSL 2 and learn linux

stuck goblet
#

see instead of funding expensive for profit university's the government should just give money to socratica

golden sonnet
#

freecodeacademy seems good too

#

it'd be better if they wouldn't upload a 24 hour video

#

someone needs to teach them how to cut a video in parts

stuck goblet
#

yeah one thing would be to tell where the skill curve starts

old heart
#

I like Amigoscode

golden sonnet
#

MONEY!
_socratica

old heart
#

there's quite a difference between learning regex and deploying a web-app or training models ... like yes it all has Python in common but there becomes a large divergence in streams as you learn.

#

so pick something, go with it, explore the use case, visualize a project and build it.

golden sonnet
#

using your skills are important

old heart
golden sonnet
#

i like that 5 people in voice chat and not 1 is talking

stuck goblet
#

in 3 days ill have vc privilege

golden sonnet
old heart
#

I'm at my in-laws, no mic. otherwise I would be.

golden sonnet
#

that is the best lib in python

stuck goblet
#

im looking internships on indeed what is ETL

old heart
#

is there a tool that will grab al dependencies from a project and write them to requirements.txt .. docker freeze will push whats in the env only? or does it do that>

warped raft
#

hello @thick pulsar

#

hello @valid elk

#

hey @somber heath

#

how can we create csv

#

file

#

it is for java

#

thanks

#

very helpful

somber heath
#

!voice @valid elk

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

!e py if True: print('A') elif True: print('B') elif False: print('C') elif True: print('D') else: print('E')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

A
somber heath
#

!e py if False: print('A') elif True: print('B') elif False: print('C') elif True: print('D') else: print('E')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

B
somber heath
#

!e py if False: print('A') elif False: print('B') elif False: print('C') elif True: print('D') else: print('E')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

D
somber heath
#

An if stanza consists of exactly one if, zero or more elif and zero or one else.

#

Always in that order.

#

@ocean anchor @tough glacier ๐Ÿ‘‹

#

!kindling

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

somber heath
#

!resources

wise cargoBOT
#
Resources

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

somber heath
#

@spark kettle ๐Ÿ‘‹

spark kettle
#

@somber heath hello

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

lucid blade
somber heath
#

@stray cloud ๐Ÿ‘‹

lucid blade
somber heath
lucid blade
#
somber heath
#

Trevor walks us through the process of metal 3D Printing a Titanium part on the TruPrint 2000. The ONA AV35 was used cut this part off the build plate (which was also Titanium). This part is different from previous prints because this part not designed by a human, but instead an A.I.

Hyperganic Platform:
https://www.hyperganic.com/#countdown

...

โ–ถ Play video
#

@twilit spire๐Ÿ‘‹

lucid blade
#

Antenna design engineering is being transformed rapidly by new 3D printing technologies. When Rogers Corporation announced their Radixโ„ข 3D printable material, I made a short video cheekily asking for samples to try. The lovely folk at Rogers responded and offered to print some of my designs. (https://landing.rogerscorp.com/5/Radix.aspx)

There w...

โ–ถ Play video
pliant zephyr
#

a

somber heath
#

!e ```py
import numpy as np

def unit_vector(degrees):
radians = np.radians(degrees)
return np.array([np.sin(radians), np.cos(radians)])

vec = unit_vector(35) * 30
print(vec)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

[17.20729309 24.57456133]
valid elk
#

import pygame
print "hello world":

lucid blade
#

import pygame
print ("hello world")

somber heath
#

@tired moon๐Ÿ‘‹

tired moon
#

hello @somber heath

lucid blade
#

stars.main()

#

import pygame.examples.scaletest

tired moon
#

@lucid blade all gud brother

#

I have few questions buddy

#

what will you prefer for web development, python frameworks (django or flask) or Javascript(React,etc)?

#

@lucid blade I'm also new to this field

#

@lucid blade Yeah i know

#

we studied a few things about PHP back in the school

#

what can be other good fields for job using python language?

#

Oh I see, I'm currently doing the python crash course from google on coursera

#

its a part of IT Automation course

lucid blade
wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

tired moon
#

@somber heath I'm also going buddy, will see you guys later. and thanks for the insight

valid elk
#

@somber heath brah i got somin for you

#

ill dm you so you can learn

somber heath
#

What is it?

valid elk
#

itll make you a better coder

#

just give it a quick skim

#

post was deleted because of reasons

#

im being serious

#

i wana achieve my goals

#

so i will do everything in here to the T

#

with a capital T

#

if it helped gime a quick thanks for the info

somber heath
#

Please don't talk to me.

valid elk
#

sorry

#

i had to block him cuz i didnt wana get banned for tal,kking to somone who didnt want me to talk to him

#

material should i delete my post

#

@ocean anchor ^

#

and keep it to my self

#

ill keep that stuff to myself i figure its a safe bet

whole bear
#

hi

whole bear
#

an interesting character

#

he's a fun guy

covert atlas
#

giii guys'

#

wassup

#

i hope u all are doing grt .. love from India

#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

verbal zenith
pliant zephyr
#

Hi

somber heath
#

Welcome to patterns.

somber heath
#

@hybrid hill๐Ÿ‘‹

hybrid hill
#

yes?

hybrid hill
somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

@gusty glade๐Ÿ‘‹

gusty glade
#

hii

#

Ramazan selam kral

#

๐Ÿ™‚

hybrid hill
#

Selam

gusty glade
#

ilk defa burda tรผrk gรถrdรผm

hybrid hill
#

Neden olmasฤฑn da saรงma kurallar var pair de konuลŸturmuyor sistem

gusty glade
#

harbiden mk o zaman neden voice channel var

hybrid hill
#

50 mesaj bilmem ne birลŸeyler yazmฤฑลŸlar.

gusty glade
#

eee

hybrid hill
gusty glade
#

neyse kral รงok memnun oldum

#

kendine iyi bak

hybrid hill
#

๐Ÿ™‚ tรผrklรผฤŸรผmรผz belli olsun.

#

selametle.

gusty glade
#

gssdfsdkjfdsfsdh ayen

hybrid hill
#

What r u doing on Voice Chat 0?

#

Sorry. My English is very leak.

#

Everyone is quiet. There is nothing in sight

somber heath
#

@chilly crown๐Ÿ‘‹

hybrid hill
#

Ok then. I don't understand most of what you are talking about. It's best if I improve my English and come back.

#

Good bye.

amber pagoda
#

Sorry guys, yesterday I slept sitting on the chair and I couldn't say goodbye to you. Thanks for the help and learning. To the next.

pallid hazel
#

sigh... normalizing my connection code seems doable, however the amount of devices Im working with is not.. some properties is about the same, however even among catagoery types the information is not "normalizeable" between them.. which is going to lead to a new cascade of mods to handle the unique devices..
that moment when you see another 6mnth project materialize before you.

woeful salmon
#

i'm gonna have to go now see you guys later

pliant zephyr
somber heath
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

pliant zephyr
#

Child classes:

class AudioRC_Client(AudioRC_Server):

    def __init__(self, sock, connection_info, conn, addr):
        super().__init__(sock, )
        self.connection_info = connection_info
        self.conn = conn
        self.addr = addr
        self.connections = {'client': self.conn, 'remote': None}

    def identify(self):
        ...
        self.add_client(conn)
        ...



class AudioRC_Remote(AudioRC_Server):

    def __init__(self, sock, connection_info, conn, addr):
        super().__init__(sock, )
        self.connection_info = connection_info
        self.conn = conn
        self.addr = addr
        self.connections = {'client': None, 'remote': self.conn}

    def login(self):
        # this is the place I want to be able to access the self.clients variable, altoguh its empty - even after the changes were made in the client's class

        print(self.clients)  # Output: []

bronze quest
#

hello OpalMist, good day

pliant zephyr
#
def main():

    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    arc = AudioRC_Server(sock)

    arc.connect(IP, PORT)
    arc.accept_connections()```
forest zodiac
#

hi

somber heath
#

@grim patrol ๐Ÿ‘‹

#

@ivory flower ๐Ÿ‘‹

grim patrol
#

@somber heath yes

#

๐Ÿ‘‹

#

๐Ÿ˜

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

bronze quest
#

learning docker

#

just started

#

what about you ? what are you working

#

nice

#

๐Ÿ™‚

ivory flower
#

learning another language , I am new to Discord syntax lol

#

Rust

bronze quest
#

yes

ivory flower
#

btw I don't have mic currently
yah , if thing goes well, I will start working on another side project , but still look for idea

bronze quest
#

XD

ivory flower
#

mic , network issues , they all affects streaming quality

#

convergence , ya

#

ok, good to chat (text) with you , bye (go back for coding)

bronze quest
#

okay. bye

patent dome
#

@soft dawn

#

hi

#

don't have permission to speak

#

yeah

#

i have been here a while but don't speak much

#

need 50+ messages to be voice verified

#

lol

#

oh

#

customizing how it looks?

#

with what?

#

unique spawn?

#

unix pawn?

soft dawn
patent dome
#

oh yes I'm familiar

#

I see

#

can't you use gnome shell extensions?

#

it will probably have an extension to blur your shell

#

is this what you are looking for?

#

you will need to set it first

#
It's FOSS

Brief: This is a detailed guide showing you how to install GNOME Shell Extensions manually or easily via a browser.

While discussing how to install themes in Ubuntu, I briefly mentioned GNOME Shell Extension. It was used to enable user themes. Today, weโ€™ll have a detailed look at GNOME

#

lmao

#

sorry

#

i like how gnome looks

#

never tried KDE

#

I'm a linux noob too lol

#

I'm almost at 50

#

messages

#

lol

#

1 sec

flint terrace
#

Yeah me as well

#

Linux is really hard

robust lichen
#

Defaulting to user installation because normal site-packages is not writeable
Collecting torch
Downloading torch-1.13.1-cp310-cp310-manylinux1_x86_64.whl (887.5 MB)
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•บ 871.5/887.5 MB 7.5 MB/s eta 0:00:03
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

#

Filesystem Size Used Avail Use% Mounted on
dev 1.7G 0 1.7G 0% /dev
run 1.7G 1.1M 1.7G 1% /run
/dev/nvme0n1p2 234G 67G 155G 31% /
tmpfs 1.7G 117M 1.6G 7% /dev/shm
tmpfs 1.7G 1.1G 629M 63% /tmp
/dev/nvme0n1p1 510M 68M 443M 14% /boot
tmpfs 334M 504K 334M 1% /run/user/1000

somber heath
#

@honest fox๐Ÿ‘‹

whole bear
#

@somber heath hey how are you

honest fox
#

Hi

#

(:

#

I can't talk unfortunately

whole bear
#

@honest fox hi how are you

honest fox
#

I'm doing well

#

Maybe getting motivated to work on a notebook ๐Ÿ˜…

whole bear
#

Oo

#

last week chatgpt scammed me before exam I create some notes for ready after an hour chatgpt was not working for 24 hours

#

๐Ÿฅฒ

honest fox
#

Code your own autoregressive language model with RL feedback

#

๐Ÿ˜… ๐Ÿคทโ€โ™‚๏ธ

#

But joking aside sorry about that

vocal basin
#

run contains sockets and stuff also

#

deleting which will break (almost) everything

#

there are logs

#

archives specifically

#

those ones might hypothetically be fine to delete

#

"yet"

honest fox
#

This person with all due respect seems like they are trolling

#

Sorry if you aren't

#

But I would be suspicious

#

You don't need a GPU to compile/run torch

whole bear
#

pip install torch torchvision

honest fox
#

^^^^^

#

Don't compile if you just want to play with it

#

You should not need to install CUDA

#

Sorry about the earlier message as well

#

They are using the wheel

#

A.k.a not the binary

robust lichen
#

Filesystem Size Used Avail Use% Mounted on
dev 1.7G 0 1.7G 0% /dev
run 1.7G 1.1M 1.7G 1% /run
/dev/nvme0n1p2 234G 67G 155G 31% /
tmpfs 1.7G 120M 1.6G 8% /dev/shm
tmpfs 1.7G 6.6M 1.7G 1% /tmp
/dev/nvme0n1p1 510M 68M 443M 14% /boot
tmpfs 334M 36K 334M 1% /run/user/1000

vocal basin
#

use cloud, become enslaved to infrastructure provided by corporations in exchange for less problems like this

honest fox
#

Is this a machine owned by you Duke

#

For example

#

At my university

#

I don't have root permissions

#

Do you have Python installed on your machine

#

Could you do a quick "Python --version"

vocal basin
#

"run inside a container and install as root there"
pip will still argue anyway

honest fox
#

You should use Venv with Pip

robust lichen
#

Python 3.10.9

vocal basin
#

and, if not aliased, python3

robust lichen
#

says venv

honest fox
#

Your wheel

#

Was not compatible with your hardware

#

Not sure where you got that wheel from

#

But it likely needed a GPU was my guess

#

That's why

#

I just went to the Pytorch home page for Linux

#

And chose Linux CPU stable

robust lichen
#
Do you want to execute the model with visualization (Y/N)? n
epoch 1 / 5, step 100/600, loss: 0.4095
epoch 1 / 5, step 200/600, loss: 0.3262
epoch 1 / 5, step 300/600, loss: 0.3547
epoch 1 / 5, step 400/600, loss: 0.1698
epoch 1 / 5, step 500/600, loss: 0.2343
epoch 1 / 5, step 600/600, loss: 0.3257
epoch 2 / 5, step 100/600, loss: 0.2244
epoch 2 / 5, step 200/600, loss: 0.1903
epoch 2 / 5, step 300/600, loss: 0.1083
epoch 2 / 5, step 400/600, loss: 0.2210
epoch 2 / 5, step 500/600, loss: 0.1835
epoch 2 / 5, step 600/600, loss: 0.1030
epoch 3 / 5, step 100/600, loss: 0.0638
epoch 3 / 5, step 200/600, loss: 0.0822
epoch 3 / 5, step 300/600, loss: 0.2193
epoch 3 / 5, step 400/600, loss: 0.1083
epoch 3 / 5, step 500/600, loss: 0.1654
epoch 3 / 5, step 600/600, loss: 0.0602
epoch 4 / 5, step 100/600, loss: 0.0755
epoch 4 / 5, step 200/600, loss: 0.0729
epoch 4 / 5, step 300/600, loss: 0.0572
epoch 4 / 5, step 400/600, loss: 0.0845
epoch 4 / 5, step 500/600, loss: 0.0999
epoch 4 / 5, step 600/600, loss: 0.1164
epoch 5 / 5, step 100/600, loss: 0.0445
epoch 5 / 5, step 200/600, loss: 0.2366
epoch 5 / 5, step 300/600, loss: 0.0896
epoch 5 / 5, step 400/600, loss: 0.1009
epoch 5 / 5, step 500/600, loss: 0.0506
epoch 5 / 5, step 600/600, loss: 0.1448
accuracy: 97.94166666666666
#

@whole bear

honest fox
#

Bytecode is machine optimized code

#

Or maybe I'm wrong

vocal basin
#

import time might hypothetically get a little bit faster

honest fox
#

It's closer to assembly

vocal basin
#

!d compile

wise cargoBOT
#

compile(source, filename, mode, flags=0, dont_inherit=False, optimize=- 1)```
Compile the *source* into a code or AST object. Code objects can be executed by [`exec()`](https://docs.python.org/3/library/functions.html#exec "exec") or [`eval()`](https://docs.python.org/3/library/functions.html#eval "eval"). *source* can either be a normal string, a byte string, or an AST object. Refer to the [`ast`](https://docs.python.org/3/library/ast.html#module-ast "ast: Abstract Syntax Tree classes and manipulation.") module documentation for information on how to work with AST objects.

The *filename* argument should give the file from which the code was read; pass some recognizable value if it wasnโ€™t read from a file (`'<string>'` is commonly used).
vocal basin
honest fox
#

Either direct assembly or a translation but it is faster because the program interpreter doesn't have to translate a line each time it sees it, it can know oh hey I'm doing this loop and this is the operation I have to do

vocal basin
#

no, CPython doesn't JIT

honest fox
#

Ah I see

vocal basin
#

PyPy uses JIT
RustPython needs you to explicitly call f.__jit__() to compile f

scenic quiver
#
good_dict = {
    (1, 2, 3): "one two three", 
}
#
Bad_dict = {
    [1, 2, 3]: "one two three", 
}
#

What is the difference between two? And can you explain why the list is mutable and tuple is immutable and why key should be immutable?

#

I forgot the command to compile the code. What is the command?

honest fox
#

In general, without going into more detail and simplifying things, as a user you do not need to compile python code

robust lichen
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

robust lichen
#

@scenic quiver

honest fox
scenic quiver
#

!e ```py
Bad_dict = {
[1, 2, 3]: "one two three",
}

wise cargoBOT
#

@scenic quiver :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     Bad_dict = {
004 |                ^
005 | TypeError: unhashable type: 'list'
scenic quiver
#

!e ```py
good_dict = {
(1, 2, 3): "one two three",
}

wise cargoBOT
#

@scenic quiver :warning: Your 3.11 eval job has completed with return code 0.

[No output]
honest fox
#

The list is mutable because Python calls their mutable list of data a list

robust lichen
honest fox
#

And a tuple is not mutable because Python calls their non-mutable list of data a tuple

scenic quiver
#

Oh I see

#

So, it's just like a standard thing which is predefined right?

#

And one more thing which I am confused is this. Check this out!

honest fox
scenic quiver
#

!e

bad_dict = {
    (1, 2, 3): "one two three", 
}

print(bad_dict[1,2,3])
wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

one two three
honest fox
#

But also it does make some intuitive sense

#

Have you ever heard of pointers?

scenic quiver
#

!e

bad_dict = {
    (1, 2, 3): "one two three", 
}

print(bad_dict[(1,2,3 )])
wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

one two three
robust lichen
#

@whole bear

scenic quiver
scenic quiver
honest fox
#

Okay this is going more in depth than we need to so don't worry if this doesn't make sense

scenic quiver
honest fox
#

A key is not really mutable in the sense that it needs to be constant, so semantically it makes sense that tuples are allowed and lists aren't

scenic quiver
#

The doubt is not regarding that. Did you actually check the difference in both codes. In both I used the tuple

robust lichen
honest fox
#

Sorry which one does not run?

scenic quiver
#

Both are running! That's surprising

robust lichen
honest fox
#

What does the e! command do?

scenic quiver
#

It just executes the code and gives output in this channel

robust lichen
honest fox
#

Hmm

#

Surprises me too that the first runs

#

What does it print

#

The same thing?

vocal basin
#

and key (1,2,3) is present in the dict

scenic quiver
scenic quiver
somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
print(key)

instance = MyClass()
instance[(1, 2, 3)]
instance[1, 2, 3]```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | (1, 2, 3)
002 | (1, 2, 3)
honest fox
#

Does Python document this?

somber heath
#

Python documents a lot.

honest fox
#

Or alternatively do people do that professionally? I'd raise my eyebrows but then again I don't use it a ton

#

To me my first thought was you can't slice a dictionary ๐Ÿ˜…

somber heath
somber heath
#

See also __setitem__

scenic quiver
#

!e ```py
class MyClass:
def init(self, key):
print(key)

instance = MyClass()
instance[(1, 2, 3)]
instance[1, 2, 3]```

wise cargoBOT
#

@scenic quiver :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 5, in <module>
003 |     instance = MyClass()
004 |                ^^^^^^^^^
005 | TypeError: MyClass.__init__() missing 1 required positional argument: 'key'
somber heath
#

!e py hash(slice(0, 1))

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     hash(slice(0, 1))
004 | TypeError: unhashable type: 'slice'
somber heath
#

Dictionaries can't have slices as keys.

#

Though a subclass of dict might if you wrote it to.

#

Well...

#

In terms of accepting the subscript.

#

Which would be weird.

#

General purpose programming languages!

honest fox
#

I guess what I was trying to get at

#

Was

somber heath
#

You can do what you like, even if it's weird.

scenic quiver
#

!e ```py
class MyClass:
def setitem(self, key):
self.key=key

instance = MyClass()
a=instance[(1, 2, 3)]
print(a)
b=instance[1,2,3]
print(b)

wise cargoBOT
#

@scenic quiver :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 6, in <module>
003 |     a=instance[(1, 2, 3)]
004 |       ~~~~~~~~^^^^^^^^^^^
005 | TypeError: 'MyClass' object is not subscriptable
honest fox
#

I would not recommend that someone write code with a tuple that doesn't look like a tuple if it's not a commonly accepted idiom in the language

scenic quiver
#

What's wrong Here?

scenic quiver
honest fox
#

That's cool

somber heath
#

!e ```py
class MyClass:
def setitem(self, key, value):
print(key, value)
def getitem(self, key):
print(key)

instance = MyClass()

instance['A'] = 'B'
instance['C']

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A B
002 | C
scenic quiver
#

If everything that I write by guessing runs! I would be a coding champion..haha

scenic quiver
somber heath
#

Yes.

#

__getitem__ would usually have an explicit return.

#

__setitem__ would return None, but you don't assign to an assignment operation, so it doesn't make sense for __setitem__ to specify a return.

#

Python probably would complain, but maybe not.

honest fox
# somber heath Python documents a *lot*.

I guess it's this? "A tuple of one item (a โ€˜singletonโ€™) can be formed by affixing a comma to an expression (an expression by itself does not create a tuple, since parentheses must be usable for grouping of expressions). "

#

That kind of jogs my memory to maybe seeing it mentioned once as a piece of trivia

somber heath
#

!e ```py
class MyClass:
def setitem(self, key, value):
return 'Non-None'

instance = MyClass()
instance['A'] = 'B'```

wise cargoBOT
#

@somber heath :warning: Your 3.11 eval job has completed with return code 0.

[No output]
honest fox
#

Very confusing

somber heath
#

Hm. Okay. So it doesn't care that it has a return.

honest fox
somber heath
#

!e ```py
class MyClass:
def setitem(self, key, value):
return 'Non-None'

instance = MyClass()
result = instance.setitem('A', 'B')
print(result)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Non-None
scenic quiver
honest fox
#

I mean I wouldn't worry too much about this

somber heath
#

I know that Python gets cranky if __init__ returns a non-None.

#

@quasi tulip๐Ÿ‘‹

honest fox
#

If you ever find that you know what you need to do but don't know the language's syntax

#

That's an easy problem to solve

scenic quiver
honest fox
#

Compared to knowing the syntax but not knowing what to do

somber heath
#

!e ```py
class MyClass:
def init(self):
return 'Non-None'

MyClass()```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 5, in <module>
003 |     MyClass()
004 | TypeError: __init__() should return None, not 'str'
scenic quiver
#

Oh! Now i understand that point you are trying to make

#

Nice

somber heath
#

Getitem makes sense to have a return. You're asking the object for something.

#

Setitem doesn't make sense to have a return. You're telling it to set something to something.

scenic quiver
#

We cannot return none when we use getitem or init right?

somber heath
#

If it has a problem with setting something to something, it can raise an exception and we can deal with that as needed.

#

If it has a problem with getting something, it can raise an exception and we can deal with that as needed.

somber heath
scenic quiver
#

๐Ÿฅฒ

somber heath
#

__init__ has to.

#

__getitem__ returns an arbitrary something.

#

Generally.

#

Based on the key.

somber heath
#

Every callable that completes has to return something.

#

Even print.

#

!e py result = print('Hello, world.') print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, world.
002 | None
somber heath
#

So, whenever you see square brackets after an object/variable, you're seeing either __getitem__ or __setitem__ at play.

scenic quiver
#

Ok, Thanks

somber heath
#

@split canyon๐Ÿ‘‹

split canyon
#

hi

#

hi

#

can yall help me a error

#

by chance

whole bear
#

@split canyon whats the error?

split canyon
#

it says Exception has occurred: error
OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1338: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvWaitKey'
File "C:\Users\Nova\import pyautogui.py", line 42, in <module>
cv2.waitKey(10)
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1338: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvWaitKey'

whole bear
#

@split canyon what dependency are you using?

split canyon
#

sure

whole bear
#

ty

#

py```import pyautogui
import cv2
import numpy as np

define range of yellow color in HSV

lower_yellow = np.array([20, 100, 100])
upper_yellow = np.array([30, 255, 255])

initialize crosshair position

crosshair_pos = (0, 0)

loop to continuously search for yellow color and update crosshair position

while True:
# check if 'h' key is pressed
if pyautogui.keyDown('h'):
# capture frame from application window
frame = pyautogui.screenshot(region=(0, 0, 1920, 1080))
frame = np.array(frame)

    # convert frame to HSV color space
    hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

    # threshold the HSV image to get only yellow colors
    mask = cv2.inRange(hsv, lower_yellow, upper_yellow)

    # find contours in the thresholded image
    contours, _ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

    # loop over the contours
    for cnt in contours:
        # compute the center of the contour
        M = cv2.moments(cnt)
        if M["m00"] != 0:
            cx = int(M["m10"] / M["m00"])
            cy = int(M["m01"] / M["m00"])
            crosshair_pos = (cx, cy)

    # move mouse to crosshair position
    pyautogui.moveTo(crosshair_pos)

# wait for 10 milliseconds to allow for keyboard input
pyautogui.pause(0.01)```
#

@split canyon if ur on Ubuntu or Debian, you can install the required packages using the following command in the terminal:

sudo apt-get install libgtk2.0-dev pkg-config
split canyon
#

im on windows

whole bear
#

there you go

#

make sure to put the version

#

did the modified code i sent you work btw?

wise cargoBOT
somber heath
#

@whole bear๐Ÿ‘‹

#

@fallen gust๐Ÿ‘‹

#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

@fallen gust

scenic quiver
#

Any real applications for this code

#

!e

py
def apply_thrice(func, arg):
    return func(func(func(arg)))

def add_five(x):
    return x + 5

print(apply_thrice(add_five, 10))
wise cargoBOT
#

@scenic quiver :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     py
004 | NameError: name 'py' is not defined
scenic quiver
#

!e

def apply_thrice(func, arg):
    return func(func(func(arg)))

def add_five(x):
    return x + 5

print(apply_thrice(add_five, 10))
wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

25
somber heath
#

Understanding that you can do it.

#

Iterated function systems, maybe, but not written write like that.

scenic quiver
#

I want to know its usage in real world applications.

somber heath
#

It's not especially Pythonic, so you wouldn't code it like that.

#

Any time you have a function that you would want to apply multiple times and feed the result of that back into the function you would probably just use a for loop.

#

!e ```py
def func(value):
return value * 2

value = 5
for _ in range(10):
value = func(value)
print(value)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 10
002 | 20
003 | 40
004 | 80
005 | 160
006 | 320
007 | 640
008 | 1280
009 | 2560
010 | 5120
somber heath
#

!e ```py
def func(value):
result = value * 2
print(result)
return result

value = 5
func(func(func(func(func(func(func(func(func(func(value))))))))))```I wouldn't do this.

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 10
002 | 20
003 | 40
004 | 80
005 | 160
006 | 320
007 | 640
008 | 1280
009 | 2560
010 | 5120
somber heath
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

somber heath
#

Flat is better than nested.

scenic quiver
#

Got it! Thanks

somber heath
#

It'd be a good candidate for a decorator, though.

scenic quiver
#

Can we do a looping in lambda?

somber heath
#

!e ```py
def apply_thrice(func):
def f(value):
for _ in range(3):
value = func(value)
return value
return f

@apply_thrice
def func(value):
return value * 2

result = func(10)
print(result)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

80
somber heath
#

!e py my_lambda = lambda: [i for i in range(5)] #You wouldn't normally assign a variable to a lambda like this result = my_lambda() print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 2, 3, 4]
vocal basin
scenic quiver
#

Interesting

#

!e

print((lambda x: x+5) (10))
wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

15
scenic quiver
#

How do I give a specific count the number of times the function needs to execute in here?

#

I feel using function inside for loop is simple and easy so far!

versed moon
#

Yes

vocal basin
#

!e

def apply_n_times(n):
    def wrapper(f):
        def wrapped(x):
            for _ in range(n):
                x = f(x)
            return x
        return wrapped
    return wrapper

@apply_n_times(10)
def add_1(value):
    return value + 1

print(add_1(5))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

15
scenic quiver
somber heath
#

I love how Zen is all "flat is better than nested", then the typical way of writing decorators with arguments comes along, "okay, we're going to be doing SO MUCH NESTING today, folks".

vocal basin
#

@formal ember bundle two docker images into one?

#

for such things there is docker-compose.yml

vocal basin
#

whatever the end user is, need to use/set up docker-compose.yml

#

in a repository you'd usually provide an example of compose file

#

yes, push either only that image to dockerhub, or don't push anything at all

#

depending on how you're distributing it

#

you'd probably be able to run compose in CI/CD but you wouldn't be able to push any compose details to dockerhub

#

(running it there may be used for integration testing)

somber heath
#

@keen kayak๐Ÿ‘‹

scenic quiver
#

I see that there is this thing called
Yield and we also have lists to get the values.

I saw that using yield is more efficient! How?

vocal basin
#

yield is lazy

scenic quiver
#

!e


def my_generator():
    yield 1
    yield 2
    yield 3

# Using a generator to iterate over values
gen = my_generator()
for val in gen:
    print(val)

# Using a list to iterate over values
lst = [1, 2, 3]
for val in lst:
    print(val)
vocal basin
#

!e

def example_generator():
    print('started')
    yield 0
    print('yielded 0')
    yield 1
    print('yielded 1')
    yield 2
    print('yielded 2')

for value in example_generator():
    print(value)
    break
gentle flint
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | started
002 | 0
gentle flint
#

if you yield, you can already start yielding the first values while you're still fetching the last ones

noble solstice
#

Hii Guys What r u doing?

gentle flint
#

eating a peanut butter sandwich

noble solstice
noble solstice
#

lie*

vocal basin
#

!e

def my_generator():
    yield 1

gen = my_generator()
for val in gen:
    print(val)
for val in gen:
    print(val)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
scenic quiver
#

I would like to understand this in terms of compute time and memory usage for both list and yield

vocal basin
#

yield uses less memory

#

in most cases where that comparison matters

#

you can yield forever but you can't make an infinite list

scenic quiver
#

So, how does yield works? When we yield 1, it stores the value 1 in an address block of memory and it is removed as soon as it is executed?

vocal basin
vocal basin
scenic quiver
#

Means?

#

Example please

scenic quiver
#

You added break at the end

#

!e

def example_generator():
    print('started')
    yield 0
    print('yielded 0')
    yield 1
    print('yielded 1')
    yield 2
    print('yielded 2')

for value in example_generator():
    print(value)
  
wise cargoBOT
#

@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | started
002 | 0
003 | yielded 0
004 | 1
005 | yielded 1
006 | 2
007 | yielded 2
vocal basin
#

!e

def example_generator():
    print('started')
    yield 0
    print('yielded 0')
    yield 1
    print('yielded 1')
    yield 2
    print('yielded 2')

for value, _ in zip(example_generator(), range(2)):
    print(value)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | started
002 | 0
003 | yielded 0
004 | 1
005 | yielded 1
vocal basin
#

without break

#

also

#

I think, switching the order of things in zip(...) will change the output

#

!e

def example_generator():
    print('started')
    yield 0
    print('yielded 0')
    yield 1
    print('yielded 1')
    yield 2
    print('yielded 2')

for value, _ in zip(range(2), example_generator()):
    print(value)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | started
002 | 0
003 | yielded 0
004 | 1
vocal basin
#

yes

#

that's an implementation detail of zip()

scenic quiver
#

I have no idea on zip ()

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0 10
002 | 1 11
003 | 2 12
004 | 3 13
scenic quiver
#

Ok, looks something like
a,b=b,a

#

Doing 2 things at the same time without an erroe

#

Error i mean

noble solstice
#

Hii guys can u try a question?

#

I am unable to solve

spiral siren
#

def max(a,b,c):
i=0
x=0
while i<len(max):
if x>=len(i):
x=x
else:
x=len(i)
return x-1

#

I think use this function and solve

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

@somber heath I am muted

somber heath
#

.topic

viscid lagoonBOT
#
**Tea or coffee? What about milk?**

Suggest more topics here!

vocal basin
#

is there a meaningful phrase of form "all at X or X at all"? (palindrome-ish)

willow gate
#

hi

vocal basin
#

MariaDB, postgres

#

I had to help people with Access in the past, it was a cursed experience but I wasn't harmed
I still have no idea what they were learning with Access

#

write converters in python

#

data pulled out with sql -> python converter thing -> xlsx

#

I know people who use that on a regular basis

#

also

#

for docx

formal ember
#

app runs good but when i run that on docker i get docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: ".": executable file not found in $PATH: unknown. any idea? i tried, different images. and tried to mess up with path but no success.

vocal basin
formal ember
#

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

EXPOSE 5050

CMD ["python", "app.py" ]``` docker file
lucid blade
#

it looks a little like plsql

#

PL/SQL (Procedural Language for SQL) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 6 - stored PL/SQL procedures/functions/packages/triggers since version 7), Times Ten in-memory database (since version 11.2.1), and IBM Db2 (since version 9.7). Orac...

formal ember
#

oh haha.

lucid blade
#

๐Ÿ™‚

formal ember
#

i have no idea about plsql. ๐Ÿ˜†

lucid blade
#

<<label>> -- this is optional DECLARE -- this section is optional number1 NUMBER(2); number2 number1%TYPE := 17; -- value default text1 VARCHAR2(12) := ' Hello world '; text2 DATE := SYSDATE; -- current date and time BEGIN -- this section is mandatory, must contain at least one executable statement SELECT street_number INTO number1 FROM address WHERE name = 'INU'; EXCEPTION -- this section is optional WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('Error Code is ' || TO_CHAR(sqlcode)); DBMS_OUTPUT.PUT_LINE('Error Message is ' || sqlerrm); END;

vocal basin
formal ember
#

๐Ÿ˜†

#

git it

#

got it

#

i was using "dot" at the end shit.

vocal basin
# lucid blade `<<label>> -- this is optional DECLARE -- this section is optional number1 N...

"```sql" seems to almost work for highlighting:

<<label>>   -- this is optional
DECLARE
-- this section is optional
  number1 NUMBER(2);
  number2 number1%TYPE := 17;             -- value default
  text1   VARCHAR2(12) := '      Hello world       ';
  text2   DATE         := SYSDATE;        -- current date and time
BEGIN
-- this section is mandatory, must contain at least one executable statement
  SELECT street_number
    INTO number1
    FROM address
    WHERE name = 'INU';
EXCEPTION
-- this section is optional
   WHEN OTHERS THEN
     DBMS_OUTPUT.PUT_LINE('Error Code is ' || TO_CHAR(sqlcode));
     DBMS_OUTPUT.PUT_LINE('Error Message is ' || sqlerrm);
END;
somber heath
#

@floral geyser ๐Ÿ‘‹

floral geyser
#

hey

#

why i cannot speak

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

willow gate
#

@somber smelt hello

#

@somber heath any good tutorial for android studio

#

yes

#

we have to create 2-3 apps more

#

get stuck with image flipper

#

what?

#

yes

#

@somber heath can you gave some idea about creating gallery in android studio

#

ok

somber smelt
somber heath
#

PANDAS.

digital jackal
#

lebanon

vocal basin
#

.xlsx

digital jackal
#
pd.read_excel('tmp.xlsx', index_col=0, comment='#')  
somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

vocal basin
#

yay my steam profile is broken, what a nice surprise

formal ember
#

US*

#

๐Ÿ˜†

grand plover
#

12 years old

#

girls

#

xd

formal ember
#

it good to get started into programming tho.

vocal basin
#

starting with web scraping won't be a pleasant experience

formal ember
#

may be.

grand plover
#

100 millions people are getting into programming this last 4 years

#

scraping to get original game keys for free

formal ember
#

on other hand I would suggest to understand why he did that? what was going on his mind?

#

don't want to be negative. but it seems serious case.

#

if it is recurring, please consult with your parents.

#

that is better way to go.

#

its been 1 month and it was arrange.

fiery current
#

hi

somber heath
#

@oblique reef๐Ÿ‘‹

vocal basin
oblique reef
#

@somber heath hi

vocal basin
vocal basin
vocal basin
#

this exposes a whole data centre as a single Docker host, to some extent

#

jails is close

vocal basin
#

Solaris Zones

somber heath
#

@raven falcon๐Ÿ‘‹

vocal basin
raven falcon
#

Hello there!
I'm working and just came to listen

vocal basin
vocal basin
#

the (almost) last public commit is mostly just copyright and url change

somber heath
#

@arctic dome๐Ÿ‘‹

arctic dome
#

Hi

#

I don't have permission to speak

somber heath
#

@whole bear๐Ÿ‘‹

arctic dome
#

@formal ember

somber heath
wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

arctic dome
#

You're from India?

whole bear
arctic dome
#

@formal ember You're from India right?

#

I know

#

From your style of speaking

#

The way you laugh

vocal basin
#

I make negative a lot each year
my income for the whole life is one unofficial transaction of roughly $6

#

Paris, Italy is probably cheaper to stay at, if it exists, than Paris, France

formal ember
#

๐Ÿ˜‚

somber heath
#

@raw silo๐Ÿ‘‹

vocal basin
#

@midnight agate have you done everything up to and not including quiz3?

raw silo
#

@somber heathhi

#

how i can speak

#

?

#

there is a mute on my account

#

for no reason

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

@craggy breach๐Ÿ‘‹

craggy breach
#

๐Ÿ‘‹

vocal basin
#

"simple" in that common rustlings theme sense

craggy breach
#

wut is going on?

vocal basin
#

I'm too incompetent to have a proper opinion on layoffs in companies based outside of CIS member states

#

Commonwealth of Independent States

#

Russia, Belarus, Kazakhstan and others

arctic dome
#

Hi

vocal basin
arctic dome
#

Hello

#

@shy pulsar

#

@formal ember

#

What are you talking about?

shy pulsar
somber heath
#

@flint wave๐Ÿ‘‹

arctic dome
#

Hello Indians

whole bear
#

damn the vc gon real quiet fr fr

somber heath
#

@bold sage๐Ÿ‘‹

arctic dome
#

Bhai accent change mat karo

#

Aise hi thik hai

vocal basin
# vocal basin it's a simple quiz

@midnight agate based on that, I suggest doing the tests group of exercises right after it
or even also lifetimes and iterators
(stopping right before threads which aren't easy)

#

(sorry for tautology) FastAPI's API (both the interface accessed by program(mer)s and by external services)

#

also, some of my own APIs/libraries/whatever are easy for me to use (because I build them as such)

shy pulsar
#

Is FASTAPI is simpler to Django

vocal basin
#

for me it was simpler

#

even simpler and straightforward than Flask, in some cases

somber heath
#

@peak pagoda ๐Ÿ‘‹

vocal basin
#

one core decided not to participate in compilation

#

I'm compiling without the proper configs/flags

somber heath
#

@wanton sleet๐Ÿ‘‹

vocal basin
#

what is base_dir?

whole bear
#

sup

#

goodbye

willow gate
#

yes

#

we done with all

vocal basin
willow gate
#

lol

#

that p is practical 1

#

one practical have 2 files java and xml

#

txt

#

that are txt

#

like our all friends can copy or download it

#

ok wait i will show you later on

#

what was that

#

@somber heath

#

its a meme page

#

?

sterile nymph
#

def solve(mat):
# CODE HERE
l=[]
for i in range(len(mat)):
l.append(mat[i][1])
a = list(set(l))
a.sort()
temp= a[1]
res=[]
for i in range(len(mat)):
if temp==mat[i][1]:
res.append(mat[i][0])
res.sort()
return res

#

can anyone explain me this

somber heath
#

@final crane ๐Ÿ‘‹

#

Had to jiggle my audio setup.

#

I was saying hi back but it wasn't going through.

amber pagoda
#

hi @somber heath !!

#

are you coding?

somber heath
#

@still shell ๐Ÿ‘‹

still shell
#

oh ih

#

hi*

#

ah i wanna learn python

#

are you an ai?

#

ah

amber pagoda
#

@still shell Iยดm learning too

#

Iยดm trying to code a bot but I canยดt print

#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

still shell
#

yea but im like super beginer

#

like i only know print and input and learning how to use "if"

amber pagoda
#

Iยดm a beginner too

#

do you know Functions?

still shell
#

no

#

im doing a conversation

amber pagoda
#

What I can help you? I donยดt know much but what I know I can share with you

still shell
#

name = input("what is your name? ")
age = input("hello " + name + ", how old are you? ")
carier = input("ok your name is " + name + " and you are " + age + "old, ok are you a how is your carrer")
print("you are " + name + " and you are " + age + " old and your are a " + carier)

#

i do know variables

amber pagoda
#

cool... do you studied F format?

still shell
#

ah what?

vocal basin
#

!d f-strings

wise cargoBOT
#

2.4.3. Formatted string literals

New in version 3.6.

A formatted string literal or f-string is a string literal that is prefixed with 'f' or 'F'. These strings may contain replacement fields, which are expressions delimited by curly braces {}. While other string literals always have a constant value, formatted strings are really expressions evaluated at run time.

Escape sequences are decoded like in ordinary string literals (except when a literal is also marked as a raw string). After decoding, the grammar for the contents of the string is:

amber pagoda
#

like

carier = input(f"ok your name is " {name} + " and you are "{age} + "old, ok are you a how is your carrer")

still shell
#

ok

#

no

amber pagoda
# wise cargo

uauuuuu itยดs great! how I can search other commands?

vocal basin
still shell
#

im actually pretty young , i still dont study that kind of things, i just want to learn python cus in the future i want to be a software engineer

amber pagoda
#

what is difference when I put f and .format?

still shell
#

does anybody know java , javascript or html?

somber heath
wise cargoBOT
#

str.format(*args, **kwargs)```
Perform a string formatting operation. The string on which this method is called can contain literal text or replacement fields delimited by braces `{}`. Each replacement field contains either the numeric index of a positional argument, or the name of a keyword argument. Returns a copy of the string where each replacement field is replaced with the string value of the corresponding argument.

```py
>>> "The sum of 1 + 2 is {0}".format(1+2)
'The sum of 1 + 2 is 3'
```  See [Format String Syntax](https://docs.python.org/3/library/string.html#formatstrings) for a description of the various formatting options that can be specified in format strings.
amber pagoda
vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

ok your name is Alice and you are 1001 years old
amber pagoda
#

How I can print the number choosed?

still shell
amber pagoda
#

def services(choose):
if b == 1:
print('1')
if b == 2:
print('2')
if b == 3:
print('3')
if b == 4:
print('4')

services('choose')

#

Iยดm trying to make a interative bot. The user choose a number and the message is printed

still shell
#

yea input

#

what does "int" do?

amber pagoda
wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

amber pagoda
#
print("Oi, tudo bem?", a)

print("Escolha uma opรงรฃo: ")
print("Digite:\n '1' para DESENVOLVIMENTO DE SITES,\n '2' para MARKETING DIGITAL,"
      "\n '3' para AUDIOVISUAL,\n '4' para TREINAMENTOS:")
b = input()


def services(choose):
    if b == 1:
        print('1')
    if b == 2:
        print('2')
    if b == 3:
        print('3')
    if b == 4:
        print('4')


services('choose')
still shell
#

how do i fix these (int(intput))=("Hello world ")

#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

vocal basin
#

eh, not formatting

still shell
#

!e (int(intput))=("Hello world ")

#

how is int(input written

vocal basin
#

!e

print(f"{int( 5 )=!r:^3}")
print(f"{int('5')=!r:^3}")
print(f"{str( 5 )=!r:^3}")
print(f"{str('5')=!r:^3}")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | int( 5 )= 5 
002 | int('5')= 5 
003 | str( 5 )='5'
004 | str('5')='5'
vocal basin
#

yay I did it

somber heath
#
name = input('What is your name?')
print(f'Hello, {name}.')```
still shell
#

ok

#

is it "" + name or {name}?

amber pagoda
#

why I canยดt hear the OpalMist?

still shell
#

he is talking

amber pagoda
#

somebody know?

vocal basin
#
"[" + str(name) + "]"
f"[{name}]"
still shell
#

try leave and join

amber pagoda
#

ok

vocal basin
#

I can hear

amber pagoda
#

yes

#

uuuuhhhh

#

Iยดm happy

still shell
#

do you all use vs code

somber heath
#

!e py name = 'Peter' print('Hello, ' + name) print(f'Hello, {name}.')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, Peter
002 | Hello, Peter.
amber pagoda
#

I fight with Discord sometimes lol

still shell
#

@somber heath are you from london?

#

ah

vocal basin
amber pagoda
#

@somber heath F strings is used only in python 3?

still shell
#

ok

vocal basin
#

there is python 2 docker

amber pagoda
vocal basin
amber pagoda
#

I have used pycharm and vc code

vocal basin
amber pagoda
#

python 2 is more difficult to learn?

#

i need to buy a microphone

#

to show how horrible my english is

#

๐Ÿ˜‚

vocal basin
amber pagoda
#

a curiosity...

#

who defined letters like i, j and l in the language?

vocal basin
#

l as a variable name is against pep8

amber pagoda
#

unnnn

vocal basin
#

_ is also a soft keyword

amber pagoda
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

amber pagoda
#

range, I need search

vocal basin
amber pagoda
#

!code range

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

somber heath
#

!e py for i in range(5): print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
vocal basin
amber pagoda
vocal basin
still shell
#

yea

vocal basin
still shell
#

run this?

#

this code hits hard

vocal basin
amber pagoda
#

Iยดm going to cook a lamian chinese food but I will with my earphone to hear and learn when I cook

vocal basin
amber pagoda
#

in five minute I come back

#

๐Ÿ˜‚

#

Iยดm back, with my delicious lamian ๐Ÿ˜‚

lucid blade
somber heath
#

@knotty dock๐Ÿ‘‹

knotty dock
#

@somber heath

#

hello

#

i cant speak but im new to python

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

knotty dock
#

and wondering what are the best ways to learn

lucid blade
#

coursera?

knotty dock
#

how do you spell it sorry?

somber heath
#

Corey Schafer, YouTuber, playlists.

#

Downloadable version of the Python documentation. python.org

#

Specifically library.pdf

#

!resources

wise cargoBOT
#
Resources

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

wanton compass
#

In my opinion, I learn best by doing

somber heath
#

Tech with Tim

#

Socratica

wanton compass
#

Watch a few videos, then try to do your own project

knotty dock
#

ah okay is corey schafer good for beginners

somber heath
#

Yes.

knotty dock
#

lovely stuff

#

youre a legend mate

#

thank you both

wanton compass
#

Might I ask what your end goal is?

#

Do you have any projects in mind already?

knotty dock
#

none at all . i just think its kl. I more want to go into html and css for web development but python really intrigues me and i want to learn about it . I was on the course in codecademy but they seemed to easy and i didnt feel like it was going indeath with what i needed to do

#

i feel writing python code is impressive and to be able to do it and understand it would be really good

#

@wanton compass

wanton compass
#

I would reccomend setting an achievable goal by the end of the week

#

Something super basic

#

Do you have any previous programming knowledge in another language, or will python be your first?

#

@knotty dock

lucid blade
somber heath
#

You'd be thinking, "Well...fuck."

#

@upper girder ๐Ÿ‘‹

upper girder
#

Hey

upper girder
lucid blade
#

"8080" was chosen since it is "two 80's", and also because it is above the restricted well known service port range (ports 1-1023, see below). Its use in a URL requires an explicit "default port override" to request a web browser to connect to port 8080 rather than the http default of port 80.

#

but my uname refers to the processor

somber heath
#

@fast shale๐Ÿ‘‹

knotty dock
#

a

warped raft
somber heath
#

@sand willow๐Ÿ‘‹

sand willow
#

Hii

#

Just checking out

#

Don't mind me

#

@somber heath
bye, have a great day

somber heath
#

@gilded vector ๐Ÿ‘‹

#

@raven path๐Ÿ‘‹

raven path
#

hi what are you doing

gilded vector
#

hi

#

how long have you been learning python for @somber heath

#

?

#

gotcha, i was just curious about learning it and if it's worth it.

#

i can barely understand it lol, i come from welding but have always been interested in coding stuff

somber heath
#

@wary haven๐Ÿ‘‹

ancient lily
#

hello

gilded vector
#

can you learn with only an hour or 2 a day?

#

not a lot of free time here

#

where would be the best place to start?

somber heath
#

!resources

wise cargoBOT
#
Resources

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

gilded vector
#

ah

somber heath
#

Corey Schafer, YouTuber, playlists.

gilded vector
#

what kind of things can it be used for?

#

gotcha

#

so could it be learned in a year?

#

okay

#

that's heavy

#

did you have a mentor?

#

or all self taught?

raven path
#

dude I'm learning JavaScript on GeeksforGeeks Which trainer should I look for for JavaScript training?

gilded vector
#

could it be helpful to have one?

#

okay

wary haven
raven path
#

i look nodeJS on Geeksforgeeks

#

next i learn nextjs

#

this is good?

wary haven
#

a lot

#

nextjs is like react, but with the node stuff in so you can build api and etc.

#

so you don't need a back-end to start build something