Skip to content

Files

Latest commit

5ed359f · Jan 5, 2023

History

History

0x00-python-hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Jan 5, 2023
Nov 28, 2022
Nov 28, 2022
Jan 5, 2023

img

Introduction to programming in python

meme

Author's Disclaimer

Welcome to the Python world!

The first projects are more "C-oriented" - no tricks, no funky syntax - simple!
If you've already played with Python, don't worry, fun things will come.
You'll soon find that with Python (and the majority of higher level languages), there are ten different ways to do the same thing. Some tasks will expect only one implementation, while other tasks will have multiple possible implementations.
Like C, Python also has a linter / style guide like Betty, called PEP8, also now known as PyCode.

Enjoy!

- Guillaume

Intro

In this module, we will explore the basics of programming in python.

Resources

  1. The python Tutorial
  2. Whetting your appetite
  3. Using the python interpreter
  4. An informal introduction to python
  5. String formatting
  6. Youtube
  7. PEP - python coding convention
  8. Pycodestyle

Learning objectives

By the end of this session, you should be able to explain to anyone without the help of Google the following.

  • Why Python programming is awesome
  • Who created Python
  • Who is Guido van Rossum
  • Where does the name ‘Python’ come from
  • What is the Zen of Python
  • How to use the Python interpreter
  • How to print text and variables using print
  • How to use strings
  • What are indexing and slicing in Python
  • What is the official Python coding style and how to check your code with pycodestyle

Script Requirements

  • Allowed editors: vi, vim, emacs
  • All your files will be interpreted/compiled on Ubuntu 20.04 LTS using python3 (version 3.8.5)
  • All your files should end with a new line
  • The first line of all your files should be exactly #!/usr/bin/python3
  • Your code should use the pycodestyle (version 2.8.*)
  • All your files must be executable

Quizes

Quiz

next