✨ Introduction to Python ✨

  1. What is Python?
  2. Features Of Python
  3. Identifiers
  4. Keywords
  5. Variables
  6. Basic Data Type In python
  7. Summary for data types
  8. How to print something on console ?
  9. How to take input in python ?
  10. Comments in Python
  11. Type conversion in Python

Lets Start

  • Open source : Source code can be modified and redistributed as per user requirement.
  • Dynamic typed language : We don’t need to give the data type while writing the program, python will understand
    on it’s own.
  • Interpreted language : python is interpreted language. Python executes the code line by line if any error occurred, it halts the program.
  • Cross platform : The code working on Windows will also work on MAC and Unix, So it is cross platform.
  • It has wide range of libraries.
  • OOPS : python supports OOP(Object Oriented Programming) and POP(Procedure oriented Programming) both.
  • It is easy to learn.

* Identifiers :-

An identifier is a name that identifies anything like classes, variables, objects.

  1. Identifier can’t begin with digits. e.g. : 2name = “ram”(this is wrong).
  2. The identifier can only begin with underscore ( _ )or alphabets. e.g. n = 20, _a = 33 etc.
  3. Uppercase and lowercase identifiers are different. e.g. n = 20, N = 20 (both are different identifiers).
  4. Identifiers can have numbers, alphabets and underscore( _ ).
  5. No keyword should be used an identifier.
  • Keywords : -
  • Variable : -
  1. Integer : -
  • objects : object to the printed. * indicates that there may be more than one object
  • sep: objects are separated by sep. Default value: ' ' (optional)
  • end: end is printed at last (optional)
  • file : must be an object with write(string) method. If omitted, sys.stdout will be used which prints objects on the screen. (optional)
  • flush: If True, the stream is forcibly flushed. Default value: False (optional)
  1. Single line comment :
  1. Implicit type conversion (done automatically by compiler).
  2. Explicit type conversion (done exclusively by the user).



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store