🔒 Closed Python coding help po

Status
Not open for further replies.
Pwede niyo po ba akong tulungan sa pagkuha po ng code ng flowchart na eto gamit ang python language?
 

Attachments

  • tmp_1604473862190.webp
    tmp_1604473862190.webp
    42.8 KB · Views: 16
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
  • 373
    Views
  • 4
    Participants
Last reply from:
Wu Zi Mu

Online now

Members online
444
Guests online
761
Total visitors
1,205

Forum statistics

Threads
2,276,049
Posts
28,967,271
Members
1,232,080
Latest member
forsakien
Back
Top