Загрузка...

Write a Python Program and use Function to Take Two Numbers and Return the Division of Two Numbers

Hello Programmers, Welcome to my channel. In this video you will learn about how to Write a Python Program and use Function to Take Two Numbers and Return the Division of Two Numbers Code ============================= """ Write a Python Program and use Function to Take Two Numbers and Return the Division of Two Numbers """ def div(a, b): return a / b num1 = float(input("Enter the first number : ")) num2 = float(input("Enter the second number : ")) if num2 != 0: result = div(num1, num2) print("Division of Two Numbers is %.2f " % result) else: print("Divide by zero is not possible") Keywords ============================= #python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners

Видео Write a Python Program and use Function to Take Two Numbers and Return the Division of Two Numbers автора Молодежный Python-прорыв
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки