# Tuples Page 30/31 # 3 variables define using user inputs # ccNum int int( input() ) ccNum = int( input("Enter Credit Card Number: ") ) # ccExp string input() ccExp = input("Enter Exp Date ex: mm/yy: ") # ccCVC int int( input() ) ccCVC = int( input("Enter CVC Code: ") ) # Create a tuple (ccNum, ccExp, ccCVC) ccInfo = (ccNum, ccExp, ccCVC) # Print the tuple print(ccInfo) # Add zip code zipCode = input("Enter your zip code: ") ccInfoList = list(ccInfo) # list() ccInfoList.append(zipCode) # append() list ccInfo = tuple(ccInfoList) # tuple() print(ccInfoList) # [] print(ccInfo) # () ''' Casting int() integers str() strings list() list tuple() tuple bool() boolean '''