#9 Python Tutorial for Beginners | Operators in Python

Code For Kids · Beginner ·🛠️ AI Tools & Apps ·3y ago

Key Takeaways

Explains operators in Python including arithmetic, assignment, and relational operators for beginners

Full Transcript

hello everyone welcome back to my channel code for kids so in this video we will learn about what is operators okay so in a python we have some operators like we have arithmetic operator we have assignment operator we have comparison operator we have logical operator we have identity operator so we will see one by one okay so first we will see what is arithmetic operator arithmetic operator means if you want to do the addition subtraction multiplication division for that we are using the arithmetic operator so how we will start that so suppose we have two variables equals to 10 b equals to 20. now we want to do the addition and we want to store that addition inside our third variable so what we can do is equals to A plus b okay A plus b now you need to just print C so what will happen in plus 20 so what you will get here you will get 30 because inside the C variable we have a plus b it means 10 plus 20 is 40 you will get 30 years okay after that we can do the subtraction we can do the multiplication and we can do the division suppose I will write the variable name sum and here we have to click sum after that we can do subtraction equals to A minus B then multiplication equals to A multiplied by B after that division equals to a divided by B okay a divided by B now we need to just print all these variables so print some then print subtraction after that we need to print multiplication then we will print the Visa foreign so you will get 10 plus 20 30 10 minus 20 minus 10 10 into 20 20 21 10 divided by 20 0.5 so this is our arithmetic operator now we will see the next operator which is the comparison operator so why we are using the comparison operator if you want to compare two value okay so for that we have equals to equals to comparison operator we have not equals to we have greater than less than greater than equals to less than equals to so this all are the comparison operator so let's see this one also with the help of example suppose we have a equals to 10 b equals to 20 now we want to print foreign a is equal to equal to B so this is your comparison operator so what will happen you will get false now print is greater than me so this is our second comparison operator so this one is also false because a is less than b so now we can print one more print a is less than b now here you will get a true because yes a is less than b after that we need to just print is greater than equals to B so print a is greater than equals to B so what you will get false that's perfect so this all are the comparison operator print a is less than equals to B so this is our comparison operator okay after that we will see the third operator so what is our third operator that is logical operator so logical operator means what so in The Logical operator we have only three operators which is and or not okay so and means what suppose if you have two condition like five is greater than 3 and 4 is greater than 3 so what will happen if both the condition is true then only you will get a value otherwise not okay it means suppose x equals to 5. after that we want to print X is greater than 3 and we have to use this keyword add X is list that supposed to now what will happen you will get true why because see my first condition is true because in the X we have 5 so 5 is greater than 3 yes this condition is true and if this condition is also true so you will get True Value next we will see the r condition so in the r condition if suppose if you have two conditions two expression okay so if one expression is true the second expression is false so you will get True Value okay suppose x equals to 5. okay and we need to print access less than 2 means 5 is less than 2. so this condition is false all here we have to use keyword or X is greater than 5. or X is greater than 3 so what will happen if I will run you will get through y see my first condition is false but my second condition is true so you will get True Value so this is your logical operator okay so we will see one last operator which is your identity operator so identity operator means what if you want to compare the objects okay so for that we are using the um identity operator so we have two types of identity operator we have is and is not so that we will see with the help of examples suppose we have one variable x equals to we have some values here like Apple and we have second value which is mango okay after that we have one more variable if y equals to we have again some value Apple man goodness we have to save value now what will happen suppose we have one more variable set equals to X means whatever value we have in X we copied type value inside the set variable now I want to print X is set okay what I want to print X is set so what will happen what you will get here if you will run you will get through because whatever value we have in X we copied that value into the set value so means you will get your true value so this is our identity operator so we have four types of operators we have arithmetic operator we have comparison operator we have logical operator right we have identity operator so in the next video we will learn some more Concepts so till that please like share and subscribe our Channel and press the Bell icon if you want more latest updates so thank you so much

Original Description

