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

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

DLD

    DIGITAL LOGIC DESIGN  THIS BLOG ALL ABOUT DIGITAL LOGIC DESIGN  DLD PREVIOUS QUESTION PAPERS :-  DOWNLOAD HERE DLD  NOTES PDF  :-  DOWNLOAD HERE DLD NUMBER SYSTEM PDF  :-  DOWNLOAD HERE DLD  CHAPTHER 4 PDF      :-  DOWNLOAD HERE DLD  CHAPTHER 5  PDF    :-  DOWNLOAD HERE

E-EEE

          ELEMENTS OF ELECTRICAL ENGINEERING THIS BLOG ALL ABOUT ELEMENTS OF ELECTRICAL ENGINEERING PREVIOUS QUESTION PAPERS PDF :-  DOWNLOAD HERE 2 MID QUESTIONS WITH ANSWERS PDF :-  DOWNLOAD HERE      E-EEE   1 UNIT NOTES  PDF :-   DOWNLOAD HERE   E-EEE   DC GENERATOR NOTES  PDF :-   DOWNLOAD HERE   E-EEE  ELECTRICAL MACHINES   PDF :-   DOWNLOAD HERE E-EEE  STUDENT NOTES PDF :-     DOWNLOAD HERE   E-EEE  LECTURE NOTES  PDF :-   DOWNLOAD HERE   EXTRA MATERIAL  DC generator  A DC generator operates on the principle of Faraday's laws of electromagnetic induction. According to Faraday's law, whenever a conductor is placed in a fluctuating magnetic field (or when a conductor is moved in a magnetic field) an EMF is induced in the conductor  TYPES OF DC GENERATORS DC GENERATOR EMF EQUATION Quest...

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

OPERATING SYSTEMS

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

ARTIFICIAL INTELLIGENCE

ARTIFICIAL INTELLIGENCE  ARTIFICIAL INTELLIGENCE  TEXT BOOK : DOWNLOAD HERE  ARTIFICIAL INTELLIGENCE  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

Pragma Edge are Hiring

    Pragma Edge are Hiring || Graduates || 2019 TO 2023 BATCH Job Application 1:- Company: Pragma Edge Role: Development & Support Engineers Job Location: Hyderabad requirements : Qualification:  B.Tech (CSE, IT, ECE), BSc (Comp), M.Tech, BCA, MCA. Batch:  2021/2022/2023 Graduates, All candidates must be 70% & above. Required Skills:  C, C++/ Core Java/ Oracle Database/ SQL Database, Cyber Security/ AWS/ Devops/ Linux/ Unix, Angular 5/6/7/8, Hibernate, Data Science, Spring boot apply link Job Application 2:- Jr Associate Engineer - Freshers Company: Pragma Edge Role: Development & Support Engineers Job Location: Hyderabad job category-IT job type - full time ,permanent Experiance: freshers      Job Description 1.Excellent Communication skills 2.Strong understanding and analytical skills 3.Basics of any Programming Language 4.Ability to work on XML, XPaths. 5.High level understanding of REST APIs. 6.Delivering work assigned by Tech...