Skip to content

Latest commit

 

History

History

0x01-python-if_else_loops_functions

Python - if/else, loops, functions

Technologies

  • Files written in vi, vim, and emacs editors.
  • C files compiled using gcc 9.4.0.
  • C files wriiten according to the betty coding style. Checked using betty-style.pl and betty-doc.pl.
  • Files tested on Ubuntu 20.04 LTS using gcc.
  • Python3.4 files

Files

Files Description/Question
0-positive_or_negative.py This program will assign a random signed number to the variable number each time it is executed. Complete the source code in order to print whether the number stored in the variable number is positive or negative.
1-last_digit.py This program will assign a random signed number to the variable number each time it is executed. Complete the source code in order to print the last digit of the number stored in the variable number.
2-print_alphabet.py Write a program that prints the ASCII alphabet, in lowercase, not followed by a new line.
3-print_alphabt.py Write a program that prints the ASCII alphabet, in lowercase, not followed by a new line.
4-print_hexa.py Write a program that prints all numbers from 0 to 98 in decimal and in hexadecimal.
5-print_comb2.py Write a program that prints numbers from 0 to 99.
6-print_comb3.py Write a program that prints all possible different combinations of two digits.
7-islower.py Write a function that checks for lowercase character.
8-uppercase.py Write a function that prints a string in uppercase followed by a new line.
9-print_last_digit.py Write a function that prints the last digit of a number.
10-add.py Write a function that adds two integers and returns the result.
11-pow.py Write a function that computes a to the power of b and return the value.
12-fizzbuzz.py Write a function that prints the numbers from 1 to 100 separated by a space.
lists.h C header file prototype
13-insert_number.c Write a function in C that inserts a number into a sorted singly linked list.
100-print_tebahpla.py Write a program that prints the ASCII alphabet, in reverse order, alternating lowercase and uppercase (z in lowercase and Y in uppercase) , not followed by a new line.
101-remove_char_at.py Write a function that creates a copy of the string, removing the character at the position n (not the Python way, the “C array index”).
102-magic_calculation.py Write the Python function def magic_calculation(a, b, c): that does exactly the same as the following Python bytecode.