Home
About
Contact
Header Ads Widget
Home
Coding Questions
_C/C++ Programs
_Python Programs
_Data Structure Programs
_Competitive Coding
Practice Problems
Key Points
Notes
MCQs
Interview
Trends
Home
python_programs
Python program to convert elements of tuple in to integer.
Python program to convert elements of tuple in to integer.
Rajnish Tripathi
17:14
original tuple=(1,2,3,4)
output=1234
Code:-
mytuple=
(
1
,
2
,
3
)
num=
0
for
i
in
mytuple
:
num=num*
10
+i
print
(
num
)
Output:-
123
Post a Comment
0 Comments
Popular post
PPS 1st year (C programming ) handwritten notes Aktu
11:47
Python : missing characters : hackerrank solution
23:01
pps unit 1 notes
09:54
Social Plugin
MCQs
3/MCQs/post-list
Tags
c-programs
Companies
competitve programs
Data structure
doubts
key points
MCQs
Notes
practice problems
python
0 Comments