Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Python

Python

3 pages
Part 1:
Python comes with a program called an IDLE, which belongs to a type of software known in computer science as an IDE (Integrated Development Environment). IDE’s make programming easier, because they color the code for you, give you quick access to built in functions, debug your code, and allow you to run your code from the IDE instead of using the command line.
We will use IDLE in this course, but you are welcome to use ANY IDE you like! Or if you simply like to go old school and type your programs in a text editor (like Notepad) and run it manually through the command prompt, that is fine also! 🙂
Follow these steps to write your 1st Python program with IDLE:
1- Start IDLE, and select New File from the File menu
2- Type: print (“Hello world”)
3- Save the file, by going to the File menu, make sure to save the file as with a .py extension. So you can call it hello.py or bifs617_wk2.py
4- Run the program by going to the Run menu and select Run Module
5- Congratulations! You’ve written and run your 1st Python program 😉
Questions:
1- What isprint in your program actually doing? And why is “Hello world” between double quotes?
2- Add your name and the date to the code above, ascomment lines (see Chapter 2 of text book on how to do this)
3- Take a snap shot of your code and paste it (or attach it) to your response. Also mention any issues you might have had.

Part 2: One of the key elements of designing a good program is to allow the user(s) to interact with it. You can do so by asking the user to input a file name, a string representing a DNA sequence, or just a number. These input that are coming in from the user get stored in variables, and make your program more interactive. They also allow you to write a general program that can work for any input (the user (or you) can run your program 100 times and each time input a different DNA sequence for instance).
The Python function to ask for use input, is simply called input()
Here is an example of how it can be used:
DNA = input(“Enter a DNA sequence”)
When you run this, you will see the string “Enter a DNA sequence”, followed by a blinking line. That means Python is waiting for you to type in something! Once you type in a bunch of characters and hit enter, Python will grab what you typed and assign it to the variable DNA. So the string the user typed is now stored in memory and can be accessed by using the name DNA.
Here is an exercise:
Ask a user for 5 number.Use theinputfunction, and store each number in a variable. Then calculate the sum and average of the numbers. Print out both the sum and average to the screen.
Post your code and the results of your calculation here (snap shot would be fine). In the conferences you are encouraged to help one another to solve the exercises (not so for the assignments which are individual tasks!).

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org