Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1171

Python question

by UndergroundLogic - 29 June, 2020 - 06:16 PM
This post is by a banned member (UndergroundLogic) - Unhide
90
Posts
26
Threads
4 Years of service
#1
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()
This post is by a banned member (NiggaStrada) - Unhide
This post is by a banned member (babyhomie) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)