code.py
1 # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 """Example of assigning a variable, and comparing it to a value in a loop.""" 6 user_name = input ("What is your name? ") 7 8 while user_name != "Clark Kent": 9 print("You are not Superman - try again!") 10 user_name = input ("What is your name? ") 11 print("You are Superman!")