#voice-chat-text-0
1 messages ยท Page 98 of 1
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:
would I be able to get a job with knowing python alone
pep has a song!!! uuuaaallll
it's a song made by one of the people in this server
i would be able to work 3 months without receiving a salary just to learn english and python lol
written and performed by our very own lemon
I liked
I play guitar
lemon does live performances here sometimes, really good stuff.
@somber heath but 3.11 ..
i would suggest you work
3 month of python doesn't give you a work
i like python because it makes it easier to understand other languages easier to read and I really enjoy scalability
compile times are a problem with C also, from what I gather?
the experience is most valeu for me
python is lovely
and it has good libs
๐ I am confused about envs.
im looking towards getting a job in data science
containers.. remote instances.. local.. docker or no docker..
its not at all
what field of data science?
docker and kubernet, do you know?
@somber heath you lives in London?
basic understanding only.
Opal is from Austrailia
docker can be used a few different ways
@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
i suggest you take a tour and see what is your thing
cloud is the best way to use them?
data science isn't what people normally see at first glance
cloud is expensive.
like Azure, AWS and GCP?
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
in Minecraft
understanding databases is important as well
really at this point you need a basic tutorial for python
I recently achieved the Azure AZ-900 certification
relational vs non-relational .. you can't hop midstream from one to the other
how do you find open source projects to contribute towards?
!source
https://up-for-grabs.net/#/filters?tags=python
this is available too
cs50x would be better for starters
tho cs50p is really good
why do you have them?
if your intention is to learn python exclusively, I'd say cs50x isn't neccesarily a requirement.
live and grow king
cs50p is not as basic as a beginner needs
a basic understanding of CS is excellent and David Malan is fantastic.
i would say corey shafer is better for an absolute beginner
it wouldn't hurt to learn both, and I would agree if you're to do that then start with CS50x
would you recommend learning a langue first over a cs50 to get an understanding
cs50 tends to go fast on some of the stuff
specially oop
CS50x is a basic intro to a variety of programming languages
so corey is better for start
and cs50 is better for complition
CS50p is a basic intro to python
im little burnt out on my udemy python class and was thinking about starting cs 50
also let's not forget the lovely socratica
As a Brazilian, I didn't even know there was cs50... I added it to my favorites to watch later... thanks
I've hit burnout a number of times in the past 4 years, its okay to take a break.
they have a discord also.
Iยดll figure out
somone i love is https://www.youtube.com/@PythonSimplified
Hi everyone! My name is Mariya and I'm a Developer from Vancouver, British Columbia.
I film simple programming tutorials about Computer Science Concepts, GUI Applications, Machine Learning and Artificial Intelligence, Automation and Web Scraping, Data Science and even Math! ๐ค
I'm here to help you with your programming journey (in particular - yo...
when you build a venv, does it host all of python in the directory that you created it
you know some knows what there talking about by the way they pronounce icons
i am yet to see a better oop tutorial than corey
either books or videos
he is number 1
socratica kinda dope
tutorials shouldn't be so boring
the reason i even got into programing or tech is your micheal revves and ltt
"and if you're using C++, then I'm glad that you are using Python" -Socratica ๐
indians still are the number 1 language tutors on youtube tho
"use your mouse skills to click the link"๐
population density dictates that.
i like to keep naresh IT around just in case
tho i feel like they mostly care about java
Socratica prob the best thing im leaving here today with these are fun
socratica is gonna get u through python and sql to a good point
but will not be enough
they don't have the budget
GIVE ME MORE
they are a small studio
you want video give them money
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
see instead of funding expensive for profit university's the government should just give money to socratica
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
yeah one thing would be to tell where the skill curve starts
I like Amigoscode
MONEY!
_socratica
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.
using your skills are important
that is true, if you've got an aptitude for ML, definitely sway in that direction as you learn.
i like that 5 people in voice chat and not 1 is talking
in 3 days ill have vc privilege
but the most important thing in python is
learning how to use cowsay
I'm at my in-laws, no mic. otherwise I would be.
that is the best lib in python
im looking internships on indeed what is ETL
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>
hello @thick pulsar
hello @valid elk
hey @somber heath
how can we create csv
file
it is for java
thanks
very helpful
!voice @valid elk
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!e py if True: print('A') elif True: print('B') elif False: print('C') elif True: print('D') else: print('E')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
A
!e py if False: print('A') elif True: print('B') elif False: print('C') elif True: print('D') else: print('E')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
B
!e py if False: print('A') elif False: print('B') elif False: print('C') elif True: print('D') else: print('E')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
D
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
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.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@spark kettle ๐
@somber heath hello
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stray cloud ๐
The 11foo8 bridge is a railroad trestle over Gregson St in Durham, North Carolina and it has earned a reputation for for its rigorous enforcement of the laws of physics. No truck taller than 11 feet and 8 inches will pass under this stubborn piece of infrastructure. Period. On this channel we document the various attempts of hapless drivers tryi...
The playlist with load of help videos is https://youtube.com/playlist?list=PLkXjaDpCxSDhsaF-rNq_R2EhkIZz8Tyz_
@LearnEverythingAboutDesign is a fantastic channel, check them out here: - https://www.youtube.com/c/LearnEverythingAboutDesign
For clarity, I am part of the Autodesk Creator program however I have received no direct payment, instruct...
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
...
@twilit spire๐
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...
!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)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[17.20729309 24.57456133]
import pygame
print "hello world":
@tired moon๐
hello @somber heath
@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
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath I'm also going buddy, will see you guys later. and thanks for the insight
I'm not sure I'm interested. Doubly so it if requires DMs.
What is it?
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
Please don't talk to me.
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
hi
yeah he is just like that
an interesting character
he's a fun guy
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hi
Welcome to patterns.
@hybrid hill๐
yes?
The system does not allow me to speak in pair. unauthorized
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@gusty glade๐
Selam
ilk defa burda tรผrk gรถrdรผm
Neden olmasฤฑn da saรงma kurallar var pair de konuลturmuyor sistem
harbiden mk o zaman neden voice channel var
50 mesaj bilmem ne birลeyler yazmฤฑลlar.
eee
bu kanala bakarsan
bi girmiลtim sonra okumaya รผลendim safafsfsaad
neyse kral รงok memnun oldum
kendine iyi bak
gssdfsdkjfdsfsdh ayen
What r u doing on Voice Chat 0?
Sorry. My English is very leak.
Everyone is quiet. There is nothing in sight
@chilly crown๐
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.
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.
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.
i'm gonna have to go now see you guys later
!code
Parent class:
https://paste.pythondiscord.com/oromeqacok
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: []
hello OpalMist, good day
def main():
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
arc = AudioRC_Server(sock)
arc.connect(IP, PORT)
arc.accept_connections()```
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yes
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
XD
mic , network issues , they all affects streaming quality
convergence , ya
ok, good to chat (text) with you , bye (go back for coding)
okay. bye
@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?
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
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
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
@honest fox๐
@somber heath hey how are you
@honest fox hi how are you
Oo
last week chatgpt scammed me before exam I create some notes for ready after an hour chatgpt was not working for 24 hours
๐ฅฒ
Code your own autoregressive language model with RL feedback
๐ ๐คทโโ๏ธ
But joking aside sorry about that
that's going to take even more storage
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"
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
pip install torch torchvision
^^^^^
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
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
use cloud, become enslaved to infrastructure provided by corporations in exchange for less problems like this
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"
"run inside a container and install as root there"
pip will still argue anyway
You should use Venv with Pip
Python 3.10.9
python lowercase
and, if not aliased, python3
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
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
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
import time might hypothetically get a little bit faster
It's closer to assembly
!d compile
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).
roughly the output of this
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
no, CPython doesn't JIT
Ah I see
PyPy uses JIT
RustPython needs you to explicitly call f.__jit__() to compile f
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?
In general, without going into more detail and simplifying things, as a user you do not need to compile python code
!e
code
!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!
@scenic quiver
That's a bit of an implementation detail of python
!e ```py
Bad_dict = {
[1, 2, 3]: "one two three",
}
@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'
!e ```py
good_dict = {
(1, 2, 3): "one two three",
}
@scenic quiver :warning: Your 3.11 eval job has completed with return code 0.
[No output]
The list is mutable because Python calls their mutable list of data a list
And a tuple is not mutable because Python calls their non-mutable list of data a tuple
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!
I'm actually surprised (as someone who has used Python but not full-time full-time) that tuples are allowed to be used as the key in a dictionary
!e
bad_dict = {
(1, 2, 3): "one two three",
}
print(bad_dict[1,2,3])
@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.
one two three
!e
bad_dict = {
(1, 2, 3): "one two three",
}
print(bad_dict[(1,2,3 )])
@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.
one two three
Yeah! that was one of the doubts that I asked the last time in this chat. It was regarding single linked list. Self.next etc.
Why this is running without an error?
Okay this is going more in depth than we need to so don't worry if this doesn't make sense
This looks correct as I put the () around the numbers 1,2,3
someone sent me this
explaining pointers
lol
I think for this the best answer really is that Python allows tuples to be keys of dictionaries and list are not allowed to be keys of dictionaries
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
The doubt is not regarding that. Did you actually check the difference in both codes. In both I used the tuple
@urban summit
Sorry which one does not run?
Both are running! That's surprising
1
2
What does the e! command do?
It just executes the code and gives output in this channel
bad_dict[1,2,3] is equivalent to bad_dict[(1,2,3)]
and key (1,2,3) is present in the dict
Ah! I see
So,python is clever enough to understand that 1,2,3 is a tuple?
!e ```py
class MyClass:
def getitem(self, key):
print(key)
instance = MyClass()
instance[(1, 2, 3)]
instance[1, 2, 3]```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | (1, 2, 3)
002 | (1, 2, 3)
Does Python document this?
Python documents a lot.
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 ๐
Interesting
See also __setitem__
!e ```py
class MyClass:
def init(self, key):
print(key)
instance = MyClass()
instance[(1, 2, 3)]
instance[1, 2, 3]```
@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'
!e py hash(slice(0, 1))
@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'
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!
You can do what you like, even if it's weird.
!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)
@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
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
What's wrong Here?
I just wrote it by guessing ๐คฃ. Lol
!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']
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A B
002 | C
If everything that I write by guessing runs! I would be a coding champion..haha
So, setitem and getitem are predefined for a purpose in python right?
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.
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
!e ```py
class MyClass:
def setitem(self, key, value):
return 'Non-None'
instance = MyClass()
instance['A'] = 'B'```
@somber heath :warning: Your 3.11 eval job has completed with return code 0.
[No output]
Very confusing
Hm. Okay. So it doesn't care that it has a return.
Actually no I think I was wrong
!e ```py
class MyClass:
def setitem(self, key, value):
return 'Non-None'
instance = MyClass()
result = instance.setitem('A', 'B')
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Non-None
Yeah๐ฅฒ
I mean I wouldn't worry too much about this
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
If you are returning none then how will it set the value to a specific key. I am confused
Compared to knowing the syntax but not knowing what to do
!e ```py
class MyClass:
def init(self):
return 'Non-None'
MyClass()```
@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'
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.
We cannot return none when we use getitem or init right?
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.
__getitem__ can absolutely return None.
๐ฅฒ
__init__ has to.
__getitem__ returns an arbitrary something.
Generally.
Based on the key.
Every callable that completes has to return something.
Even print.
!e py result = print('Hello, world.') print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | None
So, whenever you see square brackets after an object/variable, you're seeing either __getitem__ or __setitem__ at play.
Ok, Thanks
@split canyon๐
@split canyon whats the error?
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'
@split canyon what dependency are you using?
also could you send the code?
sure
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
im on windows
pip install opencv-python-headless[version]
there you go
make sure to put the version
did the modified code i sent you work btw?
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@fallen gust
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))
@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
!e
def apply_thrice(func, arg):
return func(func(func(arg)))
def add_five(x):
return x + 5
print(apply_thrice(add_five, 10))
@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.
25
Understanding that you can do it.
Iterated function systems, maybe, but not written write like that.
I want to know its usage in real world applications.
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)```
@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
!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.
@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
!zen
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!
Flat is better than nested.
It'd be a good candidate for a decorator, though.
Can we do a looping in lambda?
!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)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
80
In bracketed expressions, yes.
!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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0, 1, 2, 3, 4]
In mathematics, Church encoding is a means of representing data and operators in the lambda calculus. The Church numerals are a representation of the natural numbers using lambda notation. The method is named for Alonzo Church, who first encoded data in the lambda calculus this way.
Terms that are usually considered primitive in other notations ...
@scenic quiver :white_check_mark: Your 3.11 eval job has completed with return code 0.
15
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!
Yes
!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))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
15
I don't see lambda in here!
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".
ambiguous wording:
"wrapped" can mean something that's been a result of wrapping or a target of wrapping
idk what to use instead
@formal ember bundle two docker images into one?
for such things there is docker-compose.yml
in short, you're not supposed to do that
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)
@keen kayak๐
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?
yield is lazy
!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)
!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
if you return a list, you need all the values before you can return it
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | started
002 | 0
if you yield, you can already start yielding the first values while you're still fetching the last ones
Hii Guys What r u doing?
eating a peanut butter sandwich
Tasty!!
lie*
if you run for val in gen: again, it won't output the same values
!e
def my_generator():
yield 1
gen = my_generator()
for val in gen:
print(val)
for val in gen:
print(val)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
1
Oh I see!
I would like to understand this in terms of compute time and memory usage for both list and yield
yield uses less memory
in most cases where that comparison matters
you can yield forever but you can't make an infinite list
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?
difference similar to that between range(N) and list(range(N))
code after yield doesn't get executed until you ask for a next value
this
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)
@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
!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)
@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
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)
@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
I have no idea on zip ()
!e
for a, b in zip(range(5), range(10, 14)):
print(a, b)
@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
Ok, looks something like
a,b=b,a
Doing 2 things at the same time without an erroe
Error i mean
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
@whole bear ๐
@somber heath I am muted
.topic
"all at once or none at all"
is there a meaningful phrase of form "all at X or X at all"? (palindrome-ish)
hi
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
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.
because some broken standards of cross-corporation interactions
what ENTRYPOINT/CMD?
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5050
CMD ["python", "app.py" ]``` docker file
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...
oh haha.
๐
i have no idea about plsql. ๐
<<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;
and what command are you running it with?
"```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;
@floral geyser ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@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
PANDAS.
lebanon
.xlsx
pd.read_excel('tmp.xlsx', index_col=0, comment='#')
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yay my steam profile is broken, what a nice surprise
it good to get started into programming tho.
starting with web scraping won't be a pleasant experience
may be.
100 millions people are getting into programming this last 4 years
scraping to get original game keys for free
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.
hi
@oblique reef๐
@somber heath hi
this one is an open-source cloud infrastructure too
@midnight agate can you guess what OS this runs on?
there is a preview image thing
this exposes a whole data centre as a single Docker host, to some extent
jails is close
illumos
there's a thing that evolved from bsd jails
Solaris Zones
@raven falcon๐
and it has some specific variations fit for linux/docker
Hello there!
I'm working and just came to listen
LX-branded Zones and whatever Triton uses
it got moved from Joyent to MNX at some point in 2022
the (almost) last public commit is mostly just copyright and url change
@arctic dome๐
@whole bear๐
@formal ember
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You're from India?
sup dawg
@formal ember You're from India right?
I know
From your style of speaking
The way you laugh
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
๐
@raw silo๐
@midnight agate have you done everything up to and not including quiz3?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@craggy breach๐
๐
it's a simple quiz
"simple" in that common rustlings theme sense
wut is going on?
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
Hi
first two govern the thing and gradually become a single state
and the third one has some administrative power
project
@flint wave๐
Hello Indians
damn the vc gon real quiet fr fr
@bold sage๐
@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)
Is FASTAPI is simpler to Django
@peak pagoda ๐
one core decided not to participate in compilation
I'm compiling without the proper configs/flags
@wanton sleet๐
what is base_dir?
the structure of this repository messes with my brain somewhat
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
?
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
@final crane ๐
Had to jiggle my audio setup.
I was saying hi back but it wasn't going through.
@still shell ๐
@still shell Iยดm learning too
Iยดm trying to code a bot but I canยดt print
!code
yea but im like super beginer
like i only know print and input and learning how to use "if"
What I can help you? I donยดt know much but what I know I can share with you
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
cool... do you studied F format?
ah what?
!d f-strings
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:
like
carier = input(f"ok your name is " {name} + " and you are "{age} + "old, ok are you a how is your carrer")
uauuuuu itยดs great! how I can search other commands?
carier = input(f"ok your name is {name} and you are {age} old, ok are you a how is your carrer")
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
syntax error
donยดt need more to put F?
what is difference when I put f and .format?
does anybody know java , javascript or html?
!d str.format
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.
I know html and css and a little js
!e
name = "Alice"
age = 1001 # [#voice-chat-text-0 message](/guild/267624335836053506/channel/412357430186344448/)
print(f"ok your name is {name} and you are {age} years old")
@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
ok
How I can print the number choosed?
float right?
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
integer I guess
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')
code
!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!
eh, not formatting
!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}")
@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'
yay I did it
name = input('What is your name?')
print(f'Hello, {name}.')```
why I canยดt hear the OpalMist?
he is talking
somebody know?
"[" + str(name) + "]"
f"[{name}]"
try leave and join
ok
do you all use vs code
!e py name = 'Peter' print('Hello, ' + name) print(f'Hello, {name}.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, Peter
002 | Hello, Peter.
I fight with Discord sometimes lol
VS Code/PyCharm CE
incidentally IDLE or other options
@somber heath F strings is used only in python 3?
ok
introduced in 3.6, iirc
there is python 2 docker
unnnn
with roughly only one version available (the last one)
I have used pycharm and vc code
docker thing for it is, like, the least worst option if you have to use it
python 2 is more difficult to learn?
i need to buy a microphone
to show how horrible my english is
๐
yes
l as a variable name is against pep8
unnnn
_ is also a soft keyword
!code
range, I need search
iirc, unlike Rust which enforces it to be unusable for direct assignments
!code range
!e py for i in range(5): print(i)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
although, apparently, you can assign to anything if you try hard enough
yes, is it
(talking about Rust not Python)
yea
let r#return = 5;
println!("{return}");
even r# doesn't overrule that
Iยดm going to cook a lamian chinese food but I will with my earphone to hear and learn when I cook
_ is banned there as an identifier
Dr. Alex Filippenko (University of California, Berkeley)
Mar. 8, 2023
We have a new supersensitive eye in the cosmic sky. Parked nearly one million miles from Earth, the James Webb Space Telescope (JWST) is 100 times more sensitive than the Hubble Space Telescope. JWST observes at the red to the mid-infrared parts of the spectrum, offering new i...
@knotty dock๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
and wondering what are the best ways to learn
coursera?
how do you spell it sorry?
Corey Schafer, YouTuber, playlists.
Downloadable version of the Python documentation. python.org
Specifically library.pdf
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
In my opinion, I learn best by doing
Watch a few videos, then try to do your own project
ah okay is corey schafer good for beginners
Yes.
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
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
Hey
Hello
"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
python will be the first
@fast shale๐
a
@sand willow๐
hi what are you doing
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
@wary haven๐
hello
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?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
ah
Corey Schafer, YouTuber, playlists.
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?
dude I'm learning JavaScript on GeeksforGeeks Which trainer should I look for for JavaScript training?
I think maybe you should look for frameworks