Python Forum
How to Use Python for solving the following physics question. Python Code required
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Use Python for solving the following physics question. Python Code required
#7
Here's a beginning, leaving some blanks for you to fill in and figure out:
# Data
m1=1600 
m2= 1400 
u1= 18
u2= 0

#momentums
mom1=m1*u1
#put similar formula for the second object initial momentum here, call it mom2
mom3=mom1+mom2#combined momentum

#solution
velociraptor = mom3/(#the sum of the masses)
print(velociraptor)
Reply


Messages In This Thread
RE: How to Use Python for solving the following physics question. Python Code required - by jefsummers - Dec-17-2019, 12:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner Python Question: FIzz Buzz using while loop camoyn13 2 1,868 Sep-20-2022, 09:00 AM
Last Post: deanhystad
  Missing 1 required positional argument in python code edwinostby 7 10,087 Jan-19-2021, 12:52 PM
Last Post: Serafim
  Need help with this Python Interview Question hannah 7 3,671 Sep-11-2020, 03:02 PM
Last Post: ndc85430
  question on list in Python spalisetty06 1 2,077 Jun-30-2020, 09:03 AM
Last Post: pyzyx3qwerty
  python question strekasz 1 1,379 Mar-17-2020, 04:08 PM
Last Post: jefsummers
  Question about Python Code Than999 10 4,260 Nov-05-2019, 11:59 PM
Last Post: Than999
  Python Homework Question OrcDroid123 1 2,408 Sep-01-2019, 08:44 AM
Last Post: buran
  [Guidance needed] Python def question PieTurn 4 2,522 Aug-04-2019, 08:12 AM
Last Post: ichabod801
  Python Question Smhbugra 2 2,354 May-27-2019, 06:19 PM
Last Post: calvinpdaw
  Beginner Python Homework Question (Calculate Gross Pay) matchamochi7 4 5,744 Nov-02-2018, 01:06 PM
Last Post: buran

Forum Jump:

User Panel Messages

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