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 

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

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

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...

COMPUTER GRAPHICS LAB

    COMPUTER GRAPHICS LAB

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

TCS NQT Daily Aptitude Challenge

 s omething special coming your way for your NQT prep! Hola! TCS NQT is almost here! We have no doubt your preparation is in full swing and you can't wait to earn yourself an interview slot with solid test performance. So we thought why not do whatever we can to assist you with that? While we are constantly arranging programming-related sessions for you, here's something to complement your readiness on the verbal+logical+quantitative aptitude section. We have curated a question bank specially for you, and we will be posting a new question every day at 3 PM. NOTE: There is no special link where you need to register or anything. Just watch this space. Go for it!

OPERATING SYSTEMS

OPERATING SYSTEMS    OPERATING SYSTEMS  TEXT BOOK :   DOWNLOAD   OPERATING SYSTEMS TEXT BOOK :   DOWNLOAD OPERATING SYSTEMS  TEXT BOOK :   DOWNLOAD

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...

OBJECT ORIENTED SOFTWARE ENGINEERING

OBJECT ORIENTED SOFTWARE ENGINEERING OBJECT ORIENTED SOFTWARE ENGINEERING TEXT BOOK :   DOWNLOAD  OBJECT ORIENTED SOFTWARE ENGINEERING TEXT BOOK :   DOWNLOAD