Python Tutorial to learn Python programming with examples Complete Python Tutorial for Beginners Playlist : https://youtu.be/NJi6OPO5lY8 Python Tutorial : https://youtu.be/NJi6OPO5lY8 In this video we will see : - Operators in Python - Arithmetic operators- Addition, Subtraction, Multiplication, Division - Assignment operators - Relational operators- Equals to, Greater than, Less than, Not equals, Greater than equals to, Less than equals to - Logical operators- AND, OR, NOT, Truth table of logical operators - Unary operators- Negation
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Code For Kids · Code For Kids · 44 of 60

1 #Scratch Tutorial 1 | How to create your own Scratch account #codeforkids #scratch #Game Development
#Scratch Tutorial 1 | How to create your own Scratch account #codeforkids #scratch #Game Development
Code For Kids
2 #Scratch Tutorial 2 ||How to enable Share Button option in Scratch #codeforkids #scratch #game
#Scratch Tutorial 2 ||How to enable Share Button option in Scratch #codeforkids #scratch #game
Code For Kids
3 Fish Moving inside an Ocean 🌊🌊 #codeforkids #scratch 🥰
Fish Moving inside an Ocean 🌊🌊 #codeforkids #scratch 🥰
Code For Kids
4 Scratch Programming | Fish Aquarium game | #codeforkids #scratch #game
Scratch Programming | Fish Aquarium game | #codeforkids #scratch #game
Code For Kids
5 Draw the circle in scratch#codeforkids #scratch #game
Draw the circle in scratch#codeforkids #scratch #game
Code For Kids
6 Draw Circles in Scratch || How do you draw shapes on Scratch? #codeforkids #scratch #game #coding
Draw Circles in Scratch || How do you draw shapes on Scratch? #codeforkids #scratch #game #coding
Code For Kids
7 How to Make a Dino Jump Game in Scratch | Tutorial #codeforkids #scratch #game
How to Make a Dino Jump Game in Scratch | Tutorial #codeforkids #scratch #game
Code For Kids
8 Scratch Tutorial || How to Make a Catch Game in Scratch.|| Scratch Tutorial for absolute beginer
Scratch Tutorial || How to Make a Catch Game in Scratch.|| Scratch Tutorial for absolute beginer
Code For Kids
9 Scratch Tutorial || Day 1
Scratch Tutorial || Day 1
Code For Kids
10 Scratch Tutorial || Day 2  (DJ System , Dance and Story writing)
Scratch Tutorial || Day 2 (DJ System , Dance and Story writing)
Code For Kids
11 How to Make A Maze Game in Scratch 3.0 | Scratch 3.0 Tutorial |Scratch Tutorial for begineer
How to Make A Maze Game in Scratch 3.0 | Scratch 3.0 Tutorial |Scratch Tutorial for begineer
Code For Kids
12 Scratch Tutorial || Day 3
Scratch Tutorial || Day 3
Code For Kids
13 Scratch Tutorial || Day 4
Scratch Tutorial || Day 4
Code For Kids
14 Scratch Tutorial | Cat And Mouse Game | Scratch Tutorial for  Beginner
Scratch Tutorial | Cat And Mouse Game | Scratch Tutorial for Beginner
Code For Kids
15 Scratch Tutorial || Day 5
Scratch Tutorial || Day 5
Code For Kids
16 how to make dress up game on scratch || Scratch Tutorial for Beginner
how to make dress up game on scratch || Scratch Tutorial for Beginner
Code For Kids
17 How to Make a Pong Game in Scratch || Scratch Tutorial for Beginner
How to Make a Pong Game in Scratch || Scratch Tutorial for Beginner
Code For Kids
18 Scratch Tutorial || Day 6(part 1)
Scratch Tutorial || Day 6(part 1)
Code For Kids
19 Scratch Tutorial || Day 6( Part 2)
Scratch Tutorial || Day 6( Part 2)
Code For Kids
20 Scratch Tutorial || Day 7
Scratch Tutorial || Day 7
Code For Kids
21 Scratch Tutorial || Day 8
Scratch Tutorial || Day 8
Code For Kids
22 How to Make Piano Game || Learn to Use Music Extension || Scratch Tutorial || Day 8
How to Make Piano Game || Learn to Use Music Extension || Scratch Tutorial || Day 8
Code For Kids
23 How to Make Piano Game || Learn to Use Music Extension ||Scratch Tutorial for beginner
How to Make Piano Game || Learn to Use Music Extension ||Scratch Tutorial for beginner
Code For Kids
24 Scratch Tutorial || Day 9
Scratch Tutorial || Day 9
Code For Kids
25 Scratch Tutorial || Draw Shapes #shorts #codeforkids #youtubeshorts
Scratch Tutorial || Draw Shapes #shorts #codeforkids #youtubeshorts
Code For Kids
26 Scratch Tutorial |How to Draw Shapes in Scratch #scratch #scratchtutorials #codeforkids
Scratch Tutorial |How to Draw Shapes in Scratch #scratch #scratchtutorials #codeforkids
Code For Kids
27 Day 10|| Scratch Tutorial
Day 10|| Scratch Tutorial
Code For Kids
28 Scratch Tutorial || Archery Tutorial
Scratch Tutorial || Archery Tutorial
Code For Kids
29 #1 || Thunkable  Beginner Tutorial  Platform Overview
#1 || Thunkable Beginner Tutorial Platform Overview
Code For Kids
30 App Development ||Tutorial 2 || how to add button in Thunkable || Thunkable for beginner #codeforkid
App Development ||Tutorial 2 || how to add button in Thunkable || Thunkable for beginner #codeforkid
Code For Kids
31 App Development || Tutorial 3||  Beginner Tip "Change screens with a button click" in Thunkable
App Development || Tutorial 3|| Beginner Tip "Change screens with a button click" in Thunkable
Code For Kids
32 Scratch Tutorial ||
Scratch Tutorial ||
Code For Kids
33 Thunkable Tutorial || Using Camera and Image Recognition components with Thunkable
Thunkable Tutorial || Using Camera and Image Recognition components with Thunkable
Code For Kids
34 Build a Translator App with Thunkable ||Thunkable App Development || Tutorial 5||
Build a Translator App with Thunkable ||Thunkable App Development || Tutorial 5||
Code For Kids
35 Thunkable Beginner Tutorial #6  || Web Viewer|| Redirecting App
Thunkable Beginner Tutorial #6 || Web Viewer|| Redirecting App
Code For Kids
36 #1 World in Python || Python Tutorial || Python Programming || Google Colab
#1 World in Python || Python Tutorial || Python Programming || Google Colab
Code For Kids
37 #2 Python Tutorial for Beginners | User input in Python | Command Line Input | Python Variable
#2 Python Tutorial for Beginners | User input in Python | Command Line Input | Python Variable
Code For Kids
38 #3 Python  Comments | How To Write Comments In Python | Python Tutorial For Beginners |
#3 Python Comments | How To Write Comments In Python | Python Tutorial For Beginners |
Code For Kids
39 #4 Python Tutorial for Beginners | Data Types in Python
#4 Python Tutorial for Beginners | Data Types in Python
Code For Kids
40 #5 Numbers & Typecasting in python | Python Tutorial
#5 Numbers & Typecasting in python | Python Tutorial
Code For Kids
41 #6  Strings Tutorial | How To Use Strings In Python | Python Tutorial | Python Training |
#6 Strings Tutorial | How To Use Strings In Python | Python Tutorial | Python Training |
Code For Kids
42 #7 Slicing And Other Functions In Python | Python Tutorials For Absolute Beginners.
#7 Slicing And Other Functions In Python | Python Tutorials For Absolute Beginners.
Code For Kids
43 #8 Boolean in Python | Python Tutorial for Begniner
#8 Boolean in Python | Python Tutorial for Begniner
Code For Kids
#9 Python Tutorial for Beginners | Operators in Python
#9 Python Tutorial for Beginners | Operators in Python
Code For Kids
45 #10  Lists And List Functions | Python Tutorials For Absolute Beginners
#10 Lists And List Functions | Python Tutorials For Absolute Beginners
Code For Kids
46 #11 Tuple in Python | Python Tutorial
#11 Tuple in Python | Python Tutorial
Code For Kids
47 #12  In Python | Python Sets Tutorial | Python Tutorial for Beginners | #python #pythonprogramming
#12 In Python | Python Sets Tutorial | Python Tutorial for Beginners | #python #pythonprogramming
Code For Kids
48 #13 If Elif Else Statement in Python || Python Tutorial for Beginners |
#13 If Elif Else Statement in Python || Python Tutorial for Beginners |
Code For Kids
49 #14  While Loop in Python ||Python Tutorial for Beginners
#14 While Loop in Python ||Python Tutorial for Beginners
Code For Kids
50 Python Tutorial for addition of 2 numbers #shorts #youtubeshorts #codeforkids #pythonprogramming
Python Tutorial for addition of 2 numbers #shorts #youtubeshorts #codeforkids #pythonprogramming
Code For Kids
51 Python Tutorial for absolute Beginner|| While loop #pythonprogramming #shorts #youtubeshorts
Python Tutorial for absolute Beginner|| While loop #pythonprogramming #shorts #youtubeshorts
Code For Kids
52 Machine learning for the kids with Scratch || Machine Learning for kids ||Day 1
Machine learning for the kids with Scratch || Machine Learning for kids ||Day 1
Code For Kids
53 # Tutorial 1 || Machine Learning for kids | Image Classification example | Girl and boy
# Tutorial 1 || Machine Learning for kids | Image Classification example | Girl and boy
Code For Kids
54 #15 For loop in Python || Python Tutorial for Beginner
#15 For loop in Python || Python Tutorial for Beginner
Code For Kids
55 # Tutorial 2 || Machine Learning for kids | Smart Home Automation | Turn On the Fan
# Tutorial 2 || Machine Learning for kids | Smart Home Automation | Turn On the Fan
Code For Kids
56 #Tutorial 3 || Snapchat Filter in Machine Learning|| Machine Learning for the kids ||
#Tutorial 3 || Snapchat Filter in Machine Learning|| Machine Learning for the kids ||
Code For Kids
57 #Tutorial 4 || Image Identification || Machine Learning for the  kids|| Tiger , Elephant, boy
#Tutorial 4 || Image Identification || Machine Learning for the kids|| Tiger , Elephant, boy
Code For Kids
58 Scratch Tutorial || Apple Catcher Game || Fruit Catcher|| catch game in Scratch
Scratch Tutorial || Apple Catcher Game || Fruit Catcher|| catch game in Scratch
Code For Kids
59 Scratch Tutorial || How to record audio in Scratch || Scratch Tutorial for beginner ||
Scratch Tutorial || How to record audio in Scratch || Scratch Tutorial for beginner ||
Code For Kids
60 Scratch Tutorial || how to translate language in scratch || Scratch tutorial for beginner
Scratch Tutorial || how to translate language in scratch || Scratch tutorial for beginner
Code For Kids

Related Reads

📰
Title: something like "AI-Powered Batch Processing for Consistent Portrait Sessions"
Learn how to leverage AI-powered batch processing for consistent portrait sessions using tools like Adobe Lightroom with AI Sensei
Dev.to AI
📰
Markdown as the Source of Truth: Building AI-Generated Websites on Azure
Learn how to build AI-generated websites on Azure using Markdown as the source of truth, revolutionizing web development
Medium · LLM
📰
I Used AI Every Day for 30 Days—Here's What Actually Changed
Discover how using AI daily for 30 days can impact your life and work
Medium · AI
📰
7 AI Tools That Feel Illegal Because They Save So Much Time
Discover 7 AI tools that can significantly save time and increase productivity, and learn how to apply them in your daily tasks
Medium · ChatGPT
Up next
How AI Is Transforming Analytics in Tableau Cloud & Server
Salesforce Product Center
Watch →