🔒 Closed Python coding help po

Status
Not open for further replies.
userIn = int(input('A or B'))
if userIn.lower() == 'a':
do this // quad eq
print('inp 2 num')
num1 = int(input())
num2 = int(input())
operator = input()
if operator.lower() == 'add':
add this
res = 1 + 2
if operator.lower() == 'mul':
mul this
res = 1 * 2
if operator.lower() == 'div':
div this
res = 1 / 2
if operator.lower() == 'sub':
sub this
res = 1 - 2

print(res)

elif userIn.lower() == 'b'
do this // simple eq
else:
do this.// option doesn't exists

nakakatamad. gawin mo nalang
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 386
    Views
  • 4
    Participants
Last reply from:
Wu Zi Mu

Trending Topics

Online now

Members online
1,044
Guests online
3,234
Total visitors
4,278

Forum statistics

Threads
2,307,096
Posts
29,176,454
Members
1,193,231
Latest member
GlitchNDmatriX
Back
Top