Перейти к содержимому

Python for Beginners #12 – Arithmetic Operators in Python | Numbers & Math

Python VIBE Programing

0:00 / 0:00

Python for Beginners #12 – Arithmetic Operators in Python | Numbers & Math

188 просмотров · 2 нед. назад
Python VIBE Programing
39 подписчиков
188 просмотров · 2 нед. назад
Welcome to Video #8 of our Python for Beginners course! 🐍 In this lesson, we’ll learn how to work with numbers and perform calculations in Python using arithmetic operators. ⏱️ Timestamp 00:00 Introduction 00:40 Numbers and Arithmetic 01:49 More Arithmetic Operators 02:50 Examples in VS Code 09:03 Simple Scenario 10:31 Conclusion You will learn: • How to perform calculations in Python • Addition using + • Subtraction using - • Multiplication using * • Division using / • Floor division using // • Modulus using % • Exponentiation using ** • How to use variables inside calculations • The difference between / and // • How to find the remainder of a division • How to practice arithmetic operators in VS Code We’ll start with simple examples: a = 10 b = 3 print(a + b) print(a - b) print(a * b) print(a / b) Then we’ll explore some additional Python operators: print(a // b) print(a % b) print(a ** b) At the end of the lesson, we’ll also complete a quick practice exercise and use Python to calculate the total price of multiple products. By the end of this video, you should understand the main arithmetic operators in Python and be able to use them in your own programs. This course is designed for complete beginners, so no previous programming experience is required. Make sure to subscribe so you don't miss the next videos in this Python beginner series! 🐍 #Python #PythonForBeginners #PythonTutorial #LearnPython #PythonProgramming #CodingForBeginners