Category: Python note

python tutorials and learn python

Created with Sketch.

Python TYPE CASTING (PYTHON FUNDAMENTALS)

Python TYPE CASTING ֍ We can convert one type value to another type. This conversion is called Typecasting        or Type coersion.֍ The following are various inbuilt functions for type casting.1) int()2) float()3) complex()4) bool()5) str() ֍ int(): We can use this function to convert values from other types to int Note:1) We…
Read more

Python Slicing of Strings:(PYTHON FUNDAMENTALS)

Python Slicing of Strings: 1) slice means a piece2) [ ] operator is called slice operator, which can be used to retrieve parts of String.3) In Python Strings follows zero based index.4) The index can be either +ve or -ve.5) +ve index means forward direction from Left to Right6) -ve index means backward direction from…
Read more

Python str Data Type:(PYTHON FUNDAMENTALS)

str Data Type:    str represents String data type.  A String is a sequence of characters enclosed within single quotes or double quotes.  s1=’Mohan’  s1=”Mohan”  By using single quotes or double quotes we cannot represent multi-line string literals.  s1=”Mohansoft” For this requirement we should go for triple single quotes(”’) or triple double quotes(“””)  s1=”’Mohansoft”’  s1=”””Mohansoft”””…
Read more

PYTHON RESERVED WORDS (PYTHON FUNDAMENTALS)

RESERVED WORDS In Python some words are reserved to represent some meaning or functionality. Such types of words are called reserved words.There are 33 reserved words available in Python.  True, False, None  and, or ,not,is  if, elif, else  while, for, break, continue, return, in, yield  try, except, finally, raise, assert  import, from, as, class, def,…
Read more

Python IDENTIFIERS (PYTHON FUNDAMENTALS)

IDENTIFIERS   A Name in Python Program is called Identifier. It can be Class Name OR Function Name OR Module Name OR Variable Name.  a = 10   Rules to define Identifiers in Python:1. The only allowed characters in Python are  alphabet symbols(either lower case or upper case)  digits(0 to 9)  underscore symbol(_) By mistake, if…
Read more

Flavors of Python:(PYTHON FUNDAMENTALS)

Flavors of Python: 1) CPython:It is the standard flavor of Python. It can be used to work with C language Applications.2) Jython OR JPython:It is for Java Applications. It can run on JVM3) IronPython:It is for the C#.Net platform4) PyPy:The main advantage of PyPy is performance will be improved because JIT compiler is available inside…
Read more

Where we can use Python:(LANGUAGE FUNDAMENTALS)

Where we can use Python:We can use it everywhere. The most common important application areas are1) For developing Desktop Applications2) For developing web Applications3) For developing database Applications4) For Network Programming 5) For developing games6) For Data Analysis Applications7) For Machine Learning8) For developing Artificial Intelligence Applications9) For IoT Note:  Internally Google and Youtube use…
Read more

Python Introduction (LANGUAGE FUNDAMENTALS)

Python Introduction Difference between java , c and python Eg1: To print HelloworldJava:   C: Python: Eg2: To print the sum of 2 numbersJava: C: Python:   The name Python was selected from the TV Show “The Complete Monty Python’s Circus”, which was broadcasted in BBC from 1969 to 1974.Guido developed Python language by taking…
Read more