<jupyter_start><jupyter_text><jupyter_code>#method 1 without using arithmetic operations
def add(a,b):
  if a!=b:
    return(a*a-b*b)/(a-b)
  else:
    return 2*a 
def main():
  a=int(input("Enter 1st no:"))
  b=int(input("Enter 2nd no:"))
  print("sum is:",int(add(a,b)))
main()  
#method 2 without using arithmetic operations
def add(a,b):
  while(b!=0):
    carry=a&b
    a=a^b
    b=b<<1
  return a 
def main():
  a=int(input("Enter 1st no:"))
  b=int(input("Enter 2nd no:"))
  print("sum is:",int(add(a,b)))
main()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20036429872495445, 'fraction_numerical': 0.01639344262295082, 'mean_word_length': 4.670103092783505, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '370210', 'license': 'MIT', 'n_tokens_mistral': 247, 'n_tokens_neox': 235, 'n_words': 50, 'path': 'Arithmetic_Operation.ipynb', 'repo_name': 'Abhishekauti21/dsmp-pre-work', 'size': '549'}