Title Determining Whether One is a Teenager
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_check_age&ch=py_check_age2
Platform Name PCEX
Features
Description Construct a program that asks the user to enter a string that has the user name and age separated by a colon, and prints whether the user is a teenager. Make sure that the program handles all possible exceptions. The program must ask the user for an input until the user enters a string that could be processed without any exception.
Keywords exception handling, if-else statement
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_check_age&ch=py_check_age2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview