unresolved reference error Error during programming of employee information entry, storage, modification, and deletion functions after logging in to Python

Asked 2 years ago, Updated 2 years ago, 18 views

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.

``

python

2022-09-20 14:32

1 Answers

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.


2022-09-20 14:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.