please answer this question
Attachments:
Answers
Answered by
1
Answer:
a , b = "5.0", "10.0"
a = float(a)
b = float(b)
print(a/b)
Explanation:
you need to assign them in a different variable then divide them not directly if you do like this it will say as attempted to divide str . a small thing to be mentioned they first do operation then convert it into float . have a nice day
Answered by
1
꧁༺༒ANSWER༒༻꧂
X data type is missing
a ,b must be declared before in float
There must not be double quote
So,sintax,
float a,b=5.0,10.0;
float x=a/b;
Sop(x);
Similar questions