Skip to content

Commit df00456

Browse files
AdministratorAdministrator
Administrator
authored and
Administrator
committed
more demo functions
1 parent 7c3c919 commit df00456

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/python/demo_functions.py=utf-8

src/main/python/demo_functions.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
#!/usr/bin/env python3
2+
# coding=utf-8
23

34
'''
45
'''
56

7+
import sys
8+
69
def say_hello(greeting="Awright", recipiet="everyone"):
710
message = greeting + " " + recipiet
8-
print(message)
11+
print(message, sep=" ", end="\n", file=sys.stdout)
912

1013

1114
def main():
1215
say_hello("Hello", "Sweden")
13-
say_hello("Good morning", "Unitied Kingdom")
16+
say_hello(greeting="Good morning", recipiet="Unitied Kingdom")
17+
say_hello(recipiet="kompis", greeting="Läget")
18+
say_hello("Good evning", recipiet="Stockholm")
1419
say_hello("Hi")
1520
say_hello()
1621

0 commit comments

Comments
 (0)