<jupyter_start><jupyter_text>**18.05.21 : 1.30 p.m**<jupyter_code>s="butter"
s[-1:-7:-1]
a = 10
b = 15
c = a+b
print(c)
a=input("Enter your first number : ")
b=input("Enter your second number : ")
a_i=int(a)
b_i=int(b)
c_i=a_i+b_i
print("Result = ",c_i)


a=input("Enter the first number : ")
b=input("Enter the second number : ")
a=float(a)
b=float(b)
c=a+b

a=input("Enter your first number : ")
b=input("Enter your second number : ")
a_i=int(a)
b_i=int(b)
c_i=a_i+b_i
print("Result = ",c_i)
a=input("Enter the first number : ")
b=input("Enter the first number : ")
a=float(a)
b=float(b)
c=a+b
print("Result = ",c)
print(f'Result = {c}')
x=int(input('first number : '))
y=int(input('second number : '))
print(f'First numberis {x} and the second number is {y}')
def add(x,y):
  c=x+y
  return c
z=add(x=4,y=5)
print("Result = ",z)
def number_checking(num):
  if num>0:
    return num
  else:
    return 0
n=number_checking(5)
print(n)
def checking(num):
  if num%2==0:
    print(f'the number is even {num}')
  else:
    print(f'the number is odd {num}')
n=checking(9)
def factorail(num):
  if num==0:
    printf("The factorial is : 1")
  else:
    factorial=factorial*num
o=input("Enter the operation : ")
if o=='Addition':
  x=float(input("Enter the first number : "))
  b=float(input("Enter the second number : "))
  c=x+b
  print("Result : ",c)
elif o=="Substraction" :
  print("abc")<jupyter_output>Enter the operationAddition
Enter the first number : 5
Enter the second numner : 6
Result :  11.0<jupyter_text>**19.05.21 : 10.30 a.m**<jupyter_code>print('''
         Addition = A
         Substraction = S
         Multiplication = M
         Division = D
''')
o=input("Enter the operation : ")
x=float(input("Enter the first number : "))
y=float(input("Enter the second number : "))
if o=="A":
  c=x+y
elif o=="S":
  c=x-y
elif o=="M":
  c=x*y
elif o=="D":
  c=x/y
print("Result : ",c)

l1=1
l2=2
l3=3
l4=4
l=[]
l=[1,2,3,4]
l
l2=[1,2,3,4,'abc']
l2
l2[1:3]
l2[-1:-4:-1]
for i in l2:
  print(i)
l2[4]='a'
l2
l2.append(7)
l2
o=['a','b']
o.append(2)
o
o[1]
o.index('b')
for i in range(1,6):
  print(i)
  if i==4:
    break
print('Loop Over')
data='abcd,mn'
for i in data:
  if i==',':
    continue
  print(i)
d=[4,6,-75,-5,8]
pos=[]
neg=[]
for i in d:
  if i>0:
    pos.append(i)
  else:
    neg.append(i)
print("positive list")
print(pos)
print("negative list")
print(neg)
j=[]
for i in range(1,6):
  i =input("Enter the numeber : ")
  j.append(i)
j
x=[1,2,3,4,[5,6,7]]
x[4]
x[4][1]
y=[1,2,3,4,[5,6,[7,8,9]]]
y[4]
y[4][2][0]
l4=[1,2,3,4,[5,6,7,['abc','def',['efg','ijk',[1,2]]]]]
l4[4][3][2][2][1]
list=[1,2,3,4]
for i in range(1,6):
        print(list)

l1=[1,2,3,4]
l2=[5,6,7,8]
l3=l1+l2
l3
l1*2
l1[0]*2
list=['abc','def',',',':']
noise=",:"
for i in list:
  print("Iterator = ",i)
  k=noise.find(i)
  if k!=-1:
    print(f"{i} = is Noise and Index value is = {k}")
t=(1,2,3,5)
type(t)
t[1]
t1=(1,2,3,4)
t2=(5,6,7,8)
t3=t1+t2
t3
t[1:5]
t1[1]+t2[2]
d={'key1':1,'key2':2}
d
type(d)
d['key1']
c={'A':1,'B':2,'C':3,'D':4}
type(c)
c['D']
l=[1,2,3,[4,5,6]]
l[3].insert(2,0)
l
l=[1,2,3,[4,[5,6]]]
l[3][1].insert(1,0)
l
l=[1,2,3,4]
l.insert(1,1.5)
l
lout=[1,1.5,2,3,4]
l2=[1,2.5,[2,3,4]]
l3=[1,1.5,[2,2.5,[3,4]]]
l3[2][2].insert(1,156)
l3
x=[1,2,3,4,5,6]
x.pop(2)
x=['"a',"b","c"]
print("".join(x))
y=['1','2','3']
for i in range(1,len(y)):
  #print(y[:i:+1])
  print("".join(y[:i:+1]))
s={1,2,3,4}
x=[4,9,16,25]
import math
r=math.sqrt(4)
print(r)
import datetime
'c=datetime.datetime.now()
print(c)
import re
pattern = 'abc'
data = 'abcdefgh'<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.25651078129375526, 'fraction_numerical': 0.07448893867264071, 'mean_word_length': 4.789303079416531, 'pattern_counts': {'":': 4, '<': 8, '<?xml version=': 0, '>': 10, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '577967', 'license': 'MIT', 'n_tokens_mistral': 1870, 'n_tokens_neox': 1827, 'n_words': 358, 'path': 'BCT_PYTHON_py.ipynb', 'repo_name': 'ArkaMaitra/dotfiles', 'size': '3571'}