Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#2
When you call aphelion() here, you pass velocity_aphelion as the third argument. velocity_aphelion is a function.
print(aphelion(perihelion, velocity_perihelion, velocity_aphelion))
Did you mean to pass velocity_perihelion instead? Or did you intend to pass the value calculated here:
print(velocity_aphelion(perihelion, velocity_perihelion))
If the latter, you'll need to assign the return value of velocity_aphelion() to a variable and pass that variable as the third argument to aphelion().
Reply


Messages In This Thread
Question - by arlindsherifi - Jan-20-2024, 08:26 PM
RE: Question - by deanhystad - Jan-20-2024, 08:51 PM

Forum Jump:

User Panel Messages

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