- Видео 636
- Просмотров 164 091
ModernPython
США
Добавлен 16 май 2013
All things about MODERN Python programming. Become a better programmer no matter what your current skill level is. I want to create a path for everyone that loves programming to keep getting better. Pandas, web scraping, Flask, ML, we are going to cover it all.
I also want to help people on the path of getting their first programming job with Python. We will explore how to learn, what to learn, and how to gain enough credibility to land that first job. Not everyone (including me), has a computer science degree from a top university.
I started my journey 20 years, broke into programming, and have been doing what I love for the last 20 years. I want to help you break into the industry and get your first programming job or expand your skills and get a better job.
We will explore:
- What to learn
- How to learn
- How to build up enough credibility to get that first job
I also want to help people on the path of getting their first programming job with Python. We will explore how to learn, what to learn, and how to gain enough credibility to land that first job. Not everyone (including me), has a computer science degree from a top university.
I started my journey 20 years, broke into programming, and have been doing what I love for the last 20 years. I want to help you break into the industry and get your first programming job or expand your skills and get a better job.
We will explore:
- What to learn
- How to learn
- How to build up enough credibility to get that first job
Organizing your Python code with functions #python
Organizing your Python code with functions #python
Просмотров: 77
Видео
If, ElIf, Else, and Match for Python conditional flow
Просмотров 42Год назад
If, ElIf, Else, and Match for Python conditional flow
3 ways to iterate over Python dictionaries
Просмотров 52Год назад
3 ways to iterate over Python dictionaries
DICTIONARIES - your SECOND data structure in Python
Просмотров 36Год назад
DICTIONARIES - your SECOND data structure in Python
Range, sum, max, min - build and analyze lists of numbers in Python
Просмотров 83Год назад
Range, sum, max, min - build and analyze lists of numbers in Python
List Comprehension - compact way to build list from a list
Просмотров 52Год назад
List Comprehension - compact way to build list from a list
Reading and writing to Files - your next data source
Просмотров 36Год назад
Reading and writing to Files - your next data source
Playing around with Python lists - add, remove, and update
Просмотров 13Год назад
Playing around with Python lists - add, remove, and update
Grabbing elements from a list or part of string - SLICING
Просмотров 23Год назад
Grabbing elements from a list or part of string - SLICING
LISTS - your FIRST data structure in Python
Просмотров 39Год назад
LISTS - your FIRST data structure in Python
Basic Python String Methods for beginners
Просмотров 36Год назад
Basic Python String Methods for beginners
Make a BETTER guessing game with ELIF and logical greater than and less than
Просмотров 23Год назад
Make a BETTER guessing game with ELIF and logical greater than and less than
Using IF statement with logical == to build a Python number guessing game
Просмотров 54Год назад
Using IF statement with logical to build a Python number guessing game
Keep asking 🥺 until user enters a number 🔢 with WHILE and BREAK
Просмотров 40Год назад
Keep asking 🥺 until user enters a number 🔢 with WHILE and BREAK
Handling errors ❌ with user input in Python 🐍
Просмотров 166Год назад
Handling errors ❌ with user input in Python 🐍
Ask 🤔 User for Information With Input()
Просмотров 12Год назад
Ask 🤔 User for Information With Input()
Your First Python 🐍 Error 😵 Message - Critical Skill To Learn
Просмотров 19Год назад
Your First Python 🐍 Error 😵 Message - Critical Skill To Learn
Python 🐍 Variables - how you store information in your program
Просмотров 21Год назад
Python 🐍 Variables - how you store information in your program
Fire and Forget With Executor API and add_done_callback function
Просмотров 214Год назад
Fire and Forget With Executor API and add_done_callback function
Mental model for what a Python 🐍 program is all about, using Hello World as the initial example.
Просмотров 89Год назад
Mental model for what a Python 🐍 program is all about, using Hello World as the initial example.
3 new ways to wait using Executor API wait()
Просмотров 45Год назад
3 new ways to wait using Executor API wait()
Executor API with submit and as_finished
Просмотров 34Год назад
Executor API with submit and as_finished
Easiest Way to Speed Up Program - Use Executor API
Просмотров 160Год назад
Easiest Way to Speed Up Program - Use Executor API
Introduction to Programming Concurrently in Python
Просмотров 23Год назад
Introduction to Programming Concurrently in Python
How to leverage HackerRank to help land first tech job
Просмотров 502Год назад
How to leverage HackerRank to help land first tech job
Python's version of 'null' and how to check for
Просмотров 17Год назад
Python's version of 'null' and how to check for
Nice
File "<stdin>", line 1 python3 -m ensurepip
great to know!
Thanks for the feedback!!!
Great sir
Thanks for the feedback!!!
Thank you so much! You are a life saver !
Thanks for the feedback!!!!
thanks!
Appreciate the feedback
Hi
Hello back!!!
Nice explanation, you have a new subscriber
@@gustavojuantorena thanks for the feedback
Is this network call asynchronous? How does async work in python
They added async later and it works differently. Some packages have been updated to use it but it is not guaranteed. The requests object is not asynchronous so only good for small number of requests. You will have to switch to asynchronous methods if you are pulling a large number of pages.
@@ModernPython ok man thanks.
@@amansagar4948 thanks for the feedback
@@ModernPython I think js is the best for I/O. I’ve explored golang as well, it makes the requests concurrently but then we need a mutex and so many things. Not really worth it. Js is just the best for i/o, and with tools like bun, we’ve got good runtimes speed.
What does k means here and if it is length then how the python is knowing that you are asking of length bcz we haven't typed len function?? Can you solve my doubt
It is a named parameter of choices. Why k? I have no idea. You pass in a list, and if you want to specify the number of times it pulls items from the list you specify by setting k to a specific number. So you create the list ch that has all the characters you want to pick from. Hope that helps.
seriously this channel is a GOLD MINE! Helping me so much with my DS homework!
Thanks for the feedback!!!
ty
First
I like "enooooms"
Python enums: because who doesn't love giving names to numbers? 😂🐍
Keep making short content about oop python like this sir, your explanations are really clear. Subscribed
Thank you so much for the encouragement.
indent =4 worked!
Thanks for the feedback!!!!
just what I was looking for
Thanks for the feedback!!!!
THANK YOUU
i have problems with using the property of !include
Can you post the code snippet, would be happy to take a look.
@@ModernPython ok, %YAML 1.2 ---- !include ./config/routes.yaml
thank for your tip. but how to read line content if search result is true?
You could use readlines and look for the word in each line. Returning if you find it. for line in s.readlines(): if word in line: return line_str.strip()
You don’t need the A
You are right. The A just allows an alpha channel, so depends if you need that feature or not.
What if I want to write a letter guessing game? The code is similar to this is it not? There are a lot of codes for guessing a number but I can’t find any for writing an alphanumeric code for a guessing game
You can use this to generate the string/number to be guessed by using digits or ascii letters. Then you would need a loop with user input to try and match against.
@@ModernPython Thank you for replying and for replying so quickly! I was able to construct one for a letter guessing game and one for a number guessing game but not one that guesses a random letter or number.
It diddnt work for window width
I have a problem my flask is executing 5he code in the terminal and it doesn't give web browser info and the terminal only last for 25s than it say time out..how do I solve this
I would add some print statements to see if it is reaching the method. You should see them in the terminal.
thank you king
thank you king
Thanks!
Nice! Thanks!
Thanks for the feedback
Sorry, but according to Python 3.11 'install' is not valid syntax. It has to be 3.11, it's an out-of-date file.
Are you running as a command line versus inside the Python shell
I am confused by HackerRank's options. Just now, twice in one week, I received a HackerRank exercise from a company that had React coding challenges. I never saw that before. I would like to practice React challenges in HackerRank but can't find them. Python is right there plain as day. Cannot find React.
But say for me could not open requirements file
Here are common causes of the "could not open requirements file" error when using pip install -r requirements.txt: 1. Incorrect File Path: Double-check the path: Ensure you're in the correct directory where the file is located. Use cd to navigate if needed. Specify the full path: If you're not in the same directory, provide the full path to the file: pip install -r /path/to/requirements.txt. Check for typos: Ensure there are no typos in the filename or path. 2. File Not Found: Verify existence: Confirm that the requirements.txt file actually exists in the specified location. Check case sensitivity: Remember that file paths are case-sensitive on some systems. 3. Insufficient Permissions: Check permissions: Make sure you have read permissions for the file. Use ls -l on Unix-like systems to view permissions. Run as administrator (Windows): If necessary, use sudo on Unix-like systems or run the command prompt as administrator on Windows. 4. Incorrect File Format: Validate format: Ensure the file contains one package name per line, without extra characters or formatting. Remove comments: Comments starting with # should be removed or placed on separate lines. Check encoding: If the file was created on a different system, verify that the encoding is compatible (e.g., UTF-8).
How could you save them into another csv file? thank you for answer :)
The syntax is df.to_csv('new_filename.csv')
Thank you very much 😇
its saying error ignore the following versions that require a different python version
The error "ERROR: Ignored the following versions that require a different python version" occurs when you're trying to install a package using pip, but there are specific versions of the package that are incompatible with your current Python version. This means that pip is skipping those incompatible versions and only installing the ones that are compatible with your Python version. To resolve this issue, you have a few options: Downgrade the package: If you need to use a specific version of the package that is incompatible with your Python version, you may need to downgrade your Python version. This can be done using a virtual environment or by uninstalling and reinstalling Python. Upgrade the package: If possible, try upgrading the package to a version that is compatible with your Python version. You can check the package's documentation or release notes to see if there are newer versions available. Use a different package: If there is no compatible version of the package available, or if you don't want to downgrade or upgrade your Python version, you may need to find a different package that can serve the same purpose.
Thank You !!!!!!!!!!!!!
Glad to help
I built the open source buckaroo data table so you never have to look up pd.set_option again. Take a look, it has sortable columns, summary stats, histograms, and a performant table built in. It works in Jupyter with pandas and polars
Could not open requirements file ?????
2 possibilities. You are not in the directory with the requirements.txt file when running the pip command or you don't have permissions to access it.
How to give permission to access it.
exactly what I needed. Thanks
Glad it was helpful!!!!
Thanks a bunch :D
You're welcome. Thanks for the feedback!!!
Thank you my dear. You're helping me a lot.
Thanks for letting me know!!!!
tank u
thx
I don't get it tho, the bytes already had 53 behind it then when you decoded it, it only put out 53. Like what is the point of decoding a bytes string or a bytes array if we already know what it will give us.
You would be reading bytes from another part of the system without knowing what they are, and need to decode them to strings - maybe to show to users or store in a database.
What to do if we want integer values as output?
Just input it as an integer 6, 7, 8. If the column is an integer column it should handle it correctly.
@@ModernPython thanks buddy
@@ModernPythonmy teacher still uses append function Which is in an old version of python 😅
It is hard to keep up as new versions roll out!!!@@Sachin_bobin
Ur legend
It worked. Thank you
Thanks for this video.
Thanku sir,🙏
Is it ever useful though ?
Every once in a while I have had to use this. Many times I’ve had it happen by mistake and loop over a string when I wasn’t wanting this behavior so it is important to understand the behavior.
@@ModernPython True
Want more?? Subscribe for fresh Python tips and tutorials: www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1
Want more?? Subscribe for fresh Python tips and tutorials: www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1