<jupyter_start><jupyter_text>variable with typevariable = 20print(type(variable))variable1 = 30print(type(variable1))print(variable + variable1)  concatenationstr1 = 'hello'str2 = "Python"print(str1 +" "+ str2)  Find lengthstr1 = 'hello, this is python 3. welcome to my world'print(len(str1))  print a char from a string while it is 0 based indexingstr1 = 'hello, beginer. Take it easy'print(str1[10])<jupyter_code>#print a substring from a string 
str1 = 'hello, this is python3. Take it easy baby'
print(str1[:5])
print(str1[7:])
print(str1[24:41])

#repeat string
str1 = '*'
print(str1 * 10)
print(str1 * 9)
print(str1 * 8)
print(str1 * 7)
print(str1 * 6)
print(str1 * 5)
print(str1 * 4)
print(str1 * 3)
print(str1 * 2)
print(str1 * 1)
#split a string regarding space/comma/dot
str1 = 'China is the country, with proper plan for the fure. Chino-Bangladesh, relation is developing through friendly exchange.'
print('split with space')
print(str1.split(' '))
print('Split with comma')
print(str1.split(','))
print('split with dot')
print(str1.split('.'))
#count strings
str1 = "hello guys, this is python. Isn't it cool?"
print("str1.count(''):", str1.count('') )
#Replace string
str1 = 'Hi friends, it is python 3'
print(str1.replace('Hi friends', 'python 3 at ur service'))
#finding sub Strings
str1 = 'hey folks, it is ur boss here'
print(str1.find('folks')) #return the index of the string
#Converting types of variable
var1 = 23
str1 = "I am "
print(str1 + str(var1))
#comparing String
str1 = 'Tauhid'
str2 = 'tauhid'
print(str1 == str2)
print(str1 != str2)
#string formatting
format_string = 'Hello {}!'
print(format_string.format('Kids'))
#sophisticated formatting
name = input()
age = input()
print("{} is {} years old".format(name, age))
str1 = 'hey boss'
print('{:<25}'.format(str1))
print('{:>25}'.format("Let's do allignment"))
print('{:>30}'.format("Let's do allignment"))
print('{:^25}'.format("Let's do center allignment"))
print(str1.startswith('H'))
print(str1.endswith('oss'))
print(str1.isupper())
print(str1.islower())
#Print number with thousand separator
var1 = 1234567890
print('{:,}'.format(var1))
#the input function always return a string so if we want to reuse it we need to convert it
input1 = input()
print(type(input1))
print(int(input1)+ 20)
var1 = 5.00
print(type(var1))
print(int(var1))
input1 = float(input())
print(type(input1))
v1 = 1j
v2 = 2j
v3 = v1+v2
print(type(v1))
print(complex(100))
winner = None
print(winner is None)
print(99//5)#the floor division // rounds the result down to the nearest whole number
print(10**2)
#Python Bitwise Operators to be covered
X = 20
print (X)
X,y =(25,30)
print(X)
print(y)
str1 = 'hello guys'
print(str1.count(str1))
print('I\'m fine')
x = (3, 5, 20, 'Hello')
x
x=1
print(type(x))
x1=1000000000000000000000000000000000000000000000000000000000000000000000000001
print(type(x1))
x =2+5+\
5
x<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16051087331722472, 'fraction_numerical': 0.07870210562651019, 'mean_word_length': 6.08557457212714, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '651288', 'license': 'MIT', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1054, 'n_words': 314, 'path': 'Day_2.ipynb', 'repo_name': 'TauhidScu/Python-Beginer-Codehub', 'size': '2897'}