Skip to content

KKWANH/python-module-00

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python & ML - Module 00

GOAL: This project aims to you to learn basic stuffs about Python with 11 questions.

Instructions

  • 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.

Exercise 00

link ex00
  • The first thing you need to do is install Python.
Required File
answer.txt, requirements.txt

Exercise 01

link ex01
Required File
exec.py

Make a program that takes a string. Reverse and swap it's letter case and print them.

Exercise 02

link ex02
Required File
whois.py

Make a program that takes only a number. Print wheter the number is odd, even, zero, or somethign wrong.

Exercise 03

link ex03
Required File
count.py

Part 1. text_analyzer

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.

Part 2. name == main

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.

Exercise 04

link ex04
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

Exercise 05

link ex05

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|

About

42's subject about Python's basic setup, variables, data types, functions, ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages