Vihang28 commited on
Commit
a9ba65c
·
1 Parent(s): 91ff767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -5
app.py CHANGED
@@ -69,12 +69,25 @@ def create_new(num_str1,num_str2):
69
 
70
  def create_tbl(tbl1,tbl2):
71
  list_of_tbl = []
72
- for i in range(tbl1,tbl2+1):
73
- table_lst = []
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  for j in range(1,11):
75
- table_lst.append(j*i)
76
- list_of_tbl.append(table_lst)
77
- return(list_of_tbl)
78
 
79
  def find_exp(base1,exp1):
80
  if exp1 < 0 :
 
69
 
70
  def create_tbl(tbl1,tbl2):
71
  list_of_tbl = []
72
+ if tbl1<tbl2:
73
+ for i in range(tbl1,tbl2+1):
74
+ table_lst = []
75
+ for j in range(1,11):
76
+ table_lst.append(j*i)
77
+ list_of_tbl.append(table_lst)
78
+ return(list_of_tbl)
79
+ elif tbl2<tbl1:
80
+ for i in range(tbl2,tbl1):
81
+ table_lst = []
82
+ for j in range(1,11):
83
+ table_lst.append(j*i)
84
+ list_of_tbl.append(table_lst)
85
+ return(list_of_tbl)
86
+ else:
87
  for j in range(1,11):
88
+ list_of_tbl.append(tbl2*i)
89
+ return(list_of_tbl)
90
+
91
 
92
  def find_exp(base1,exp1):
93
  if exp1 < 0 :