This course will teach you how to: a There are many built-in functions that you can use to your advantage a Be better Python developer. Additionally, you will learn best practices and how to do unit testing.
File size: 1.07GB
Skillshare – Advanced Python Skills Become a Better Python Developer
Description of the project
The class project will be a You will be required to perform a series of exercises that use the information you have learned in this course. Avoid using for loops.
- Write a Function that adds two numbers as in school. You should add digits from left to right and carry 1 if the sum is greater or equal to 10. HINT: you should use the zip_longest function and the modulo operator (%).
- You may have used this method in school without realizing that it works for all numbers in any base. To sum two numbers in any particular base, refactor the function. HINT: your function should now receive the base as an argument. If 10 is the base number, your function should sum as in the first paragraph. You will be able sum binary numbers if you score 2!
- Remember that we mentioned in TDD that first we should write a Failure test, then write code. We will break this rule. a moment. Implement some tests with pytest in order to show that your function works perfectly. Write tests for various number bases.
The second exercise relates to generators. This course will teach you how to make them. Let’s now make two generators.
- Implement a Generator that returns the Fibonnaci numbers. Make use of the fact that the generator remembers your local state on any subsequent calls. This Wikipedia article explains the definition of Fibonacci numbers. Fibonacci Numbers
- Make a Generator that generates prime numbers. This article explains what prime numbers are. Prime numbers
- Instead of returning the number you want, return also the time taken to produce the next prime number. Keep the times and numbers in such a There are many ways that you can make it happen. a Simple scatter plot: You will place the prime numbers in the box x.-The time in the y and the axis-axis. This article will show you how to do it with Matplotlib or Numpy. Scatterplots
Continue reading Here!
Register Skillshare – Advanced Python Skills Become a Better Python Developer AMZLibrary.com – Download Now!
Course Features
- Lectures 0
- Quizzes 0
- Duration Lifetime access
- Skill level All levels
- Students 0
- Assessments Yes