-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
44 lines (41 loc) · 777 Bytes
/
Copy pathfunctions.py
File metadata and controls
44 lines (41 loc) · 777 Bytes
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
#functions
def love(B,G):
return B + " " + "love"+" " + G
full =love("I","Sakshi")
print(full)
def calc(x, y):
z = x + y
a = z - y
b = a * z
c = b / a
return z , a, b, c
z, a, b, c= calc(50, 40) #unpacked result
print(z)
print(a)
print(b)
print(c)
#diff variant packed result (tuple)
#def calc(x, y):
#z = x + y
# a = z - y
#b = a * z
#c = b / a
#return z , a, b, c
#result= calc(50, 40)
#print(result)
#import time
#def count(start, end=0):
# for i in range(start,end,-1):
# print(i)
# time.sleep(1)
# print("Done!")
#count(10,0)
import time
def count(start=1,end=10):
for i in range(start,end+1):
print(i)
time.sleep(1)
print("Done!")
#start = int(input("Enter starting time in seconds:"))
end = int(input("Enter stop time in seconds:"))
count(end=end)