Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Intermediate Python Assignment 2 Due Date: November 24th by 11:30PM The objective of every assignment is to make sure you practice what we learned throughout the modules to cement your learning. Every...

1 answer below »
Intermediate Python
Assignment 2
Due Date: November 24th by 11:30PM
The objective of every assignment is to make sure you practice what we learned throughout the
modules to cement your learning. Every assignment is based on a real-life scenario to prepare
you for a job in the industry. Assignment 1 covers topics that we will cover in module 3 and
module 4.
A Computer Scientist would like to utilize an OOP program that creates characters for a game.
When the program starts it should prompt the user to enter the character name. After the
character name is input, the program should create (initialize) a character object that features the
name and attack strength. You do not need to program any operations for this object, we simply
need to program the attributes (which are name of the character, and attack strength).
While the user provides the name of the character, the attack strength will be set based on the
number of Python repositories that are cu
ently available (just for fun!). To get the number of
Python repositories that are cu
ently available you must make an API call to the GitHub API
which we learned about in Module 4 and set the total count to be the attack strength of the newly
created character.
Next you must output to the Python console, the attack strength and the name of the character so
that the user can see them!
Lastly, you must implement a unit test to check if the API call is working co
ectly. You can pick
any type of test you like and test anything you like.
Deliverables:
• Commented Python code file (.py)
• Commented Python code test file (separate .py)
• Screenshot of git commit logs (remember you must utilize git throughout the
development process periodically, I recommend committing every 30 minutes).
• All the above-mentioned files must be zipped into one zip file named
studentNumber_studentName_Assignment2 and submitted via D2L.

A H A N D S - O N , P R O J E C T - B A S E D
I N T R O D U C T I O N T O P R O G R A M M I N G
P Y T H O N
C R A S H C O U R S E
P Y T H O N
C R A S H C O U R S E
2 N D E D I T I O N
E R I C M A T T H E S
SHELVE IN:
PROGRAM
M
ING LANGUAGES
PYTHON
$39.95 ($53.95 CDN)
L E A R N P Y T H O N —
F A S T !
C O V E R S P Y T H O N 3 . X
Python Crash Course is the world’s best-selling guide
to the Python programming language. This fast-paced,
thorough introduction to programming with Python will
have you writing programs, solving problems, and
making things that work in no time.
In the first half of the book, you’ll learn basic program-
ming concepts, such as variables, lists, classes, and
loops, and practice writing clean code with exercises
for each topic. You’ll also learn how to make your
programs interactive and test your code safely before
adding it to a project. In the second half, you’ll put
your new knowledge into practice with three substantial
projects: a Space Invaders–inspired arcade game, a
set of data visualizations with Python’s handy li
aries,
and a simple web app you can deploy online.
As you work through the book, you’ll learn how to:
• Use powerful Python li
aries and tools, including
Pygame, Matplotlib, Plotly, and Django
• Make 2D games that respond to keypresses and
mouse clicks, and that increase in difficulty
• Use data to generate interactive visualizations
• Create and customize web apps and deploy them
safely online
• Deal with mistakes and e
ors so you can solve your
own programming problems
This updated second edition has been thoroughly revised
to reflect the latest in Python code and practices. The
first half of the book includes improved coverage of
topics like f-strings, constants, and managing data. In the
second half, the code for the projects has been updated
with better structure, cleaner syntax, and more popular
and up-to-date li
aries and tools, like Plotly and the
latest version of Django. (For a full list of updates, see
the Preface.)
If you’ve been thinking about digging into programming,
Python Crash Course will get you writing real programs
fast. Why wait any longer? Start your engines and code!
A B O U T T H E A U T H O R
Eric Matthes is a high school science, math, and program-
ming teacher living in Alaska. He has been writing
programs since he was five years old and is the author
of the Python Flash Cards, also from No Starch Press.
www.nostarch.com
TH E F I N EST I N G E E K E NTE RTA I N M E NT™
“ I L I E F LAT .”
Th is book uses a durab le b ind ing that won’t snap shutFSC FPO
W O R L D W I D E
B E S T S E L L E R
O V E R 5 0 0 , 0 0 0
C O P I E S S O L D
W O R L D W I D E
B E S T S E L L E R
O V E R 5 0 0 , 0 0 0
C O P I E S S O L D
W O R L D W I D E
B E S T S E L L E R
O V E R 5 0 0 , 0 0 0
C O P I E S S O L D
W O R L D W I D E
B E S T S E L L E R
O V E R 5 0 0 , 0 0 0
C O P I E S S O L D
P
Y
T
H
O
N
C
R
A
S
H
C
O
U
R
S
E
P
Y
T
H
O
N
C
R
A
S
H
C
O
U
R
S
E
M
A
T
T
H
E
S
2 N D E D I T I O N
PRAISE FOR Python Crash Course
“It has been interesting to see No Starch Press producing future
classics that should be alongside the more traditional programming
ooks. Python Crash Course is one of those books.”
—GreG Laden, ScienceBLoGS
“Deals with some rather complex projects and lays them out in a con-
sistent, logical, and pleasant manner that draws the reader into the
subject.”
—FuLL circLe MaGazine
“Well presented with good explanations of the code snippets. The
ook works with you, one small step at a time, building more complex
code, explaining what’s going on all the way.”
—FLickThrouGh reviewS
“Learning Python with Python Crash Course was an extremely positive
experience! A great choice if you’re new to Python.”
—Mikke GoeS codinG
“Does what it says on the tin, and does it really well XXXXXXXXXXPresents a
large number of useful exercises as well as three challenging and
entertaining projects.”
—reaLPyThon.coM
“A fast-paced but comprehensive introduction to programming with
Python, Python Crash Course is another supe
book to add to your
li
ary and help you finally master Python.”
—TuToriaLedGe.neT
“A
illiant option for complete beginners without any coding experi-
ence. If you’re looking for a solid, uncomplicated intro to this very
deep language, I have to recommend this book.”
—whaTPixeL.coM
“Contains literally everything you need to know about Python and
even more.”
—FireBearSTudio.coM
http:
scienceblogs.com/gregladen/2017/02/01/how-to-learn-python-programming
http:
dl.fullcirclemagazine.org/issue109_en.pdf
P y t h o n
C r a s h C o u r s e
2 n d e d i t i o n
a h a n d s - o n , P r o j e c t - B a s e d
i n t r o d u c t i o n t o P r o g r a m m i n g
y Er ic Matthes
San Francisco
Python Crash Course, 2nd edition. Copyright © 2019 by Eric Matthes.
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-10: XXXXXXXXXX
ISBN-13: XXXXXXXXXX
Publisher: William Pollock
Production Editor: Riley Hoffman
Cover Illustration: Josh Ellingson
Cover and Interior Design: Octopod Studios
Developmental Editor: Liz Chadwick
Technical Reviewer: Kenneth Love
Copyeditor: Anne Marie Walke
Compositors: Riley Hoffman and Happenstance Type-O-Rama
Proofreader: James Fraleigh
For information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly:
No Starch Press, Inc.
245 8th Street, San Francisco, CA 94103
phone: XXXXXXXXXX; XXXXXXXXXX
www.nostarch.com
The Li
ary of Congress has catalogued the first edition as follows:
Matthes, Eric, 1972-
Python crash course : a hands-on, project-based introduction to programming / by Eric Matthes.
pages cm
Includes index.
Summary: "A project-based introduction to programming in Python, with exercises. Covers general
programming concepts, Python fundamentals, and problem solving. Includes three projects - how to
create a simple video game, use data visualization techniques to make graphs and charts, and build
an interactive web application"-- Provided by publisher.
ISBN XXXXXXXXXX -- ISBN XXXXXXXXXX
1. Python (Computer program language) I. Title.
QA76.73.P98M38 2015
XXXXXXXXXX'3--dc23
XXXXXXXXXX XXXXXXXXXX
No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other
product and company names mentioned herein may be the trademarks of
Answered Same Day Jul 02, 2021

Solution

Neha answered on Jul 07 2021
161 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here