<jupyter_start><jupyter_text>Combining or Concatenating String<jupyter_code>first_name = "Haseeb"
second_name = "Aslam"
full_name = first_name + " " +second_name
print(full_name)
full_name
first_name + second_name<jupyter_output><empty_output><jupyter_text>DocString<jupyter_code>name = '''<NAME>''' 
print(name)
name
details = """
Name :-  <NAME> 
Father_name :- <NAME>
Uiversity :- Bahria University
"""
print(details)
details
#ID Card For Univeristy
details = """
Bahria University Karachi Campus
Name :-  <NAME> 
Father_name :- <NAME>
En_Roll :- 02-123456-078
Program :- BCE Batch :- Spring2018
"""
print(details)
#ID Card For Univeristy
#it's help when you don't want to change the doc string format..
name = "<NAME>"
fname = "<NAME>"
en_roll = "02-123456-078"
program = "BCE"
batch = "Spring2018"

details = f"""
Bahria University Karachi Campus
Name :-  {name} 
Father_name :- {fname}
En_Roll :- {en_roll}
Program :- {program} Batch :- {batch}
"""
print(details)<jupyter_output>Bahria University Karachi Campus
Name :-  <NAME> 
Father_name :- <NAME>
En_Roll :- 02-123456-078
Program :- BCE Batch :- Spring2018<jupyter_text>Changing cases<jupyter_code>name
name.upper() #shallow copy
name.title() #shallow copy
name.lower() #shallow copy
name #orignal data remain same...<jupyter_output><empty_output><jupyter_text>Avioding Extra Spaces<jupyter_code>name = "Haseeb         "
print(name) #avoid space if at last
name #return orignal data with space
name.rstrip()#return orignal data without space<jupyter_output><empty_output><jupyter_text>IS keyword<jupyter_code># How "is" keyword return TRUE if value's are same...
num1 = 5
num2 = 5
num1 is num2
# Reason of "is" to return True if value's are same...
# if the value is same then the id of variable's in which value store will also same...
print(id(num1))
print(id(num2))<jupyter_output>140724349122464
140724349122464<jupyter_text>Airthmetic Operators    + Addition    - Subtraction    * Multiplication    / Division    // floor Division    % Modulus    ** Power   + / Addition<jupyter_code>3+6  #int + int = int
#int/float + float = float
3+6.6 #int + float = float
#int/float + float = float
3.5+6.6 #float + float = float
'3'+6 #str + int/float = not possible without type casting
#type casting
int('3')+6
'3'+'6' #str + str = str
["Haseeb","Aslam"] + ["Zahid","Abrar"] #adding/concatenate string's list
["Haseeb","Aslam"] + [1,6] #adding/concatenate string's and int's list
("Haseeb","Aslam") + ("Zahid","Abrar") #adding/concatenate string's tuple
("Haseeb","Aslam") + (1,6) #adding/concatenate string's and int's tuple
#adding/concatenate/+ is not allow to apply on dict{:,:,:,...} and set{}<jupyter_output><empty_output><jupyter_text>- / Subtraction<jupyter_code>5-2
5.2-2
{5,6,7,8} - {6,2} #set subtraction --> intersection
{"Haseeb", "Ali", "Zabi"} - {"Zabi"}#set subtraction --> intersection
#sub/- is not allow to apply on dict{:,:,:,...}, tuple ( , , ,...) and list[ , , ,...]<jupyter_output><empty_output><jupyter_text>* / Multiplication<jupyter_code>3 * 6
3.0 * 6
'3 '*6
['3 ']*6
a = ('3 ')
print(type(a))
('3 ')*6        #taking it as simple string not tuple...
a = ('3 ',)
print(type(a))
('3 ',)*6      #taking it as simple tuple...
#multiplication/*  is not allow to apply on dict{:,:,:,...} and set{}<jupyter_output><empty_output><jupyter_text>/ or Division<jupyter_code>11 / 3 # division always return float
#Division is allow to apply on only float or int<jupyter_output><empty_output><jupyter_text>// or Floor Division<jupyter_code>11 // 3 # floor division always return int<jupyter_output><empty_output><jupyter_text>% / Modulus              3     3  ________    ____|   11  |____               9        ----------            2    Modulus<jupyter_code>11 % 3<jupyter_output><empty_output><jupyter_text>** / Power<jupyter_code>#power 
print(2 ** 3)
print((1+1) ** 3)
print(2.5 ** 2)
## Next
## Comparison (Relational) Operators<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.156289707750953, 'fraction_numerical': 0.03837357052096569, 'mean_word_length': 4.567185289957568, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 58, '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': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '370924', 'license': 'MIT', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1429, 'n_words': 371, 'path': 'Day_1(Python).ipynb', 'repo_name': 'HaseebRajput007/100DaysOfCode-DataScience', 'size': '4042'}