Comments are little notes to yourself which the computer knows to ignore. In addition to statements, you may want to comment your code. Code is a series of statements which tell the computer what to do. On the desktop double-click on "Spyder (Anaconda3)". Question 1: Here is a pretty simple kinematics question: If a small, steel ball is dropped from a height of 20 m, how long does it take for it to hit the ground? Neglect air resistance. In this activity you are going to simulate dropping a ball from a height of 20 m with an initial velocity of 0. All quantities are in SI units distance in meters (m), time in seconds (s), velocity in m/s, and acceleration in m/s 2.We assume the motion is always close to Earth’s surface, and therefore we will make the approximation that gravity is a constant g = 9.8 m/s 2.Feel free to ask the TA for help if a consensus cannot be reached. You must reach a consensus with your partners about an answer before moving on to the next part.You can then rename the code and keep working on adding to it for the subsequent activity. At the end of each activity, copy your working code into a Word or Notepad file, print it, and staple it into your notebook.Include the answers to these questions in your notebook. There are questions asked of you throughout this Practical, labeled Question 1, Question 2, etc.However, this is not required, and the code for today's practical should be written "from scratch", according to the instructions below. If you are very new to programming, it might be useful to go through the Python intro document at . In the following exercise you will use Python to investigate the motion of a ball in free fall under the influence of gravity. Python is a widely used and versatile programing language, often utilized by physicists and other scientists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |