@AyushMalhotra/

BoringPointlessLists

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
print('Provide an integer followed by a math operation for up to 4 integers. Available math operations are: +, -, *, /')

x1 = str(input('input an integer'))

s1 = input('input operation')

x2 = str(input('input an integer'))

s2 = str(input("input next operation"))

x3 = str(input("input next integer"))

s3 = str(input("input an operation"))

x4 = str(input("input next integer"))
expression = x1 + s1 + x2 + s2 + x3 + s3 + x4
 
print(expression,'=', eval(expression))