<jupyter_start><jupyter_text>Day 1  Topics: 1:printing 2:Commenting 3:Debugging 4:String Manipulation 5:Variables:  1st (printing)<jupyter_code>print("Hello World")
print('Hello world')<jupyter_output><empty_output><jupyter_text>2nd(Commenting)<jupyter_code>#print("Hello World")
#<NAME><jupyter_output><empty_output><jupyter_text>Task1 of the Day: print the folowing Lines:1:Teacher said,"<NAME>"2:print('I am Sad now')  Solution:<jupyter_code># Answer of 1st 

print('Teacher said,"<NAME>"')
# Answer of 2nd 
print("print('I am Sad now')")<jupyter_output><empty_output><jupyter_text>4th Strings Manipulation<jupyter_code>print("saad" + "fareed")
print("saad is my name" +" "+"i am a student of Computer Science ") # string Concatenation<jupyter_output><empty_output><jupyter_text>Task2 of the Day: Debug the folowing Lines:prin('hello world')prnt("hello world')print("hello world''<jupyter_code>print("hello world")<jupyter_output>hello world<jupyter_text>Input from User<jupyter_code>print(input("Enter any string"))
print("Hello "+ input("What is Your Name:"))<jupyter_output><empty_output><jupyter_text>only Integer Input<jupyter_code>print(int(input("Enter any Integer")))<jupyter_output>Enter any Integer10
10<jupyter_text>Basic Arthematic Operation<jupyter_code>print(5+10) #Add
print(5-10) #Sub
print(5*10) #Mul
print(5/10) #Div
print(5%10) #Rem
print(5**10) #pow<jupyter_output>6<jupyter_text>Task3 of the Day: Calculate Age of Person By taking YOB as input from user<jupyter_code>print(2021-int(input("Enter YOB:")))<jupyter_output>Enter YOB:2000
21<jupyter_text>Calculate Length of String<jupyter_code>print(len(input("Enter a String: ")))<jupyter_output>Enter a String: <NAME>
11<jupyter_text>Variables<jupyter_code>num=5
print(num)
name='saad' #no need to declare what type of data is it
print(name)<jupyter_output>5
saad<jupyter_text>Project of the day: write a program for person details. sample output: (Yourname) is my name  I am (Yourage) years of age having hobby of doing (Hobbies)  Solution<jupyter_code>name=input("Enter Your name:\n")
Age=int(input("Enter Your Age:\n"))
Hobbies=input("Enter Your Hobbies:\n")
print(name+" is my name\n" "I am" +str(Age), " years of age\n"+"having hobby of doing "+ Hobbies+"\n")<jupyter_output><empty_output><jupyter_text>DAY 2  Topics:1:Data Types 2:Numbers3:Operations4:Types conversion5:f-strings<jupyter_code>print (type("hello "+"world"))

print (type(123+234))
print (type("123"+"234"))
#Float
print(type(3.1415))
print(3.1390)
print(type(3.123))
print(type(True))
type Errors 
print("saad your is age" ,21, "is it?")
print("saad your age is "+str(21)+" is it?")
#shortcut key for comments
cont+/
#Priority
#PEMDAS
#parentheses 
#Exponents
#Multi
#Div
#Add
#sub

#.......................

#() 
#** 
#*
#/ 
#+
#-

print(3*3+int( 3/3)-3) #9+1-3 #7
# Output 7
#print(round(5/2))
#roundoff
print((round(8/3,1)))
score=0
print(score)
score=score+1
print(score)
score+=1
print(score)
score=10
height=1.8
HM=True
#f-string
#string formatting mechanism
# print("Your score is"+ score+ "with height"+ height+ "HM is done or not"+ HM ")
print(f"Your score is {score}, with height {height}, HM is done or not{HM} ")<jupyter_output>Your score is 10, with height 1.8, HM is done or notTrue<jupyter_text>Project: Make a Calculator That takes input from users and apply arthematic operation  DAY 3  Topics:1:Conditional Statements2:logical operators3:code block4:scope<jupyter_code># if-else Statements
marks=int(input("Enter Your marks: "))

if(marks>50):
    print("Asslam-o-Alaikum")
    print("ok")
    print("You Pass the Exam:")
else:
    print("Try Again:")<jupyter_output>Enter Your marks: 59
