Python Forum
where to start with power program?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where to start with power program?
#3
well first I put in

def pow (x, y)
and I just keep getting a syntax error

This is what it should be outputting but I don't know where to start



Please enter the base value: 3
3 to the 1 power is 3
3 to the 2 power is 9
3 to the 3 power is 27
3 to the 4 power is 81
3 to the 5 power is 243
3 to the 6 power is 729
3 to the 7 power is 2187
3 to the 8 power is 6561
Reply


Messages In This Thread
RE: where to start with power program? - by nomoremrriceguy - Oct-04-2017, 01:52 AM
RE: where to start with power program? - by Larz60+ - Oct-04-2017, 04:12 AM
RE: where to start with power program? - by wavic - Oct-04-2017, 04:21 AM
RE: where to start with power program? - by Mekire - Oct-04-2017, 05:30 AM
RE: where to start with power program? - by wavic - Oct-04-2017, 07:31 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020