OP 29 June, 2020 - 06:16 PM
Hey guys so I'm going through tutorials etc starting wit python and it got to make a simple calc etc, anyway made one with below code, now my question is, why does this flag up on virustotal after building with 'pyinstall', I am so confused about it https://www.virustotal.com/gui/file/a004.../detection
Code:
import time
print("Developed by UndergroundLogic\n")
time.sleep(3)
global x
x = 1
def main():
print("1. Addition")
print("2. Subtraction")
print("3. Multiplication")
print("4. Divide")
print("5. Exit")
global x
choice = int(raw_input("Please make a selection: "))
if choice == 1:
num1 = float(raw_input("First number: "))
num2 = float(raw_input("Plus: "))
result = float(num1 + num2)
print("Result: ") + str(result)
elif choice == 2:
num1 = float(raw_input("First number: "))
num2 = float(raw_input("Minus: "))
result = float(num1 - num2)
print("Result: ") + str(result)
elif choice == 3:
num1 = float(raw_input("First number: "))
num2 = float(raw_input("Times: "))
result = float(num1 * num2)
print("Result: ") + str(result)
elif choice == 4:
num1 = float(raw_input("First number: "))
num2 = float(raw_input("Divided by: "))
result = float(num1 / num2)
print("Result: ") + str(result)
elif choice == 5:
raw_input("Press <enter> to exit.")
exit()
else:
print("Invalid selection, please try again.")
while x == 1:
main()