Logic in this | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Logic in this

word1= "welcome" word2="home" r=[] for x in word1: if x in word2: r.append(x) print(r[2]+r[1]+r[2])

9th Oct 2018, 6:18 AM
AMAN TOMAR
AMAN TOMAR - avatar
3 Antworten
9th Oct 2018, 6:18 AM
AMAN TOMAR
AMAN TOMAR - avatar
0
Jay Matthews thanks ..but I m looking for the logic used in the above code
9th Oct 2018, 7:43 AM
AMAN TOMAR
AMAN TOMAR - avatar
0
thank you
9th Oct 2018, 9:30 AM
AMAN TOMAR
AMAN TOMAR - avatar