Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Write your responses below # Your answer to # 1 below this line: items = ( ' apple ' , 'banana', 'cherry', 'date' )

# Write your responses below
# Your answer to # 1 below this line:
items =('apple', 'banana', 'cherry', 'date')
# Do not remove this line.
print("The list of items in the tuple are:
\t"+ str(items))
# Your answer to # 2 below this line:
numbers =(1,2,3,4,5)
# Do not remove this line.
print("The list of numbers from 1 to 5 are:
\t"+ str(numbers))
# Your answer to # 3 below this line:
name =("John Doe",)
# Do not remove this line.
print("The tuple that contains your name is:
\t"+ str(name))
# Your answer to # 4 below this line:
gpa =(3.8,)
# Do not remove this line.
print("The tuple that contains your CGPA is:
\t"+ str(gpa))
# Your answer to # 5 below this line:
name_gpa =("John Doe", 3.8)
# Do not remove this line.
print("The tuple that contains your name & CGPA is:
\t"+ str(name_gpa))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

Students also viewed these Databases questions