GOAL: This project aims to you to learn basic stuffs about Python with 11 questions.
- Version
- Recommended python version is 3.7.
- You can check the version of python with
python -V command.
- Norm that no one likes
- Ok. here, you can see that the NORM that made all of us painful before is back.
- It is recommended to follow the
PEP 8 standards.
- Check is your code with
pycodestyle.
- function
eval is never allowed.
- The exercies are ordered from the easiest to the hardest, please keep the order.
- Best manual or the colleague is Google(or chatGPT, whatever
<; ).
- You can ask questions in 42AI/42born2code's
#bootcamps channel.
- Any mistakes or issues? Please report 'em in 42AI's Github Channel Issue.
- The project encourage you to create test programs just like old-push-swap. This means you will not be graded with the test program exists or not.
The first thing you need to do is install Python.
| Required File |
answer.txt, requirements.txt |
Make a program that takes a string.
Reverse and swap it's letter case and print them.
Make a program that takes only a number.
Print wheter the number is odd, even, zero, or somethign wrong.
You must make a function text_analyzer that will takes a single string.
This will print some informations about sums of upper-case charaters, lower-case characters, punctuation characters and spaces.
In the previous part, you wrote a function that can be used in console/or another file. Without changing this behavior, update your file so it can also be launched as a standalone program.
| Required File |
operations.py |
Write a program that takes two integers A and B as arguments and prints the result of the following operation:
Sum: A+B
Difference: A-B
Product: A*B
Quotient: A/B
Remainder: A%B
Let’s get familiar with the useful concept of string formatting through a kata series
|keta00.py|
|keta01.py|
|keta02.py|
|keta03.py|
|keta04.py|