-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcall functions.py
More file actions
81 lines (73 loc) · 1.87 KB
/
call functions.py
File metadata and controls
81 lines (73 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: User
#
# Created: 29/03/2019
# Copyright: (c) User 2019
# Licence: <your licence>
#-------------------------------------------------------------------------------
print(''' Create FUNCTIONS -
Create FUNCTIONS -
#define the function by def ....:
def say_hi():
#tell the function what to do
print("Hello User")
#call the functio to do
say_hi()
''')
#define the function by def ....:
def say_hi():
#tell the function what to do
print("Hello User")
#call the functio to do
say_hi()
print('''
print(" Start")
say_hi()
print(" The End")
''')
print(" Start")
say_hi()
print(" The End")
print('''
#We can give parameters or information to functions
#define the function by def ....:
def say_hi(name):
#tell the function what to do
print("Hello ", name)
#call the functio to do
say_hi("mike")
say_hi("DON")
''')
#We can give parameters or information to functions
#define the function by def ....:
def say_hi(name):
#tell the function what to do
print("Hello ", name)
#call the functio to do
say_hi("mike")
say_hi("DON")
print('''
#We can give parameters or information to functions
#define the function by def ....:
def say_hi(name, age):
#tell the function what to do
print("Hello ", name, "you are" , str(age))
#str() is to convert int or float to str#
#call the functio to do#
say_hi("mike", "33")
say_hi("DON", 55.5)
''')
#We can give parameters or information to functions
#define the function by def ....:
def say_hi(name, age):
#tell the function what to do
print("Hello ", name, "you are" , str(age))
#str() is to convert int or float to str#
#call the functio to do#
say_hi("mike", "33")
say_hi("DON", 55.5)
print('''
''')