# Python code Help Completing

FOR School project. Completed most of code, please see below for code I have done so far

Program must generate random fraction questions using the basic math operators

Each question should be randomly generated

Each operator should be randomly generated

You should provide the answer in lowest terms

Each output should be formatted to look as follows 2/3 * 3/4 = 1/2

You cannot use the built in Fraction Functions in Python

Your program should repeat 5 times. User has to enter in answer for each question. At the end It should display the amount of correct answers and wrong answers at the end as well as correct answers to each question.

I CANT FIGURE OUT HOW TO DISPLAY CORRECT ANSWERS, AND NUMBER OF WRONG AND CORRECT ANSWERS

import replit

import time

import random

from fractions import gcd

count=0

wrong=0

math = ['-', '*', '/', '+', ]

count=0

wrong=0

for i in range (5):

math = ['-', '*', '/', '+', ]

print(num1,"/",den1,(""),random1, (""),num2,"/",den2)

ansnem1=int(input("what is the numerator to this fraction question :"))

ansden=int(input("what is the denominator to this fraction question :"))

if ("*" in random1):

deno=(den1*den2)

numer=(num1*num2)

elif (ansnem1==numer,ansden==deno):

print ("correct")

count=count+1

print(count)

else:

print("wrong")

if ("-" in random1):

deno1=(den1*den2)

numos=(num1*den2)

numos1=(num2*den1)

numer1=(numos-numos1)

print(numer1,"/",deno1)

if (ansnem1==numer1,ansden==deno1):

print ("correct")

count=count+1

print(count)

else:

print("wrong")

if ("/" in random1):

numer2=(num1*den2)

deno2=(den1*num2)

print(numer2,"/",deno2)

if (ansnem1==numer2,ansden==deno2):

print ("correct")

count=count+1

print(count)

else:

print("wrong")

if ("+" in random1):

denno3=(den1*den2)

numer10=(num1*den2)

nummer20=(num2*den1)

nummerrr=(numer10+nummer20)

print(nummerrr,"/",denno3)

if (ansnem1==nummerrr,ansden==denno3):

print ("correct")

count=count+1

print(count)

else:

print("wrong")

print(count)

Навыки: Python

О работодателе:
( 1 отзыв ) Mississauga, Canada

ID проекта: #26417917

hasankassim7

Hi I can help

(15 отзывов(-а))
4.2

## 15 фрилансеров(-а) готовы выполнить эту работу в среднем за \$38

MohammedSulhi

I am an experienced Data Scientist and Machine Learning Engineer. Data Visualization, NLP, Deep learning, Artificial intelligence, machine learning, Data structures, and algorithms are my major fields. I finished speci Больше

(40 отзывов(-а))
4.9
profvipabutaleb

I'm computer engineering TA with 10+ years of experience. Experienced with python programming numpy,scipy,pandas , matplotlib , qt4 , tkInter , GUI ,signal processing , big data analytics , machine learning through py Больше

(20 отзывов(-а))
4.2
urmate

Hi there I am a senior software engineer with 10 years of practical programming experience. I have excellent programming and development skills in various programming languages and frameworks. I am interested in your Больше

(20 отзывов(-а))
4.3
kanikasinghal22

I am phd in statistics from IIT Kharagpur (same Institute as of Sunder Pichai :)) and working as data scientist since last 6 years. I have 10 years of experience in python. I can give you a quality and quick output. Больше

(8 отзывов(-а))
3.3
braincenter

Hello, Hope this message finds you well, I checked your details and I believe that my experience is what you are looking 4. I have been working on similar projects for the past eight years, and I have the essential sk Больше

(7 отзывов(-а))
3.8

Hello Sir/ Ma’am As a highly skilled full stack developer, I have rich experience in JAVA, C, C++, C# Python , Arduino, [login to view URL], Word press, and ANDROID. I am very confident with my skills and I'd like to he Больше

(2 отзывов(-а))
2.1
olgastolyarovare

Hello, sir. I'm pretty happy to bid on this interesting project. I read your description carefully and I think that I am the developer you are looking for and are suitable for this task. I have rich experience in Pytho Больше

(2 отзывов(-а))
1.5
Mahihassi

I am expert in python. I read the code very carefully. I can modify it according to the condition. I am very hardworking. Please do consider me.

(1 отзыв)
1.4
SmartTechPeople

Hello, I am an experienced software engineer in python. I would love the opportunity to speak with you and help you to solve your school project. Thanks,

(2 отзывов(-а))
1.3
FredrickSykes

Thanks for your job posting I just read your job posting and your job catches my eye. I am skilled web developer with skills including Python. My deep experience includes Node.js/Express as well as more traditional te Больше

(0 отзывов(-а))
0.0

hey there it's Hamza, I am python developer with good math and logic skills I went through your project and it looks easier to me I can complete this code in least amount. please contact me for providing further infor Больше

(0 отзывов(-а))
0.0
HamzaPProgrammer

I carefully read your proposal and the code you wrote and I can complete the job you want in 1h, please sent the a message to discuss more details.

(0 отзывов(-а))
0.0