Asslam-o-Alaikum
ok
You Pass the Exam:<jupyter_text>Task of the day<jupyter_code>#Take an input from user in integer value and predict number is odd or even
number=int(input("Enter a Number: "))
if(number%2==0):
    print("Number is even")
else:
    print("Number is odd")
# concept of elif

number=int(input("Enter a Number: "))
if number>0:
    print("Number is positive")
elif(number<0):
    print("Number is negative")
else:
    print("Number is 0 and it's neither positive nor negative, ")
#Nested if condition
number=int(input("Enter a Number: "))
if(number>0):
    print("number is positive")
    if(number%2==0):
        print("Number is even")
    else:
        print("Number is odd")
elif(number<0):
    print("number is negative")
    if(number%2==0):
        print("Number is even")
    else:
        print("Number is odd")
else:
    print("Number is 0 and it's neither positive nor negative, ")
#Nested if condition
#problem of intentation 
number=int(input("Enter a Number: "))
if(number>0):
    print("number is positive")
    if(number%2==0):
        print("Number is even")
    else:
        print("Number is odd")
        
elif(number<0):
    print("number is positive")
    if(number%2==0):
        print("Number is even")
    else:
        print("Number is odd")
else:
    print("Number is 0 and it's neither positive nor negative, ")

# logical operators
#Nested if condition
#problem of intentation 
# and not or
# and 2no conditipons ka true hona zarori hay
# 
number=int(input("Enter a Number: "))
if(number>0 and number%2==0): # 
    print("number is positive")
    print("Number is even")
elif(number>0 or number%2!=0):
    print("number is positive")
    print("Number is odd")
else:
    print("number is 0")<jupyter_output>Enter a Number: 3
number is positive
Number is odd<jupyter_text>Project of the Day 3  Now make a calculator by using if-else condition you have to Take 2 Numbers from Users and Apply basic Arthematic Operation.  DAY4<jupyter_code>#LIST is like array
MY_Bio=["saad",21,True]

print(MY_Bio)<jupyter_output>['saad', 21, True]<jupyter_text>offset -> Address<jupyter_code>#LIST is like array
MY_Bio=["saad",21]

print(MY_Bio[1])<jupyter_output>21<jupyter_text>Rondamization<jupyter_code>import random
my_choice=["Head","Tail"]
result=random.choice(my_choice)
print(result)
import random
random_integer=random.randint(1,10)
print(random_integer)
import random as sadi
random_integer=sadi.randint(1,100)
print(random_integer)<jupyter_output>4<jupyter_text>Module Parts of Projects(Example: Car Manufacturing)<jupyter_code># Check Pycharm
#Random Float
import random as sadi
random_float=sadi.random()
# 0.00000000000 -- 0.99999999999999
print(random_float)<jupyter_output>0.9737167223728831<jupyter_text>Task of the Day:<jupyter_code>import random as sadi
random_integer=sadi.randint(1,2)
if random_integer==1:
    print("HEADS")
else:
    print("Tail")
    
print("Value is: ",random_integer)<jupyter_output>Tail
Value is:  2<jupyter_text>Split<jupyter_code>sentence="<NAME> ?Fareed is my name. and? my age is 21. "
words=sentence.split("?")
print(words)<jupyter_output>['<NAME> ', 'Fareed is my name. and', ' my age is 21. ']<jupyter_text>Project of the Day:  MAKE ROCK PAPER SCISSORS GAME<jupyter_code>import random

rock = '''
    _______
---'   ____)
      (_____)
      (_____)
      (____)
---.__(___)
'''

paper = '''
    _______
---'   ____)____
          ______)
          _______)
         _______)
---.__________)
'''

scissors = '''
    _______
---'   ____)____
          ______)
       __________)
      (____)
---.__(___)
'''
game_images = [rock, paper, scissors]

user_choice = int(input("What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.\n"))
print(game_images[user_choice])

computer_choice = random.randint(0, 2)
print("Computer chose:")
print(game_images[computer_choice])

if user_choice >= 3 or user_choice < 0: 
  print("You typed an invalid number, you lose!") 
elif user_choice == 0 and computer_choice == 2:
  print("You win!")
elif computer_choice == 0 and user_choice == 2:
  print("You lose")
elif computer_choice > user_choice:
  print("You lose")
elif user_choice > computer_choice:
  print("You win!")
elif computer_choice == user_choice:
  print("It's a draw")<jupyter_output><empty_output><jupyter_text>DAY 5  Topics:1:NESTED LIST2:For loop3:for loops and the range() function<jupyter_code>names=["saad","fareed","ahmad"]
