how to append number in tuple
a = (3,)
b = list(a)
b.append("Work!")
a = tuple(b)
print(a)
how to append number in tuple
a = (3,)
b = list(a)
b.append("Work!")
a = tuple(b)
print(a)
how to create an array in python
array = ["1st", "2nd", "3rd"]
#prints: ['1st', '2nd', '3rd']
array.append("4th")
#prints: ['1st', '2nd', '3rd', '4th']
how to convert a list to a string in python
array = []
STR = ''
for i in array:
STR = STR+i
tuple add
a = (1, 2, 3)
b = a + (4, 5, 6) # (1, 2, 3, 4, 5, 6)
c = b[1:] # (2, 3, 4, 5, 6)
how to add number in tuple
a = ('2',)
b = 'z'
new = a + (b,)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us