The program uses the random module in Python to select a random character from the string "Python Exercise" and print it to the console.
So, each time the program runs, a random character from the string "Python Exercise" is selected and printed to the console. The output will be a single character, such as "h" or "x", chosen at random. Note that since the characters are chosen randomly, the output will be different each time you run the program.
import random str = "Python Exercise" print(random.choice(str))
s
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions