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

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

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

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 

OPERATING SYSTEMS

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

CSE PREVIOUS YEAR PAPERS

CSE PREVIOUS YEAR PAPERS 2019- 2023 BATCH REGULAR SEMISTER PAPERS    CSE 2ND  YEAR 1SEM PAPERS (2021 JULY)  :-  DOWNLOAD HERE  CSE 2ND  YEAR 2SEM PAPERS (2021 SEPTEMBER)  :-   DOWNLOAD HERE  CSE 3RD  YEAR 1SEM PAPERS (2022 FEB)   :-   DOWNLOAD HERE  CSE 3RD  YEAR 1SEM PAPERS (2022 JULY)   :-   DOWNLOAD HERE

web desinging samples

 web design samples WEB DESING : CLICK WEB DESING :  CLICK WEB DESING :  CLICK https://docs.google.com/document/d/1444gtjrX8JfTSqsZtfHhk3jrfw44fFar/edit?usp=sharing&ouid=112956812795444694362&rtpof=true&sd=true https://drive.google.com/file/d/1Bfg5bpY_Gw2STEIpipzUZDFumoLpLz0H/view?usp=sharing

OBJECT ORIENTED PROGRAMING

    OBJECT ORIENTED PROGRAMING  THIS BLOG ALL ABOUT OOPS  C++ PREVIOUS QUESTION PAPERS PDF :-   DOWNLOAD HERE C++ NOTES 1 PDF:-   DOWNLOAD HERE C++ NOTES 2 PDF:-   DOWNLOAD HERE C++ NOTES 3 PDF:-   DOWNLOAD HERE