Online Module_Python.qxd 7/30/09 8:10 PM Page 1 Programming in Python Online module to accompany Invitation to Computer Science, 5th Edition ISBN-10:...
This question has been answered
Question

<br/> -Find a current article (one published in the last six months)

about Artificial Intelligence. Write a short (one paragraph) summary of the article. Provide the URL or proper citation to the article.
-and do question# 36 in Python Programming the file i sent: Number 36 on page 73 of the Python PDF

1 Attachment
1 Programming in Python Online module to accompany Invitation to Computer Science, 5 th Edition ISBN-10: 0324788592; ISBN-13: 9780324788594 (Course Technology, a part of Cengage Learning, 2010). 1. Introduction to Python 1.1 A Simple Python Program 1.2 Creating and Running a Python Program 2. Virtual Data Storage 3. Statement Types 3.1 Input/Output Statements 3.2 The Assignment Statement 3.3 Control Statements 4. Another Example 5. Managing Complexity 5.1 Divide and Conquer 5.2 Using and Writing Functions 6. Object-Oriented Programming 6.1 What Is It? 6.2 Python and OOP 6.3 One More Example 6.4 What Have We Gained? 7. Graphical Programming 7.1 Graphics Hardware 7.2 Graphics Software 8. Conclusion E X E R C I S E S A N S W E R S T O P R A C T I C E P R O B L E M S ©2010 Course Technology, a part of Cengage Learning. Online Module_Python.qxd 7/30/09 8:10 PM Page 1
Background image of page 01
1 Introduction to Python Hundreds of high-level programming languages have been developed; a fraction of these have become viable, commercially successful languages. There are a half-dozen or so languages that can illustrate some of the concepts of a high-level programming language, but this module uses Python for this purpose. Our intent here is not to make you an expert Python programmer—any more than our purpose in Chapter 4 was to make you an expert circuit designer. Indeed, there is much about the language that we will not even discuss. You will, however, get a sense of what programming in a high-level language is like, and perhaps see why some people think it is one of the most fascinating of human endeavors. 1.1 A Simple Python Program Figure 1 shows a simple but complete Python program. Even if you know nothing about the Python language, it is not hard to get the general drift of what the program is doing. 2 Programming in Python ©2010 Course Technology, a part of Cengage Learning. #Computes and outputs travel time #for a given speed and distance #Written by J. Q. Programmer, 6/15/10 speed = input(“Enter your speed in mph: ”) speed = int(speed) distance = input(“Enter your distance in miles: ”) distance = float(distance) time = distance/speed print(“At”, speed, “mph, it will take”) print(time, “hours to travel”, distance, “miles.”) input(“\n\nPress the Enter key to exit”) A Simple Python Program FIGURE 1 Online Module_Python.qxd 7/30/09 8:10 PM Page 2
Background image of page 02

End of preview

Answered by Expert Tutors

et, c

pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque
1 Attachment
9103885.docx
docx
The student who asked this rated it
Get unstuck

442,185 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses