Brainiac11 / My-Projects

Use of exit() or quit() detected PYL-R1722
Bug risk
Major
a year agoa year old
Consider using sys.exit()
223
224else:
225    print("You have to type an operation!?")
226    exit()
Consider using sys.exit()
127            float(function[2])
128        except:
129            print("Enter a valid function try again. ")
130            exit()131        
132        x = float(function[2])*x
133        posOfX = function.rfind('x')
Consider using sys.exit()
108                ys.append(y_value)
109            else:
110                print("Enter a valid function try again! ")
111                exit()112                
113        def operatorReaction2(x):
114            if function[index] in multiplication:
Consider using sys.exit()
 87            
 88        except:
 89            print("Enter a valid function try again ")
 90            exit() 91            
 92        index = 2
 93        i = 0
Consider using sys.exit()
 52                data_point_y = float(data_point_y)
 53            except ValueError:
 54                print("You have to type a number!")
 55                exit() 56            
 57            data_point_list_y.append(data_point_y)
 58            stop1 = input("Press enter to continue or done to stop...")