write a python program to unpack a tuple in several variables. display type of each variable

Опубликовано: 08 Сентябрь 2024
на канале: Code With TJ
15
1

Hello Programmers, Welcome to my Python Programming Tutorial Channel.

In this video you will learn about how to write a python program to unpack a tuple in several variables. display type of each variable

Python Scripts
========================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
========================
https://codewithtj.blogspot.com/2023/...

Python 3 Tutorial - Code
=============================
"""
write a python program to unpack a tuple in several variables. display type of each variable
"""

values = (10, "hello", 5.5555, None, False)

a, b, c, d, e = values

print(f"Type of {a} is {type(a)}")
print(f"Type of {b} is {type(b)}")
print(f"Type of {c} is {type(c)}")
print(f"Type of {d} is {type(d)}")
print(f"Type of {e} is {type(e)}")


Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners