Answer:
To translate C++ Into python REWRITE the code entirely
Step-by-step explanation:
Translated to python language (answer)
sum = 0.0
for i in range(0,3):
sum += float(input("Enter a decimal number to sum: "))
print ("Sum: ", sum)
________________________________________________
Given: #include <iostream>
using namespace std;
int main()
{
//Declare three variable to store three decimal numbers.
double num1, num2, num3;
//Taking input for three decimal number from user.
cout<<"Enter three numbers"<<endl;
cin>>num1>>num2>>num2;
//Displaying sum of three numbers to user.
cout<<"The sum of three numbers is: "<<num1+num2+num3<<endl;
return 0;
}