saad=[80,70,67]
fareed=[100,91,78]
ahmad=[76,99,98]
grades=[saad,fareed,ahmad]
regnum=["2018CS632","2018FS678","2091CH789"]
result=[names,regnum,grades]
print(result)<jupyter_output>[['saad', 'fareed', 'ahmad'], ['2018CS632', '2018FS678', '2091CH789'], [[80, 70, 67], [100, 91, 78], [76, 99, 98]]]<jupyter_text>Task of the day<jupyter_code># make 3 by 3 Matrix
rows=[0,1,2]
col=[0,1,2]
matrix=[[(rows[0],col[0]),(rows[0],col[1]),(rows[0],col[2])],[(rows[1],col[0]),(rows[1],col[1]),(rows[1],col[2])],[(rows[2],col[0]),(rows[2],col[1]),(rows[2],col[2])]]
print(matrix)<jupyter_output>[[(0, 0), (0, 1), (0, 2)], [(1, 0), (1, 1), (1, 2)], [(2, 0), (2, 1), (2, 2)]]<jupyter_text>For loop<jupyter_code>#print number from 0 to 10
for i in range(0,10): #i start 0 ->1..............
    print(i)
#print number from 0 to 10
list_num=[0,1,2,3,4,5,6,7,8,"saaad"]
for i in list_num:
    print(i)<jupyter_output>0
1
2
3
4
5
6
7
8
saaad<jupyter_text>task of the day<jupyter_code># Calculate Max marks in list:
result=0
marks=[19,18,20,15]
mark=len(marks)
print(mark)
for i in range(0,len(marks)-1):
    if(marks[i]>marks[i+1]):
        #print(i)
        result=marks[i]#19
    else:
        #print(i)
        result=marks[i+1]
print(result)<jupyter_output>4
20<jupyter_text>task 2 of the day<jupyter_code># sum of even numbers from 0 to 100
sum=0
for i in range(0,101,2):
    sum+=i
print(sum)<jupyter_output>2550<jupyter_text>task 3 of the day  The FizzBuzz Job Interview Questionif 3 is factor of number then print Fizzif 5 is factor of number then print Buzzif 3 and 5 both are factors of number then print FizzBuzzotherwise print number<jupyter_code>number=0
for values in range (1,101):
    number+=1 
    if number%3==0 and number%5!=0:
        print("Fizz")
    elif number%5==0 and number%3!=0:
        print("Buzz")
    elif number%3==0 and number%5==0:
        print("FizzBuzz")
    else: print(number)<jupyter_output>1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz<jupyter_text>Project of the Day  Random password Generator Description:   password must include number from 0-9   letters from a-z   specialcharacter like @,,$<jupyter_code>import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']

print("Welcome to the SadiPassword Generator!")


password = ""
for i in range(1,3):
    for char in range(1,3):
        password += random.choice(letters)

    for char in range(1,2):
        password += random.choice(symbols)

    for char in range(1,3):
        password += random.choice(numbers)

print(password)<jupyter_output>Welcome to the SadiPassword Generator!
eR&69ll$73<jupyter_text>Project of the Week<jupyter_code>import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']

print("Welcome to the SadiPassword Generator!")
nr_letters = random.randint(1,5) 
nr_symbols = random.randint(1,3) 
nr_numbers = random.randint(1,4) 

password_list = []

for char in range(1, nr_letters + 1):
  password_list.append(random.choice(letters))

for char in range(1, nr_symbols + 1):
  password_list += random.choice(symbols)

for char in range(1, nr_numbers + 1):
  password_list += random.choice(numbers)

#print(password_list)

#print(password_list)
random.shuffle(password_list)
password = ""
for char in password_list:
  password += char

print(f"Your password is: {password}")<jupyter_output>Welcome to the SadiPassword Generator!
Your password is: <PASSWORD>
{'fraction_non_alphanumeric': 0.17166212534059946, 'fraction_numerical': 0.047683923705722074, 'mean_word_length': 5.205370462456489, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 7, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '30', 'dir': 'jupyter-structured-clean-dedup', 'id': '245881', 'license': 'Apache-2.0', 'n_tokens_mistral': 5204, 'n_tokens_neox': 4828, 'n_words': 1258, 'path': 'Python111.ipynb', 'repo_name': 'saadfareed/python111', 'size': '12511'}