Hai what is the answer choices?? please tell me so I can help u
Answer:
#program in python.
#variables
slice_area=14.125
pi=3.14159
#read diameter
d=int(input("Enter diameter of pizza:"))
#area of pizza
area=pi*(d/2)*(d/2)
#number of slice
no_slice=int(area/slice_area)
#print slice
print("total silce are:",no_slice)
Explanation:
Declare and initialize a variable "slice_area" with 14.125 which is the area of a pizza slice.Initialize a variable "pi" with 3.14159.Then read the diameter of pizza.Find the area of pizza as "area=pi *d/2*d/2".Divide the total area with area of pizza slice.This will be the number of slice.
Output:
Enter diameter of pizza:20
total silce are: 22
Answer:
The answer is "Option b".
Explanation:
Sentinel [..] is a special value, which existence ensures the end of a loop, which performs structured data. It allows the information end to be identified where no other means are available for this, and wrong choices can be described as follows:
- In option a, It is a special value, not a data type, that's why it is not correct.
- Option c and Option d both were wrong because, It is an empty list, and it can't indicate the starting point of the list and guards the list.