Posts

Python tutorials part 3

Image
 Computer me python install kaise kare?

PYTHON TUTORIAL PART 2

Image
Mobile me python kaise kare  Python install kaise kare   Part 2 video of python  Next video soon

OPERATORS IN PYTHON

Image
 Introduction • Operators are used to perform operations in python. Operators are symbols used for performing mathematical, logical, and relational operations. • For any operation, we need the operator and the operand. For example: x + y Here x and y are operands and + is the operator. • These operands can also be assigned values as follows: x = 12, y = 13. Then x + y would be equal to 25 (12 + 13) • Types of operators used in python include : • Assignment operator ( = ) • Arithmetic operator (+,-, /, *) • Comparison operator (<,>, !=, == etc) • Logical operator (and, or, not) Arithmetic Operator Arithmetic operators are used to perform arithmetic operations like addition, subtraction, multiplication, division etc. on operands.                                    Assignment Operator • An assignment operator is used to assign the value to its left operand with the value present in the righ...

Python tutorials for beginners

Image
1          NEXT VIDEO ME MOBILE OR COMPUTER ME PYTHON KI PRACTICE KARENGE OR INTALLATION BHI JANENGE. DHANYAWAD                          

DATA TYPES IN PYTHON

Image
 Integer and Float • Variables can hold values of different types called data types. Some of the commonly used data types in python are integer, float, bool, strings, lists, tuples, dictionary, sets, etc • The data type of a variable is dependent on the value of the variable. For example, if the value of the variable userAge is 18 i.e userAge = 18 Here the data type of the variable is an integer. • For float data type the value of the variable should be a decimal. For example, if you create a variable for the percentage of students in class studentPercentage with a value 78.5 i.e studentPercentage = 78.5           Strings • A string data type is used to store textual information into a variable. • To store the value of a string data type, we need to put the value inside double quotes 11 " or single quotes ''. For example schoolName = "Bright International" characterName = 'Eva'                       ...

VARIBALES

Image
 (1) WHAT IS VARIABLE ? Variables are like empty containers used for storing data values. Just like we use a lunchbox to store our lunch in it, we use variables to store data. • phoneNumber • In the above example, phoneNumber is a variable used to store your phone number in it. (2) Create Variables characterName = "Eva" • In the above example characterName is the variable and Eva is its value. • '=' in above example assigns the value on the right to the variable on the left. # Create a variable userAge with value # <any number> and then run your code userAge = 15 (3) Update Variables Concept • The value of a variable can be changed/updated as many times as required after the variable is created. • For example, in the last chapter you created a variable: characterName = "Eva"                    • Now if you want to update the name to Pixie you can simply change the value by using "=" sign. characterName = 'Pixie' • Now the valu...