Python Projects: Compute the value of e to n number of decimal places
Python Project-2 with Solution
Create a Python project to get the value of e to n number of decimal places.
Note: Input a number and the program will generate e to the 'nth digit.
Sample Solution -1 :
Python Code:
Sample Output:
Please type number between 0-1000: 8 2.7182818
Flowchart:

Sample Solution -2 :
Python Code:
Sample Output:
Precision must be between 1 and 51 Number of decimal places: 5 2.71828
Flowchart:

Sample Solution -3 :
Python Code:
Sample Output:
Please enter how many decimal places you would like returned for e: 5 2.71828
Flowchart:

Sample Solution -4 :
Python Code:
Sample Output:
Enter the number of digits you want after the decimal for e: 5 2.71828
Flowchart:

Improve this sample solutions and post your code through Disqus