Horje
how to multiply two tuples in python Code Example
how to multiply two tuples in python
#If you want to multiply the content of a tuple a given number of times, 
#you can use the * operator:

#Multiply the fruits tuple by 2:

fruits = ("apple", "banana", "cherry")
mytuple = fruits * 2

print(mytuple)

#Ouput: ('apple', 'banana', 'cherry', 'apple', 'banana', 'cherry')




Python

Related
python mouse click Code Example python mouse click Code Example
how to make a tick update in python Code Example how to make a tick update in python Code Example
finding email id from string python Code Example finding email id from string python Code Example
proper tree in data structure Code Example proper tree in data structure Code Example
oppsite of abs() python Code Example oppsite of abs() python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7