From 01fd53dddfc191389c19544b2bff50d045ac66ce Mon Sep 17 00:00:00 2001 From: ilovebewbs Date: Sun, 9 Jan 2022 18:17:31 +0300 Subject: [PATCH] optimized it for python3 only cuz it's 2022 wtf --- my_first_calculator.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/my_first_calculator.py b/my_first_calculator.py index bf7c560..e79b407 100644 --- a/my_first_calculator.py +++ b/my_first_calculator.py @@ -1,9 +1,6 @@ +#!/usr/bin/env python3 # my_first_calculator.py by AceLewis # TODO: Make it work for all floating point numbers too - -if 3/2 == 1: # Because Python 2 does not know maths - input = raw_input # Python 2 compatibility - print('Welcome to this calculator!') print('It can add, subtract, multiply and divide whole numbers from 0 to 50') num1 = int(input('Please choose your first number: '))