mymllearner commited on
Commit
3c73d42
·
verified ·
1 Parent(s): 438a91d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,13 +18,13 @@ def add_if_possible_else_concat(arg1:str, arg2:int)-> str: #it's import to speci
18
  arg2: the second argument
19
  """
20
  def check_int(s):
21
- if s[0] in ('-', '+'):
22
- return s[1:].isdigit()
23
- return s.isdigit()
24
  final_var = ""
25
  if check_int(arg1) == True and check_int(arg2) == True:
26
  final_var = str(arg1+arg2)
27
- else
28
  final_var = str(arg1)+str(arg2)
29
  return final_var
30
 
 
18
  arg2: the second argument
19
  """
20
  def check_int(s):
21
+ if s[0] in ('-', '+'):
22
+ return s[1:].isdigit()
23
+ return s.isdigit()
24
  final_var = ""
25
  if check_int(arg1) == True and check_int(arg2) == True:
26
  final_var = str(arg1+arg2)
27
+ else:
28
  final_var = str(arg1)+str(arg2)
29
  return final_var
30