Generation

code to explanationMon, 10 Apr 2023

tuple1=("This","is",1,"book") for i in tuple1: print(i,end="\n")

The for-loop iterates over each element in the tuple and prints the element on the screen.

Questions about programming?Chat with your personal AI assistant