Myvideo

Guest

Login

2 | Operators | Python for Complete Beginners

Uploaded By: Myvideo
1 view
0
0 votes
0

All Free Tutorials - # OPERATORS # operator is a symbol to carry out arithmetical # or logical operations a = 5 b = 10 sum = a b print(sum) # Arithmetic operators # - * / % a = 1 b = 2 c = 3 sum = a b c print(“Sum is :“, sum) # concatenate strings first_name = ’Raghav’ last_name = ’Pal’ name = first_name ’ ’ last_name print(“Name is:“, name) # - * result = 5 * 1.5 print(“Multiply result is:“, result) # * can also be used to repeat string a = “Python“ b = a * 3 print(b) # a = “abc“ # b = a * ’3’ # print(b) # / and // result = 17 / 2 print(result) result = 17 // 2 print(result) result = 17 % 2 print(result) # ** Operator # left operand is raised to the power of right operand result = 2**3 print(result) # In Python, we can assign multip ... #RaghavPal #How_to_use_operators_in_Python #Python_operators_explained #Arithmetic_operators_in_Python #Basic_operators_in_Python #Assignment_operators_in_Python #Python_operators_tutorial #Introduction_to_Python_programming #python_free_online_course 20230711 Tf1dkUznRyA

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later