Tuple of characters to a string

EasyTuple Programs · 9 of 70

Write a Python program to join a tuple of characters into a string.

Advertisement
Input
("s", "q", "a", "t", "o", "o", "l", "s")
Output
Sqatools

Approach

  1. "".join(t).

Solution

Python
t = ("s", "q", "a", "t", "o", "o", "l", "s")print("".join(t).capitalize())
Output
Sqatools
Advertisement

Learn the concept

New to this topic? Read the lesson, then come back.

More tuple programs

← All 70 Tuple Programs