This folder contains a basic introduction of the python programming language.
Note: When doing this project, After using text editor of your choice to create and access the file on insert mode.Ensure the first line of all your files should be exactly #!/bin/bash
, then the second line is having the correct command/answer.
(From your terminal, convert the file created to SCRIPT
i.e: chmod u+x filename Else the last checker on task 0 and task 1 won't check
)
- 0-run : a Shell script that runs a Python script.
- 1-run_inline : a Shell script that runs Python code.
- 2-print.py : a Python script that prints exactly "Programming is like building a multilingual puzzle, followed by a new line.
- 3-print_number.py : a program that prints the integer stored in the variable
number
, followed by Battery street, followed by a new line. - 4-print_float.py : print the float stored in the variable
number
with a precision of 2 digits. - 5-print_string.py : print 3 times a string stored in the variable str, followed by its first 9 characters.
- 6-concat.py : print
Welcome to Holberton School!
- 7-edges.py : print excluded characters of a given string.
- 8-concat_edges.py : print object-oriented programming with Python, followed by a new line.
- 9-easter_egg.py : a Python script that prints “The Zen of Python”, by TimPeters, followed by a new line.
- 10-check_cycle.c : AN INTERVIEW QUESTION - a function in C that checks if a singly linked list has a cycle in it.
- 100-write.py : a Python script that prints exactly
and that piece of art is useful - Dora Korpar, 2015-10-19,
followed by a new line. - 101-compile : a script that compiles a Python script file.
- 102-magic_calculation.py : Python function
def magic_calculation(a, b):
that does exactly the same as the given Python bytecode - lists.h : contains the header file used in 10-check_cycle.c