Git Product home page Git Product logo

ugbot's Introduction

Python - Hello, World

I started learning and working with the interpreter,I practiced printing text and variables, and indexing and slicing strings in Python.

Function Prototypes ๐Ÿ’พ

Prototypes for functions written in this project:

File Prototype
10-check_cycle.c int check_cycle(listint_t *list);
102-magic_calculation.py def magic_calculation(a, b):

Tasks ๐Ÿ“ƒ

  • 0. Run Python File

    • 0-run: Bash script that runs a Python script file saved in the environment variable $PYFILE.
  • 1. Run inline

    • 1-run_inline: Bash script that runs Python code saved in the environment variable $PYCODE.
  • 2. Hello, print

    • 2-print.py: Python script that prints exactly "Programming is like building a multilingual puzzle, followed by a new line using the function print.
  • 3. Print integer

    • 3-print_number.py: Python script that prints the integer stored in the variable number, followed by Battery street, followed by a new line.
    • Completion of this source code.
  • 4. Print float

  • 5. Print string

    • 5-print_string.py: Python script that prints a string stored in the variable str three times, then a new line, then the first nine characters contained in str, followed by another new line.
    • Completion of this source code.
  • 6. Play with strings

    • 6-concat.py: Python script that prints Welcome to Holberton School! using the variables str1 = "Holberton" and str2 = "School".
    • Completion of this source code.
  • 7. Copy - Cut - Paste

    • 7-edges.py: Python script that sets three string variables based on the string contained in the variable word as follows:
    • word_first_3: Contains the first three letters of the variable word.
    • word_last_2: Contains the last two letters of the variable word.
    • middle_word: Contains the value of the variable word without the first and last letters.
    • Completion of this source code.
  • 8. Create a new sentence

    • 8-concat_edges.py: Python script that prints object-oriented programming with Python, followed by a new line without creating new variables or string literals.
    • Completion of this source code.
  • 9. Easter Egg

    • 9-easter_egg.py: Python script that prints "The Zen of Python" by Tim Peters, followed by a new line.
  • 10. Linked list cycle

  • 11. Hello, write

    • 100-write.py: Python script that prints exactly and that piece of art is useful - Dora Korpar, 2015-10-19, followed by a new line to stderr using the function write from the sys module.
    • Exits with a status code of 1.
  • 12. Compile

    • 101-compile: Python script that compiles a Python script file stored in the environment variable $PYFILE and saves it to an output file $PYFILEc (ex. export PYFILE=my_main.py => output filename: my_main.pyc).
  • 13. ByteCode -> Python #1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.