Skip to content

Latest commit

 

History

History

0x00-python-hello_world

Project Name

0x00. Python - Hello, World

Author's Details

Name: Wendy Munyasi.

Email: wendymunyasi@gmail.com

Tel: +254707240068.

Requirements

Python Scripts

  • Allowed editors: vi, vim, emacs.
  • All your files will be interpreted/compiled on Ubuntu 20.04 LTS using gcc, using python3 (version 3.8.5).
  • All your files should end with a new line.
  • The main.py files are used to test your functions, but you don’t have to push them to your repo.
  • 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.
  • The length of your files will be tested using wc.

Shell Scripts

  • Allowed editors: vi, vim, emacs.
  • All your scripts will be tested on Ubuntu 20.04 LTS.
  • All your scripts should be exactly two lines long (wc -l file should print 2).
  • All your files should end with a new line.
  • The first line of all your files should be exactly #!/bin/bash.
  • All your files must be executable.

C Scripts

  • Allowed editors: vi, vim, emacs.
  • All your files will be compiled on Ubuntu 20.04 LTS using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89 .
  • Your code should use the Betty style. It will be checked using betty-style.pl and betty-doc.pl .
  • You are not allowed to use global variables.
  • No more than 5 functions per file.
  • In the following examples, the main.c files are shown as examples. You can use them to test your functions and you don't have to push to your repo.
  • The prototypes of all your functions and the prototype of the function _putchar should be included in your header file called lists.h.
  • All your header files should be include guarded.

Project Description

Learn about 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.

  • 0. Run Python file - Write a Shell script that runs a Python script. - 0-run.
  • 1. Run inline - Write a Shell script that runs Python code. - 1-run_inline.
  • 2. Hello, print - Write a Python script that prints exactly "Programming is like building a multilingual puzzle, followed by a new line. - 2-print.py.
  • 3. Print integer - Complete this source code in order to print the integer stored in the variable number, followed by Battery street, followed by a new line. - 3-print_number.py.
  • 4. Print float - Complete this source code in order to print the float stored in the variable number with a precision of 2 digits. - 4-print_float.py.
  • 5. Print string - Complete this source code in order to print 3 times a string stored in the variable str, followed by its first 9 characters. - 5-print_string.py.
  • 6. Play with strings - Complete this source code to print Welcome to Holberton School!. - 6-concat.py.
  • 7. Copy - Cut - Paste - Complete this source code. - 7-edges.py.
  • 8. Create a new sentence - Complete this source code to print object-oriented programming with Python, followed by a new line. - 8-concat_edges.py.
  • 9. Easter Egg - Write a Python script that prints “The Zen of Python”, by TimPeters, followed by a new line. Your script should be maximum 98 characters long (please check with wc -m 9-easter_egg.py). - 9-easter_egg.py.
  • 10. Linked list cycle - Write a function in C that checks if a singly linked list has a cycle in it. - 10-check_cycle.c, lists.h.
  • 11. Hello, write - Write a Python script that prints exactly and that piece of art is useful - Dora Korpar, 2015-10-19, followed by a new line. - 100-write.py
  • 12. Compile - Write a script that compiles a Python script file. - 101-compile.
  • 13. ByteCode -> Python #1 - Write the Python function def magic_calculation(a, b): that does exactly the same as the given Python bytecode. - 102-magic_calculation.py.

Collaborate

To collaborate, reach me through my email address wendymunyasi@gmail.com.