ModernPython
ModernPython
  • Видео 636
  • Просмотров 164 091

Видео

If, ElIf, Else, and Match for Python conditional flow
Просмотров 42Год назад
If, ElIf, Else, and Match for Python conditional flow
Conditional Tests in Python
Просмотров 61Год назад
Conditional Tests in Python
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
Sorting and ordering your Python lists
Просмотров 18Год назад
Sorting and ordering your Python lists
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 🐍
Basic Numbers 🔢 in Python 🐍
Просмотров 92Год назад
Basic Numbers 🔢 in Python 🐍
Having FUN💥 with Python 🐍 strings
Просмотров 19Год назад
Having FUN💥 with Python 🐍 strings
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

Комментарии

  • @Winser2003
    @Winser2003 23 дня назад

    Nice

  • @Montyidk
    @Montyidk 24 дня назад

    File "<stdin>", line 1 python3 -m ensurepip

  • @HelicopterHoneymoon
    @HelicopterHoneymoon 28 дней назад

    great to know!

  • @avengerssuard7801
    @avengerssuard7801 29 дней назад

    Great sir

  • @GorillaMonkeyy
    @GorillaMonkeyy Месяц назад

    Thank you so much! You are a life saver !

  • @luisrobles_CL
    @luisrobles_CL Месяц назад

    thanks!

  • @user-pr6ij7hh9n
    @user-pr6ij7hh9n Месяц назад

    Hi

  • @gustavojuantorena
    @gustavojuantorena 2 месяца назад

    Nice explanation, you have a new subscriber

    • @ModernPython
      @ModernPython Месяц назад

      @@gustavojuantorena thanks for the feedback

  • @amansagar4948
    @amansagar4948 2 месяца назад

    Is this network call asynchronous? How does async work in python

    • @ModernPython
      @ModernPython 2 месяца назад

      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.

    • @amansagar4948
      @amansagar4948 2 месяца назад

      @@ModernPython ok man thanks.

    • @ModernPython
      @ModernPython Месяц назад

      @@amansagar4948 thanks for the feedback

    • @amansagar4948
      @amansagar4948 Месяц назад

      @@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.

  • @PraveenKumarTiwari-zg6cg
    @PraveenKumarTiwari-zg6cg 2 месяца назад

    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

    • @ModernPython
      @ModernPython 2 месяца назад

      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.

  • @HelicopterHoneymoon
    @HelicopterHoneymoon 2 месяца назад

    seriously this channel is a GOLD MINE! Helping me so much with my DS homework!

    • @ModernPython
      @ModernPython 2 месяца назад

      Thanks for the feedback!!!

  • @yvrary
    @yvrary 2 месяца назад

    ty

  • @PriyankaJha-rw3dd
    @PriyankaJha-rw3dd 3 месяца назад

    First

  • @Lighter7900music
    @Lighter7900music 3 месяца назад

    I like "enooooms"

    • @ModernPython
      @ModernPython 3 месяца назад

      Python enums: because who doesn't love giving names to numbers? 😂🐍

  • @alfathterry7215
    @alfathterry7215 3 месяца назад

    Keep making short content about oop python like this sir, your explanations are really clear. Subscribed

    • @ModernPython
      @ModernPython 3 месяца назад

      Thank you so much for the encouragement.

  • @Scruffyx56
    @Scruffyx56 4 месяца назад

    indent =4 worked!

    • @ModernPython
      @ModernPython 4 месяца назад

      Thanks for the feedback!!!!

  • @benjaminibarra1344
    @benjaminibarra1344 4 месяца назад

    just what I was looking for

    • @ModernPython
      @ModernPython 4 месяца назад

      Thanks for the feedback!!!!

  • @Chess_innit-lk7ld
    @Chess_innit-lk7ld 4 месяца назад

    THANK YOUU

  • @__adrian__martin__
    @__adrian__martin__ 4 месяца назад

    i have problems with using the property of !include

    • @ModernPython
      @ModernPython 4 месяца назад

      Can you post the code snippet, would be happy to take a look.

    • @__adrian__martin__
      @__adrian__martin__ 4 месяца назад

      @@ModernPython ok, %YAML 1.2 ---- !include ./config/routes.yaml

  • @hoangthinh4683
    @hoangthinh4683 5 месяцев назад

    thank for your tip. but how to read line content if search result is true?

    • @ModernPython
      @ModernPython 5 месяцев назад

      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()

  • @paradox473
    @paradox473 5 месяцев назад

    You don’t need the A

    • @ModernPython
      @ModernPython 5 месяцев назад

      You are right. The A just allows an alpha channel, so depends if you need that feature or not.

  • @SoggyWheat79
    @SoggyWheat79 6 месяцев назад

    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

    • @ModernPython
      @ModernPython 6 месяцев назад

      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.

    • @SoggyWheat79
      @SoggyWheat79 6 месяцев назад

      @@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.

  • @Unidentified_Suspect
    @Unidentified_Suspect 6 месяцев назад

    It diddnt work for window width

  • @josevannel4819
    @josevannel4819 6 месяцев назад

    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

    • @ModernPython
      @ModernPython 6 месяцев назад

      I would add some print statements to see if it is reaching the method. You should see them in the terminal.

  • @JenniferLi-d3n
    @JenniferLi-d3n 7 месяцев назад

    thank you king

  • @JenniferLi-d3n
    @JenniferLi-d3n 7 месяцев назад

    thank you king

  • @leonardoalfaro9311
    @leonardoalfaro9311 7 месяцев назад

    Thanks!

  • @inteligenciaartificiuau
    @inteligenciaartificiuau 7 месяцев назад

    Nice! Thanks!

    • @ModernPython
      @ModernPython 7 месяцев назад

      Thanks for the feedback

  • @luckycapgaming5957
    @luckycapgaming5957 7 месяцев назад

    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.

    • @ModernPython
      @ModernPython 7 месяцев назад

      Are you running as a command line versus inside the Python shell

  • @MikeNeder
    @MikeNeder 8 месяцев назад

    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.

  • @saidiradhia8275
    @saidiradhia8275 9 месяцев назад

    But say for me could not open requirements file

    • @ModernPython
      @ModernPython 8 месяцев назад

      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).

  • @hellrless1
    @hellrless1 9 месяцев назад

    How could you save them into another csv file? thank you for answer :)

    • @ModernPython
      @ModernPython 9 месяцев назад

      The syntax is df.to_csv('new_filename.csv')

    • @hellrless1
      @hellrless1 9 месяцев назад

      Thank you very much 😇

  • @USA51960
    @USA51960 10 месяцев назад

    its saying error ignore the following versions that require a different python version

    • @ModernPython
      @ModernPython 10 месяцев назад

      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.

  • @dipteshmuduli9270
    @dipteshmuduli9270 10 месяцев назад

    Thank You !!!!!!!!!!!!!

  • @paddymullen762
    @paddymullen762 10 месяцев назад

    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

  • @TH-HACK
    @TH-HACK 11 месяцев назад

    Could not open requirements file ?????

    • @ModernPython
      @ModernPython 11 месяцев назад

      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.

    • @fioneeyt7621
      @fioneeyt7621 6 месяцев назад

      How to give permission to access it.

  • @StellahKwasi
    @StellahKwasi 11 месяцев назад

    exactly what I needed. Thanks

    • @ModernPython
      @ModernPython 11 месяцев назад

      Glad it was helpful!!!!

  • @spudo6
    @spudo6 11 месяцев назад

    Thanks a bunch :D

    • @ModernPython
      @ModernPython 11 месяцев назад

      You're welcome. Thanks for the feedback!!!

  • @Myacount-f9s
    @Myacount-f9s 11 месяцев назад

    Thank you my dear. You're helping me a lot.

    • @ModernPython
      @ModernPython 11 месяцев назад

      Thanks for letting me know!!!!

  • @Jinxxedz
    @Jinxxedz 11 месяцев назад

    tank u

  • @MH-yd3gz
    @MH-yd3gz Год назад

    thx

  • @DominicNweze
    @DominicNweze Год назад

    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.

    • @ModernPython
      @ModernPython Год назад

      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.

  • @Sachin_bobin
    @Sachin_bobin Год назад

    What to do if we want integer values as output?

    • @ModernPython
      @ModernPython Год назад

      Just input it as an integer 6, 7, 8. If the column is an integer column it should handle it correctly.

    • @Sachin_bobin
      @Sachin_bobin Год назад

      @@ModernPython thanks buddy

    • @Sachin_bobin
      @Sachin_bobin Год назад

      ​@@ModernPythonmy teacher still uses append function Which is in an old version of python 😅

    • @ModernPython
      @ModernPython Год назад

      It is hard to keep up as new versions roll out!!!@@Sachin_bobin

  • @shaikhkashif9973
    @shaikhkashif9973 Год назад

    Ur legend

  • @aforodoma
    @aforodoma Год назад

    It worked. Thank you

  • @alwinvj6487
    @alwinvj6487 Год назад

    Thanks for this video.

  • @preetidadsena4340
    @preetidadsena4340 Год назад

    Thanku sir,🙏

  • @EvilCherry3
    @EvilCherry3 Год назад

    Is it ever useful though ?

    • @ModernPython
      @ModernPython Год назад

      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.

    • @EvilCherry3
      @EvilCherry3 Год назад

      @@ModernPython True

  • @ModernPython
    @ModernPython Год назад

    Want more?? Subscribe for fresh Python tips and tutorials: www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1

  • @ModernPython
    @ModernPython Год назад

    Want more?? Subscribe for fresh Python tips and tutorials: www.youtube.com/@ModernPython?view_as=subscriber?sub_confirmation=1