zotroneneis / magical_universe Goto Github PK
View Code? Open in Web Editor NEWAwesome Python features explained using the world of magic
Home Page: http://alpopkes.com/year-archive/
Awesome Python features explained using the world of magic
Home Page: http://alpopkes.com/year-archive/
magical_universe/code_per_day/day_8.py
Line 92 in d275570
It should read
return cls('The Mocking Knight', 1401, 'male', 1492, 'House of Courage')
I believe, since the Ghost
class is expecting an Int year_of_death
.
flake8 testing of https://github.com/zotroneneis/harry_potter_universe on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./code_per_day/day_16_to_18.py:50:16: F821 undefined name 'now'
return now - self.birthyear
^
./code_per_day/day_16_to_18.py:106:16: F821 undefined name 'now'
return now - self.birthyear
^
./code_per_day/day_8.py:47:70: F821 undefined name 'tr'
def __init__(self, name: str, birthyear: int, sex: str, subject: tr, house: str = None):
^
3 F821 undefined name 'now'
3
hi, can you save a copy of blog in this repo? i can't access the website.
Hey!
In the blog post of Day 2 you give examples for static methods, however the dictionary used in the passed method contains the duplicate key "P":
grades = {
'O': True,
'Ordinary': True,
'P': True,
'Passed': True,
'A': True,
'Acceptable': True,
'P': False,
'Poor': False,
'H': False,
'Horrible': False,
}
Don't think it's utterly important as the method does not show up in the code for the day. In addition to that the second occurence should overwrite the first so it still returns a value when calling the method.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.