# just add a comma (,) after the value you want to add to the tuple.
my_tuple = (1,2,3,4,5)
my_tuple += 6,
my_tuple += 'hi',
print(my_tuple)
>>> (1, 2, 3, 4, 5, 6, 'hi')
>>> T1=(10,50,20,9,40,25,60,30,1,56)
>>> L1=list(T1)
>>> L1
[10, 50, 20, 9, 40, 25, 60, 30, 1, 56]
>>> L1.append(100)
>>> T1=tuple(L1)
>>> T1
(10, 50, 20, 9, 40, 25, 60, 30, 1, 56, 100)
tpl1 = ('BMW', 'Lamborghini', 'Bugatti')
print(tpl1)
#Now you have to add an item
tpl1 = list(tpl1)
print(tpl1)
tpl1.append('Mercedes Benz')
tpl1 = tuple(tpl1)
print(tpl1)
#*Run the code*
>> ('BMW', 'Lamborghini', 'Bugatti')
>> ['BMW', 'Lamborghini', 'Bugatti']
>> ('BMW', 'Lamborghini', 'Bugatti', 'Mercedes Benz')
#Task accomplished
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
programming_languages = ("python","c#","c++","c","java","javascript","assembly")
p_l = list(programming_languages)
p_l.append("pascal")
programming_languages = tuple(p_l)
print(programming_languages)