Need help writing a script [Python]

Discussion in 'Programming General' started by I Goofyy, Sep 25, 2013.

Need help writing a script [Python]
  1. Unread #1 - Sep 25, 2013 at 10:42 AM
  2. I Goofyy
    Joined:
    Feb 15, 2012
    Posts:
    260
    Referrals:
    0
    Sythe Gold:
    88
    Discord Username:
    i goofyy

    I Goofyy Forum Addict

    Need help writing a script [Python]

    Thanks
     
    Last edited: Feb 1, 2019
  3. Unread #2 - Sep 25, 2013 at 11:09 AM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Need help writing a script [Python]

  5. Unread #3 - Sep 26, 2013 at 1:55 AM
  6. kmjt
    Joined:
    Aug 21, 2009
    Posts:
    14,450
    Referrals:
    8
    Sythe Gold:
    449

    kmjt -.- The nocturnal life chose me -.-
    Banned

    Need help writing a script [Python]

    What are the formulas for each thing you need to find?
     
  7. Unread #4 - Oct 7, 2013 at 11:08 PM
  8. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    Need help writing a script [Python]

    p = mv, don't know about energy though

    It's super basic. Take in input of m and v, do formula. Take in input for things needed for kinetic energy (if necessary), do formula.

    I don't know Python and I don't care to learn it for the sake of this thread, but what you should look up is how to get input and print into a console window. Then just do the math, i.e. p = m*v; and your assignment will be done.
     
  9. Unread #5 - Oct 16, 2013 at 8:51 PM
  10. bloodymager
    Joined:
    Mar 28, 2009
    Posts:
    1,296
    Referrals:
    1
    Sythe Gold:
    0

    bloodymager Guru
    Banned

    Need help writing a script [Python]

    With python 3.3.2

    mass = eval(input("Enter mass: "))
    velocity = eval(input("Enter velocity: "))

    print("Momentum:", mass*velocity)
     
  11. Unread #6 - Oct 17, 2013 at 11:36 AM
  12. reetTole
    Joined:
    Oct 14, 2013
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    reetTole Newcomer

    Need help writing a script [Python]

    Don't teach bad things. It should be at least float instead:

    mass = float(input("Enter mass: "))
    velocity = float(input("Enter velocity: "))
    print("Momentum:", mass*velocity)
     
< Basic Java Help Needed! | Android/iOS apps? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site