Net-informations.com

Python Fundamentals

Keywords in Python

Python Keywords are reserved words that used in Python scripting. This means that you can't use these words as name of any entities like variables, classes and functions in Python programming. You can get the full list of keywords using python console help utility.


Python keywordsh

Python Variables and Data Types

In Python programming, a variable is a container for a value. It can be assigned a name and based on the value assigned to it, the Python interpreter decides its data type. Python is case sensitive, so, variable names are also case sensitive. Variables in Python follow the standard of an alphanumeric characters (A-z, 0-9) and beginning in a letter or underscore (A-z, _ ).

Every value in Python has a datatype. Python supports the following data types:

  1. Numbers
  2. String
  3. List
  4. Tuple
  5. Dictionary

More on.... Python Variables and Data Types

Python Operators

Python Operators are special symbols that designate some sort of computation should be performed. Python includes operators in the following categories:

  1. Arithmetic Operators
  2. Assignment Operators
  3. Comparison Operators
  4. Logical Boolean Operators
  5. Bitwise Operators
  6. Membership Operators
  7. Identity operators

More on.... Python Operators

Python Datatype Conversion

Python defines type conversion functions to directly convert one data type to another which is useful for program development.

  1. int() : float, string to integer
  2. float() : integer, string to float
  3. str(): integer, float, List, Tuple to string
  4. list() : string, Tuple, Dictionary to List
  5. tuple() : string , list to tuple

More on... Python Datatype conversion

Python Mathematical Function

The Python math module offers you the ability to perform common and useful mathematical calculations within your program, this include addition (+), subtraction (-), division (/), and multiplication (*).

More on.... Python Mathematical Function










net-informations.com (C) 2021    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About