Python Functions | Python Tutorial for Absolute Beginners #1

7
38

Learn all about Python functions, *args, **kwargs with this Python tutorial for beginners.
🔥Complete Python course for beginners:
🔥Subscribe for more videos like this:

Functions are one of the fundamental building blocks of Python and most programming languages that have ever existed. In this tutorial, you’ll learn everything you need to know about functions in Python.

You’ll learn all about creating and calling functions, as well as working with parameters, arguments, keyword arguments, default arguments, and much, much more.

This is one of the many Python tutorials for beginners I’ve added to my channel.

Python Exercises for Beginners:

Python Cheat Sheet:

Want to learn more from me? Check out my blog and courses:

source
python , Python Functions | Python Tutorial for Absolute Beginners #1 , , u-OmVr_fT4s , https://www.youtube.com/watch?v=u-OmVr_fT4s , https://i.ytimg.com/vi/u-OmVr_fT4s/hqdefault.jpg , 572380 , 5.00 , Learn all about Python functions, *args, **kwargs with this Python tutorial for beginners.
🔥Complete Python course for beginners:
🔥Subscribe for more videos like this:

Functions are one of the fundamental building blocks of Python and most programming languages that have ever existed. In this tutorial, you’ll learn everything you need to know about functions in Python.

You’ll learn all about creating and calling functions, as well as working with parameters, arguments, keyword arguments, default arguments, and much, much more.

This is one of the many Python tutorials for beginners I’ve added to my channel.

Python Exercises for Beginners:

Python Cheat Sheet:

Want to learn more from me? Check out my blog and courses:

, 1541516411 , 2018-11-06 15:00:11 , 00:30:34 , UCWv7vMbMWH4-V0ZXdmDpPBA , Programming with Mosh , 10972 , , python functions,functions in python,python function,python kwargs,python def,python args,python *args,python **kwargs,python language,python for beginners,python for absolute beginners,python basics,getting started with python,python tutorial,python 3,python,args,kwargs,**kwargs,def,*args,absolute beginners,tutorial,beginners , https://www.youtubepp.com/watch?v=u-OmVr_fT4s , [ad_2] , [ad_1] , https://www.youtube.com/watch?v=u-OmVr_fT4s, #Python #Functions #Python #Tutorial #Absolute #Beginners

Previous articleThe Ansible Inventory | Ansible Automation
Next articleVMware vSphere 7.0 Live session recording , Manage Domain with ESXI | VMware Training

38 COMMENTS

  1. I wasn't expecting this
    I have never seen a tutorial than explained me so well what I needed to know in my whole life, maybe it's also due to you tackling exactly the doubts I had but never have I seen a single youtube video with such information. The first 5 minutes alone helped me more than hours of python classes, an immediate subscription on my part, keep going man!

  2. I have a question about the exercise. Once Mosh used only single if statements, if the user pass the number 15 in the function, why the output was not fizzbuzz, fizz and buz, since all if statement are independent?

  3. Well, I took FizzBuzz and I advanceified it very slightly. I just allowed for continuous input, as well as making sure correct input is entered.

    Entering any number will return Fizz, Buzz, FizzBuzz, or the number as the program works on here, however if you enter any letter it'll give you an error but let you continue to input again, except if you enter the letter "q", in which it'll end the program. I know it's very easy and all, but hey. I'm tryin my best here lol

    Code:
    def fizz_buzz(number):

    if number % 3 == 0 and number % 5 == 0:

    result = "FizzBuzz"

    elif number % 3 == 0:

    result = "Fizz"

    elif number % 5 == 0:

    result = "Buzz"

    else:

    result = str(number)

    return result

    while True:

    try:

    userIn = input("Enter a number: ")

    if userIn.lower() == "q":

    break

    else:

    userIn = int(userIn)

    print(fizz_buzz(userIn))

    except ValueError:

    print("Invalid Input")

  4. I've started with C++ and used a few other languages, mostly static. Now that I'm learning python I'm having a hard time with those indentations 😀 they look and feel so unnatural

    Great tutorial as always, love that there is a variety!

LEAVE A REPLY

Please enter your comment!
Please enter your name here