Python Program to merge two tuples | MySirG.com

preview_player
Показать описание
Python Program to Merge Two Sorted Tuples. Important program for campus preparation. Explained in Hindi.

Connect with me
------------------------------


How to access Free or Paid learning videos?
-----------------------------------------------------------------------

Most Valued course- Python for beginners, Javascript in depth

How to join coaching in Bhopal?
---------------------------------------------------


Popular Searches
----------------------------
Python by Saurabh Shukla Sir
Python by Saurabh Sir
Javascript
GUI Python
Web Python
Full Stack development
C Language
C++ Language
Data Structure
PHP-MySQL
DBMS
Java
Android


Like, Comments, Share and SUBSCRIBE
Рекомендации по теме
Комментарии
Автор

# Sir this can be done by this way too:
tup1=(1, 2, 3, 14, 15)
tup2=(95, 6, 1, 8)
a=list(tup1)
b=list(tup2)
a.extend(b)
a.sort()
final=tuple(a)
print("The final return is resultant Tuple is", final)

datasciencewitha.k.
Автор

Mne aapki c c++ java course leye hai or muje bahut ache se concept clear hote h sir kitna he bda program ho esilye clear hojata h sir req h aap se android series launch krdo app development ke lye

Merealfaj
Автор

Sir, your way of teaching is amazing ; I have no any word to describe it . Great!!!

shashikantthakur
Автор

Hello Sir. Want to know can we use sublime editor for C language Practice? Or Codeblock is best?

MindMattersFirst
Автор

Sir python courses bhi YouTube pe upload kardo

nikhilagrawal
Автор

sir please can you explain why your "k" variable does nothing?

anubhavsingh
Автор

sir yahan pe 'K variable' ka toh kuch kaam hi nhi hai

srimantmishra
Автор

Sir array using python ki ek video bana dijiye please 🙏🏻🙏🏻

mohitsahu
Автор

I want to buy your python course but I am from Pakistan how can I pay you? please guide how can I buy course thanks

mkhan
Автор

Why Don’t we just convert both tuple into List then Merge both List and Use Sort Function And Covert The Sorted List Into Tuple Again..?

ravirajsk
Автор

Hello sir ..please suggest the website for compititive programming for python

vanshikashah
Автор

Sir samrt calculator ka video kab ayega, , 🥺

vinayprajapati
Автор

Sir please req h aap Android course app development ke series launch kro m premium m b lelunga

Merealfaj
Автор

Sir me hackerrank website pr practice kr rha hu in present mere 3 🌟 he or fourth hone bala he 🙂🙂

mohitsahu
Автор

सर् आपको एक मेल किया हूँ कृपया रिप्लाई जरूर करें।
Thanx

sarveshchaturvedi
Автор

class Deck():
def __init__ (self):
suitslist = ['Hearts', 'Diamonds', 'Spades', 'Clubs']
rankslist = ['Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine',
'Ten', 'Jack', 'Queen', 'King', 'Ace']
listofcards = []
for i in range (len (suitslist)):
for j in range (len (rankslist)):
listofcards.append (Card (suitslist[i], rankslist[j]))
self.deckofcards = listofcards
def pop_cards (self):
if self.deckofcards == []:
return []
cards = random.choices(self.deckofcards, k=2)
while cards[0]==cards[1]:
cards = random.choices(self.deckofcards, k=2)


return cards

sebastianjakub