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

Asked 2 weeks ago, Updated 2 weeks ago, 1 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


© 2022 pinfo. All rights reserved.