feat(hello_python): add new exercise subject for scripting piscine

This commit is contained in:
Michele Sessa 2023-01-23 15:54:38 +00:00 committed by Michele
parent 01eaea466d
commit 1984891870
3 changed files with 2 additions and 12 deletions

View File

@ -1,8 +0,0 @@
import sys
sys.path.append('/jail/app/student')
from hello_python import say_hello_python
def test_say_hello_python():
assert say_hello_python() == "Hello Python!"

View File

@ -1,2 +0,0 @@
def say_hello_python():
return "Hello Python!"

View File

@ -50,10 +50,10 @@ $
- Python uses indentation to indicate in which block your code will run (many other languages uses parenthesis instead). It is then very important to indent your code properly.
- `return` is a special world used to say which value a function should return (a function could also not return anything).
For example `return 10` will return the number ten.
For example `return 10` will return the number ten.
- A string is a set of characters wrapped by `"`.
For example `"Ciao bella"` is a string containing the worlds `Ciao Bella`.
For example `"Ciao bella"` is a string containing the worlds `Ciao Bella`.
- In `test.py` we are calling another function named `print`. This function is already present in Python standard library so we don't have to create it. This function at its core is made to write strings in the standard output.