Skip to main content

Learn Python

 

Python 


what is data type ?

 to declaring of a variable is called data type 
another words to declare the data what type of the data it is !

data types ?

Text Type:str
Numeric Types:intfloatcomplex
Sequence Types:listtuplerange
Mapping Type:dict
Set Types:setfrozenset
Boolean Type:bool
Binary Types:bytesbytearraymemoryview
None Type:NoneType

                                                  more


CODE FOR LIST SLICING:
------------
word=input('what is word?:')
print(word[1::2])
------
input: rhaajrui
output :HARI
---------------
where 1=index of word 
2= after second letter will be print at everytime

SECOND ONE 

word='rhaajrui'
print(word[1::2])

output:hari


CODE FOR REVERSING OF A STRING:
 ----------------
word=input('what is word?:')
print(word[::-1])
 
------
input: IRAH
output :HARI
---------------
CODE FOR  STRING FORMAT:
name='krishna'
age='18'
sex= 'male'

print(f'the age of {name} is {age} and he is {sex}')

OUTPUT:   the age of krishna is 18 and he is male

SECOND ONE 

 name='krishna'
age='18'
sex= 'male'
print(name ,age ,sex)
print(f'the age of {name} is {age} and he is {sex}')
print('the age of '+name+' is '+age+' and he is '+sex)

OUTPUT:
krishna 18 male
the age of krishna is 18 and he is male
the age of krishna is 18 and he is male
-------------------------



Comments

Popular posts from this blog

web design for tution center

SMART LEARN WEBSITE WORK SAMPLE FOR TUTION CENTER  HOME PAGE DESIGN:- TIME SCHEDULE FOR TEACHING:- SERVICES OFFERED:- ABOUT US PAGE :- CONTACT US PAGE :- DESIGNED & DEVELOPED BY HARIKRISHNA 

DATA WAREHOUSING & DATA MINING

  DATA WAREHOUSING & DATA MINING DATA WAREHOUSING & DATA MINING : DOWNLOAD HERE DATA WAREHOUSING & DATA MINING :  DOWNLOAD HERE DATA WAREHOUSING & DATA MINING  ALL NOTES:  DOWNLOAD HERE

DATABASE MANAGEMENT SYSTEMS

  DATABASE  MANAGEMENT SYSTEMS THIS BLOG IS ABOUT DATABASE  MANAGEMENT SYSTEMS   DATABASE  MANAGEMENT SYSTEMS  FIRST UNIT PDF :-   DOWNLOAD HERE    SECOND  UNIT PDF :-     DOWNLOAD HERE THIRD  UNIT PDF :-     DOWNLOAD HERE    FOURTH UNIT PDF :- DOWNLOAD HERE    FIFTH UNIT PDF :- DOWNLOAD HERE    LAB MANUAL  PDF :- DOWNLOAD HERE      MOSTLY  YOU  PREFERED GOOGLE CHROME TO OPEN THIS FILES      NOTES PDFS AVAILABLE IN SOON

MICRO PROCESSORS

  MICRO PROCESSORS MICRO PROCESSORS  & INTERFACING TEXT BOOK :   DOWNLOAD  ADVANCED MICRO PROCESSORS  TEXT BOOK :   DOWNLOAD INTEL MICRO PROCESSORS  TEXT BOOK :   DOWNLOAD MICRO PROCESSORS NOTES PDF  :   DOWNLOAD Introduction to Microprocessors Definition:  Microprocessor is the controlling unit or CPU of a microcomputer, fabricated on a very small chip capable of performing ALU operations and communicating with the external devices connected to it. A microprocessor is a  programmable electronics chip  that has computing and decision making capabilities similar to central processing unit of a computer(CPU). Any microprocessor- based systems having limited number of resources are called microcomputers. What is microprocessor and microcontroller? Microprocessor...

DAA

    DESIGN ANALYSIS & ALGORITHMS    DAA  ZOOM CLASS 21/06/2021 MONDAY TODAY TOPICS  1.Computing a Binomial Coefficient CLICK TO OPEN What is Binomial Theorem ? Binomial Theorem  is also called as  Binomial Expansion  delineat the powers in algebric equations. Binomial Theorem helps us to find the expanded the expanded polynomial without multiplying the bunch of binomials at a time. The expanded polynomial will always contain one more than the power you are expanding.    ALGORITHM  Binomial(n, k)  //Computes C(n, k)by the dynamic programming algorithm  //Input: A pair of nonnegative integers n ": k ": 0  //Output: The value of C(n, k)  for  i <--- 0  to  n  do   for  j <--- 0  to  min(i, k)  do   if  j = 0  or  j = i  C[i, j] <---1  else  C[i, J] <--- C[i -1, j -1] + C[i -1, j]  return  C[n, k]  Bino...

ENVRONMENTAL STUDIES

ENVRONMENTAL  STUDIES        THIS BLOG IS ABOUT ENVRONMENTAL STUDIES        MOSTLY  YOU  PREFERED GOOGLE CHROME TO OPEN THIS FILES                                       ES IMPORTANT QUESTIONS     :-   DOWNLOAD HERE                    1.   INTRODUCTION  :-   DOWNLOAD HERE   2. ECOSYSTEM :-   DOWNLOAD HERE       3. ENVIRONMENTAL AND NATURAL RESOURCES MANAGEMENT        DOWNLOAD HERE       4. BIO-DIVERSITY AND ITS CONVERSATION  :-  DOWNLOAD HERE   5. ENVIRONMENTAL POLLUTION LOCAL AND GLOBAL  ISSUES   :-   DOWNLOAD HERE     {PART 1 } :-   DOWNLOAD HERE    {PART 2 } :-   DOWNLOAD HERE     { PART 3 }   6. ENVI...

OPERATIONS RESEARCH

OPERATIONS  RESEARCH     OPERATIONS  RESEARCH  TEXT BOOK :   DOWNLOAD   OPERATIONS  RESEARCH   TEXT BOOK :   DOWNLOAD OPERATIONS  RESEARCH  TEXT BOOK :   DOWNLOAD OPERATIONS  RESEARCH  TEXT PDF  :   DOWNLOAD OPERATIONS  RESEARCH  TEXT BOOK :   DOWNLOAD   OPERATIONS  RESEARCH NOTES PDF  :   DOWNLOAD

ARTIFICIAL INTELLIGENCE

ARTIFICIAL INTELLIGENCE  ARTIFICIAL INTELLIGENCE  TEXT BOOK : DOWNLOAD HERE  ARTIFICIAL INTELLIGENCE  ALL NOTES :  DOWNLOAD HERE 

GPS APPLICATIONS

 GPS APPLICATIONS Syllabus : UNIT-1:Development of NAVSTAR GPS. GPS Satellite configuration- Space segment, Control segment, User segment.  UNIT-2:GPS working principle, basic equations for finding user position, user position determination with least squares estimator.  UNIT-3:Other Global Satellite Constellations, GLONASS, GALILEO, Comparison of 3 GNSS (GPS, GALILEO, GLONASS) interms of constellation and services provided.  UNIT-4:GPS Signal generation, Pseudorandom noise (PRN) code, C/A code , P code, Navigation data, Signal structure of GPS, signal power.  UNIT-5:Coordinate Systems: Geoid, Ellipsoid, Coordinate Systems, Geodetic and Geo centric coordinate systems, ECEF coordinates, world geodetic 1984 system, Conversion between Cartesian and geodetic coordinate frame. UNIT-6:GPS Error sources, ionospheric effects on GPS signals and its mitigation methods.  UNIT-7:Satellite based augmentation system-need for GPS augmentation, GPS Aided GEO Augment...