Put the lesson Conditional Statements into practice by writing a program yourself.
A material's band gap (in electronvolts, eV) tells you how it conducts electricity:
A band gap of 0 means a conductor, less than 3 means a semiconductor, and 3 or more means an insulator.
if, elif and else to choose the category.1.12), print Silicon is a semiconductor.band_gap to 0 or 5.5.Silicon is a semiconductor
Write your program below and press Run. Each run is checked against the expected output.
Press Run to see what your program prints.
One possible solution. Other programs that print the same output are correct too.
material = "Silicon"band_gap = 1.12 # eVif band_gap == 0: category = "conductor"elif band_gap < 3: category = "semiconductor"else: category = "insulator"print(f"{material} is a {category}")