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:int, float, complex
Sequence Types:list, tuple, range
Mapping Type:dict
Set Types:set, frozenset
Boolean Type:bool
Binary Types:bytes, bytearray, memoryview
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

DISCRETIVE MATHAMATICS

            DISCRETIVE MATHAMATICS THIS BLOG ABOUT ALL DISCRETIVE MATHAMATICS TODAY ZOOM MEETING  22/06/2021 1Q:- How many different bit strings of length seven  are there? Solution:    STEP:-1 STRING LENTH SEVEN SO 7 PLACES STEP :2 CAN STORE IN COMPUTER IN 0 OR 1 BIT TWO WAYS CAN STORE STEP :3 _ _ __ __ __ __ __ __ PUT 2 IN ALL PLACES BECAUSE 1 OR 0 POSSIBLE WAYS STEP:4 2X2X2X2X2X2X2 =128 OR 2 7 = 128 Each of the seven bits can be chosen in two  ways, because each bit is either 0 or 1. Therefore, the product rule shows there are a  total of 2 7 = 128 different bit strings of length seven. 2Q:- •  Example:  How many different license plates can be  made if each plate contains a sequence of three uppercase English letters followed by  three digits? •  Solution:  STEP:-1 THREE LETTERS AND THREE DIGITS SO TOTAL 6 PLACES...

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 

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

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

DESIGN ANALYSIS AND ALGOROTHMS

    DESIGN ANALYSIS AND ALGOROTHMS           THIS BLOG IS ABOUT  DESIGN ANALYSIS & ALGORITHMS          MOSTLY  YOU  PREFERED GOOGLE CHROME TO OPEN THIS FILES       DESIGN ANALYSIS AND ALGOROTHMS TEXT BOOK           DOWNLOAD HERE       PREPARE FOLLOWING WEBSITE EASY WAY TO LEARN  DESIGN ANALYSIS & ALGORITHMS OPENHERE WHAT IS ALGORITHM ? OPEN IT DYNAMIC PROGRAMING OPEN IT FLOYD-WARSHALL ALGORITHM OPENIT GREEDY ALGORITHM ? OPENIT DIJKSTRA'S ALGORITHM ? OPENIT KRUSKAL'S ALGORITHM ?  OPENIT PRIM'S ALGORITHM ? OPENIT HUFFMAN CODING ? OPENIT MERGESORT  OPENIT QUICKSORT OPENIT BINARY SEARCH OPENIT INSERTION SORT OPENIT SELECTION SORT OPENIT BUBBLE SORT OPENIT HEAP SORT OPENIT DEPTH FIRST SEARCH(DFS) OPENIT BREADTH-FIRST-SEARCH(BFS) OPENIT                               ...

WEB TECHNOLOGIES

  WEB TECHNOLOGIES WEB TECHNOLOGIES TEXT BOOK : DOWNLOAD HERE

MANEGERIAL ECONOMICS

    MANEGERIAL ECONOMICS  THIS BLOG ALL ABOUT  MANEGERIAL ECONOMICS  UNIT I ECONOMICS AND MANEGERIAL ECONOMICS :- DOWNLOAD HERE UNIT II COST ANALYSIS  :- DOWNOAD HERE  UNIT III MARKET STRUCTURE  :- DOWNLOAD HERE UNIT IV PRICING ANALYSIS :- DOWNLOAD HERE MANEGERIAL π„π‚πŽππŽπŒπˆπ‚π’ UNIT I  π„π‚πŽππŽπŒπˆπ‚π’             Economics is a social science concerned with the production, distribution, and consumption of goods and services. It studies how individuals, businesses, governments, and nations make choices about how to allocate resources. ... The building blocks of economics are the studies of labor and trade. π’π‚π€π‘π‚πˆπ“π˜   SCARCITY SIMILAR WORD SHORTAGE       Scarcity is one of the key concepts of economics. It means that the demand for a good or service is greater than the availability of the good or servic...

DISCRETIVE MATHAMATICS

          DISCRETIVE MATHAMATICS THIS BLOG IS ABOUT  DISCRETIVE MATHAMATICS    MOSTLY  YOU  PREFERED GOOGLE CHROME TO OPEN THIS FILES     1.MATHAMATICAL LOGIC   :-      DOWNLOAD HERE    2.PREDICATE CALCULUS  :-       DOWNLOAD HERE 3. NUMBER THEORY  :-       DOWNLOAD HERE   4. COUNTING   :-      DOWNLOAD HERE   5. RECURRENCE RELATIONS BASICS  :-        DOWNLOAD HERE   RECURRENCE RELATIONS FULL CHATER  :-       DOWNLOAD HERE  6. PIGOEN PRINCIPLE   :-      DOWNLOAD HERE  :-      DOWNLOAD HERE     7. GRAPHS  :-      DOWNLOAD HERE  4. COUNTING   :-      DOWNLOAD HERE [ REMAINING NOTES AVAILABLE IN SOON ]

FORMAL LANGUAGE & AUTOMATA THEORY

FORMAL LANGUAGE & AUTOMATA THEORY   FLAT TEXT BOOK :   DOWNLOAD FLAT TEXT BOOK :   DOWNLOAD AUTOMATA THEORY TEXT BOOK :   DOWNLOAD AUTOMATA THEORY & APPLICATIONS TEXT BOOK :   DOWNLOAD FLAT DIGITAL NOTES PDF:   DOWNLOAD FLAT NOTES PDF :   DOWNLOAD FLAT FACULTY DATA PDF :   OPEN HERE