Posts

Showing posts with the label programming

Chapter 3 : "PYTHON" (STRING'S)

Image
Chapter 3                                           STRING'S String is a data type in Python. String is a sequence of characters enclosed in quotes .We can primarily, write a string in these three ways 1. Single quoted strings   ( a = "Harry") 2. Double quoted strings ( b = "Harry" ) 3. Trible quoted Strings  (c  = '!' Harry" ) String Slicing:                                     A String in Python can be sliced for getting a part of the string . Consider the following "string" : name= "[Harry]" => length = 5               0 1 2 3 4         (-5) (-4) (-3) (-2) (-1)                 ...

CHAPTER 2: " PYTHON" ( VARIABLES AND DATA TYPES)

Image
 Variables and Datatypes                                                   A variable is the name given to a memory location in a program for example a = 34 IN b = "He" C = 722.56   Data Types                                        Primarily there are following data types in Python Integers   1. Integers 2. Floating point numbers. Strings 3.Strings 4.Booleans 5. None                       Python is a fantastic language that automatically identifies the type of data for us. a = 71 --( Identifies a as classs<int>)   b = 88.44 => Identifies b as class < flat > name = "He" →Identifies ...

CHAPTER 1 :" PYTHON "(MODULES, COMMENTS, PIP)

Image
 CHAPTER 1  MODULES, COMMENTS, PIP   MODULES:                                 A module is a file containing code written by somebody else which can be imported and used in our programme. Types of modules: Build in modules: preinstalled in python  External modules: need to install using pip.               Pip is the package manager for python you can use pip to install a module on your system.  PIP : COMMENTS:                                 Comments are used to write something which the programmer dose not want to execute. Types of comments: Single line comment written using # (hash) multi line comments written using (" 123")

BASIC'S OF PYTHON 1

Image
  PYTHON  WHAT IS PROGRAMMING?  Just like the language we use like Hindi, english or telugu to communicate . Python is a language for us and Computer to Communicate . Programming is a way to instruct  the Computer to perform various tasks.   WHAT IS PYTHON?   Python is a simple and easy to understand language which feels like reading simple English. This Pseudo code nature of python makes it easy to learn and understandable by beginners Features of python : Easy to understand = less development time  Free and open source  High level language  Portable - Works on Linux/windows/Mac not to mention (its fun to work)                                                                                 ...