The details of the assignment can be found on the following link:
python_assignment's Introduction
python_assignment's People
python_assignment's Issues
Positional and Keyworded Args are missed in task 3
You missed to print the Args: in the logs.txt, Please add those.
Print the outputs of the Pascals triangle and Quadratic Equation solver Functions
As per the task "The main.py file contains at least 2 functions containing lambda expressions within, quadratic equation solver function and pascal triangle printer function (as in lab) for testing of your implementations."
It should print the output so that you will be able to see it in the logs.txt.
AttributeError: 'NoneType' object has no attribute
You did not take into consideration that you can decorate a function that doesn't have any doc so when you use " func.doc " Attribute Error error will happen in this situation .
you should check if there is a doc or not like that :
if self.fun.doc:
file_object.write(f"DOC:{self.fun.doc} \nSource : {inspect.getsource(self.fun)}\n output : {a}")
else:
no_doc = "There is no doc"
file_object.write(f"DOC:{no_doc} \nSource : {inspect.getsource(self.fun)}\n output : {a}")
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.