<reponame>pranjal-teaching/asd-class<filename>2_dictionaries/2_question.py
# Ask the user to enter fname, lname and age.
# store that info in a dict
# print that dict

user = {}
user['fname'] = input('Fname:')
user['lname'] = input('Lname:')
user['age'] = int(input('Age'))
print(user)
user.items()
# allow user to update age
ch = input('Do you want to update age? (y/n)')
if ch == 'y':
    user['age'] = int(input('Age'))


# Ask the user to enter fname, lname and age.
# store that info in a dict
# print that dict

user = {}
user['fname'] = input('Fname:')
user['lname'] = input('Lname:')
user['age'] = int(input('Age'))
print(user)
user.items()
# allow user to update age
ch = input('Do you want to update age? (y/n)')
if ch == 'y':
    user['age'] = int(input('Age'))
# Ask the user to enter fname, lname and age. # store that info in a dict # print that dict # allow user to update age