100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Python Programming: An Introduction to Computer Science 2nd Edition By John M. Zelle

Rating
-
Sold
-
Pages
407
Grade
A+
Uploaded on
13-06-2025
Written in
2024/2025

Python Programming: An Introduction to Computer Science 2nd Edition By John M. Zelle

Institution
Programming For Python Language..
Course
Programming for python language..











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Programming for python language..
Course
Programming for python language..

Document information

Uploaded on
June 13, 2025
Number of pages
407
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • python programming

Content preview

Sp Sp Sp Sp Sp
la la la la l as l as
sh sh sh sh h h
ne ne ne ne ne ne
tz tz tz tz tz t
2nd Edition By John M.



An Introduction to
Computer Science


Sp Sp Sp Sp Sp
An Introduction To Compter Science




la la la la l as
sh sh sh sh h
n e ne ne ne ne

,Sp Sp Sp Sp Sp Sp
la l
a la la la la
sh sh sh sh sh sh
ne ne ne ne ne ne
tz tz tz tz tz
lOMoAR cPSD| 24448587




Sp Sp Sp SpSp
la la la la la
sh sh sh sh sh
ne ne ne ne ne

, lOMoAR cPSD| 24448587




ne
sh




ne
la

tz




sh
Sp

ne




la
Python Programming:
sh




Sp
An Introduction to Computer Science




ne
la

tz
John M. Zelle, Ph.D.




sh
Sp

ne
Preliminary Second Edition
Fall 2009




la
Copyright © 2009 John M Zelle.
sh




Sp

ne
la

tz

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or




sh
transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise,
Sp




without prior written permission.
ne




la
sh




Sp

ne
This document was typeset by the author with LATEX 2ë.
la




Contents
tz




sh
Sp

ne




1 Computers and Programs 1
la
1.1 The Universal Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
sh




1.2 Program Power ....................................... 2
Sp

ne
1.3 What is Computer Science? ................................ 3
a




1.4 Hardware Basics ...................................... 4
tz
l




sh
Sp




1.5 Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ne




1.6 The Magic of Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
la
sh




Sp
la
Sp

, lOMoAR cPSD| 24448587




ne
sh




ne
la

tz




sh
Sp

ne




la
1.7 Inside a Python Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
sh




Sp
1.8 Chaos and Computers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14




ne
1.9 Chapter Summary ..................................... 16
la

tz
1.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17




sh
Sp


2 Writing Simple Programs 21
ne

2.1 The Software Development Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21




la
2.2 Example Program: Temperature Converter . . . . . . . . . . . . . . . . . . . . . . . . 22
sh




Sp
2.3 Elements of Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24




ne
2.3.1 Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
la

tz

2.3.2 Expressions ..................................... 25




sh
Sp




2.4 Output Statements ..................................... 27
ne



2.5 Assignment Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28




la
2.5.1 Simple Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
sh




Sp
2.5.2 Assigning Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30




ne
2.5.3 Simultaneous Assignment ............................. 32
la

tz




2.6 Definite Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 sh
Sp




2.7 Example Program: Future Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
ne




2.8 Chapter Summary ..................................... 39
la
2.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
sh




Sp

3 Computing with Numbers 45
ne
3.1 Numeric Data Types .................................... 45
a
tz
l




3.2 Using the Math Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
sh
Sp




3.3 Accumulating Results: Factorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
ne




la


i
sh




Sp
la
Sp

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Splashnetz Chamberlain
View profile
Follow You need to be logged in order to follow users or courses
Sold
278
Member since
1 year
Number of followers
11
Documents
1042
Last sold
1 week ago
Spashnetz

I'm, a dedicated medical doctor (MD) with a passion for helping students excel in their exams. With my extensive experience in the medical field, I provide comprehensive support and effective study techniques to ensure academic success. My unique approach combines medical knowledge with practical strategies, making me an invaluable resource for students aiming for top performance. Discover my proven methods and start your journey to academic excellence with me on Stuvia today, Are you striving for academic excellence and top grades? Look no further! At A+ Achiever we provide premium study materials meticulously crafted to help you ace your exams and achieve your academic goals.

Read more Read less
4.7

273 reviews

5
238
4
7
3
10
2
4
1
14

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions