Comments (3)
This is something common in the book,
e.g. 2.11 percentage=(minute100)/60 #minute is not defined
2.13 interest = principle rate, etc
These are examples that show something specific and cannot be treated as a whole program
from py4e.
Hi Krishnakumar,
This example is given as an illustration of how math module can be applied in terms of ratios hence no specific values have been declared. Hope it helps.
from py4e.
Yes. I understand that. However, it is noteworthy that out of all code blocks presented all the way from the very first chapter until now, only this one errors out (because the variables have not been defined).
This is likely to cause confusion to beginners (whom the course targets). It would be better to update the lesson wherein the variables are defined in the codeblock just prior to the SNR division statement, thereby providing a frictionless experience for those trying it out on their interactive python REPLs.
from py4e.
Related Issues (20)
- SQLite DB graded assignment seems broken HOT 1
- In Strings chapter, line 99 is a bug, "banana" should be "fruit" and index should be 5.. HOT 6
- "Using Python on Replit": "Writing Your First Program on Replit" missing some details HOT 1
- Chapter 8/exercise 4:sort and print the list of unique words in alphabetical order HOT 3
- there is no Autograder: Exercise 3.2 HOT 1
- Small typo issue in quiz of chapter 10 HOT 1
- login problem HOT 1
- PY4E.COM LOGOUT ISSUE
- Material Of Python by University Of Michgan HOT 1
- Material of python by UNI of Michgan HOT 1
- Chrome browser issue unsafe http:// URLs HOT 1
- week 6-assignment 4.6 HOT 2
- Chapter 6 error HOT 1
- Chapter selector at the end of the chapter HOT 1
- Weird note formatting talking about Python 2 HOT 3
- 💡 idea: list funciton is not necessary In 10.5 (page 124) HOT 1
- 'format sequence' should be ommited from the glossary of the 6th chapter HOT 1
- Summary of py4e is incorrect HOT 2
- Line 18 in py4e/code3/twtest.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py4e.