0

How to print two strings in one go using append

test = [] best = [] west = ["Trying", "To", "Check", "How", "This", "works"] test.append(108) test.append(54) test.append(27) test.append(13) test.append(9) best.append("No") best.append("Clue") best_west = west[5] best_west = west[4] best_west = west[3] best_west = west[2] best_west = west[1] best_west = west[0] print(test) print(best) print(best_west) This code provides the output as [108, 54, 27, 13, 9] ['No', 'Clue'] Trying My question is if I want to print "Trying" & Check or any other string in one sentence, how should I do it? e.g. Trying & Works together.

28th Jun 2018, 4:39 AM
Raghavendra Sharma
2 Answers
+ 3
28th Jun 2018, 4:49 AM
Oma Falk
Oma Falk - avatar
+ 1
Thanks Oma..it helped me a lot!
28th Jun 2018, 5:20 AM
Raghavendra Sharma