From Image
if chk == True:
while num != 6:
printM()
num = int(input("What do you want to select?"));
if num > 6 and num < 1:
continue
switch(num, phoneNumber)
**1. ↑ PhoneNumber encountered an error in this part. I want to know how to solve the Unresolved reference error.
``
It's very simple.
Variables such as chk
and num
are previously defined. However, phoneNumber
is not defined. This is an error that occurs.
Other function definitions in the front are using phoneNumber
, but those are irrelevant variables.
© 2024 OneMinuteCode. All rights reserved.