Write a Python script which uses the built-in function range () to display the fourth powers of the first 6 natural numb
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a Python script which uses the built-in function range () to display the fourth powers of the first 6 natural numb
Write a Python script which uses the built-in function range () to display the fourth powers of the first 6 natural numbers ie: display the numbers 1,2,3....,6. Extend your script to display the average of the 6 numbers just displayed, to a precision of two (2) decimal places. When implemented correctly, your Python script should generate the following output: 1 16 81 256 625 1296 379.17
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!