<jupyter_start><jupyter_text>numbers<jupyter_code>a=20

b = 10
a+b
type(a)
c= 75.6
d=98.5

c+d
type(c+d)
type(a-c)<jupyter_output><empty_output><jupyter_text>arithmetic operations<jupyter_code>a=45
b=18
a+b
a-b
a*b<jupyter_output><empty_output><jupyter_text>a/b<jupyter_code>a//b
b//a
abs(-10)<jupyter_output><empty_output><jupyter_text>strings<jupyter_code>some_string="tarun"<jupyter_output><empty_output><jupyter_text>write a program of string slicing and dicing<jupyter_code>tarun="the quick brown fox jumps over the lazy dog"
tarun[5:40:3]
tarun[5:-4:3]
tarun[4:-4:3]
s=40
s=s+"tarun"
s.bit_length
s.conjugate
s.denominator
s.from_bytes
s.imag
s.real
s.to_bytes
help(s.from_bytes)
s.denominator(s))
s.count

t=dfgdhd
t="jgdkdrjgsj"
t.encode()
t.decode

t.capitalize<jupyter_output><empty_output><jupyter_text>list creating list indexing and slicing of the list basic list methods nesting of list<jupyter_code>my_list=[1,2,3,4,5,6,7]
len(my_list)<jupyter_output><empty_output><jupyter_text>slicing and dicing my_tarun=[1,"tarun",45,[1,2,3],[4,5,6],"banned"]<jupyter_code>my_tarun[-2]
my_tarun[1:-2:2]
my_list=["one","two","three","four"]
my_list    +["tarun"]# addition of values 
my_list *2
my_list    d["tarun"]
del(my_list)
my_list
my_list=[45,18]
my_list
my_list.pop[18]
my_list.pop(1)
my_list  +[2]
my_list.append(1)
my_list.clear()
my_list
my_list=[1,2,3,4,5,6,7,8,9]
my_list.insert(1,'v')
my_list
my_list.remove('v')
my_list
my_list.reverse()
my_list
my_tarun=["tarun","kumar","bodapati"]
my_tarun.sort()
my_tarun()<jupyter_output><empty_output><jupyter_text>dictionaries<jupyter_code>tarun={"key1":"value1","key2":"value3"}
tarun['key1']
tarun={"key1":"value1",'key2':{"key4":"value3"}}
tarun['key2']['key4']
tarun.get('key4')
tarun.pop("key2")
tarun
tarun[0:-1]
keys={'<KEY>'}
value={'fcs'}
hhfkj=dict.fronkeys(keys,value)<jupyter_output><empty_output><jupyter_text>tuples<jupyter_code>tup=(1,2,3,4,5,6,7,8)
tup.count(1)
tup.count(20)
tup.count(5)
tup.index(5)<jupyter_output><empty_output><jupyter_text>set and booleans<jupyter_code>x=set()
x.add{1}
x.add(1)
x
x.add(45)
x
x.clear()
x={1, 45}
x.clear(1)
x.copy
x.copy(45)
x.intersection
x.intersection(23)
x.issubset({1,2,3,4})
x.issubset({35,36,37})
x.isdisjoint({1,2,3,4})
x.differenceupdate({12,34})
x.union({4,5})
x.update({1,2})
x
x.update
x.true
True
tarun
kumar<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1934801016088061, 'fraction_numerical': 0.0554614733276884, 'mean_word_length': 9.889400921658986, 'pattern_counts': {'":': 4, '<': 42, '<?xml version=': 0, '>': 42, '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': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '218343', 'license': 'MIT', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1163, 'n_words': 144, 'path': 'basic data types.ipynb', 'repo_name': 'tarunbodapati/ro45.tarun2019', 'size': '2370'}