Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Learn Python Episode #16: Adding Arguments to a Function

  • Joseph Delgadillo
  • 2017-08-14
  • 2827
Learn Python Episode #16: Adding Arguments to a Function
josephdelgadillointroduction to python programmingthe complete python course beginner to advancedbest programming languages to learn in 2017best programming language for new coderscomplete python tutoriallearn how to codehow to get started programmingpython 3 tutorialpython 2 tutorialprogramming tips for beginnerslearn python episode 16adding arguments to a functionparamtersparamsarguments in pythonfunctional programming
  • ok logo

Скачать Learn Python Episode #16: Adding Arguments to a Function бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Learn Python Episode #16: Adding Arguments to a Function или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Learn Python Episode #16: Adding Arguments to a Function бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Learn Python Episode #16: Adding Arguments to a Function

Learn Python programming and more with our Learn to Code course Bundle!
⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠https://josephdelgadillo.com/product/...

In this video we're going to expand on functions, and we're going to learn how to implement arguments into our functions. The following function is completely static.

def my_function():
print("This is a function!")
print("A second string.")

my_function()

We could call this function 10 times and each time it's going to print out the same strings. So, how can we make our functions more dynamic? The way to do this is by adding arguments, and arguments go in the parenthesis at the end of the function name. So, let's add two arguments in to our function.

def my_function(str1, str2):
print(str1)
print(str2)

my_function()

Now if we try to run this we would get an error. Python is looking for the values str1 and str2 and they are undefined. Let's go ahead and define them.

def my_function(str1, str2):
print(str1)
print(str2)

my_function("This is argument 1", "This is the second argument which is also a string.")

Now when we call my_function it will print out the two strings. Let's call the function again and print out two different strings.

def my_function(str1, str2):
print(str1)
print(str2)

my_function("This is argument 1", "This is the second argument which is also a string.")
my_function("Stringy", "Hello World")

As you can see, Python will print out all four strings.

Web - https://josephdelgadillo.com
Subscribe - https://bit.ly/SubscribeJTD
Facebook -   / delgadillojt  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]