python create tuple from input

Do you want to know the details regarding “python create tuple from input”. If yes, you’re in the correct post.

python create tuple from input

t = input()
a = tuple(int(x) for x in t.split())
#view this tuple
print(a)

Final Words

I hope this post helps you to know about “python create tuple from input”. If you have any doubts regarding this post please let us know via the comment section. Share this article with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment