How to use Variables in Python

Опубликовано: 10 Октябрь 2024
на канале: Milandeep Bassi
93
5

Blog post: https://www.milandeepbassi.co.uk/lear...

Variables are the labels for data essentially. The data is then stored to this label. If you wanted a programme to remember someone's name then when asking for the input you assign a variable to it. 

Operators are symbols that represent computations such as addition and multiplication. Some of these operands that you can use are +, -, *, /, **. The symbols in python represent exactly what they represent in mathematics. The usage of ** is to illustrate raising a number to another (power).

Python follows the exact same rules as maths for its mathematical operations. Python works on the B.I.D.M.A.S order. This stands for Brackets, Indices, Division, Multiplication, Addition, Subtraction.

Mathematical operations do not work on strings in general. However the usage of multiplication and addition does work.

✅ Recommended playlists:

Flutter Development:
https://www.youtube.com/playlist?list...

Programming Tips:
https://www.youtube.com/playlist?list...

University Life:
https://www.youtube.com/playlist?list...

✅ Socials:

Twitter -   / milanbassi  

Website - https://www.milandeepbassi.co.uk/

LinkedIn -   / milanbassi  

Instagram -   / milandeepbassi