The document contains Python programming notes for CBSE Class 12 students, focusing on basic operations such as addition, subtraction, and percentage calculation. It includes examples of input handling and conditional statements to determine positive, negative, or zero values, as well as odd and even numbers. Additionally, it covers finding maximum and minimum values among given numbers.
The document contains Python programming notes for CBSE Class 12 students, focusing on basic operations such as addition, subtraction, and percentage calculation. It includes examples of input handling and conditional statements to determine positive, negative, or zero values, as well as odd and even numbers. Additionally, it covers finding maximum and minimum values among given numbers.
Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP a=input("Enter First Number:") b=input("Enter Second Number:") c=a+b print("Addition=",c)
Output: 45
a=int(input("Enter First Number:"))
b=int(input("Enter Second Number:")) c=a+b print("Addition=",c)
Output: 9
Notes By: Anand Sir | YouTube Channel: CODEITUP
Notes By: Anand Sir | YouTube Channel: CODEITUP m1=int(input("Enter Marks of First Subject:")) m2=int(input("Enter Marks of Second Subject:")) m3=int(input("Enter Marks of Third Subject:")) m4=int(input("Enter Marks of Fourth Subject:")) m5=int(input("Enter Marks of Fifth Subject:")) a=int(input("Enter First Number:")) total=m1+m2+m3+m4+m5 b=int(input("Enter Second Number:")) print("Total Marks=",total) c=a+b print("Addition=",c) m1=int(input("Enter Marks of First Subject:")) a=int(input("Enter First Number:")) m2=int(input("Enter Marks of Second Subject:")) b=int(input("Enter Second Number:")) m3=int(input("Enter Marks of Third Subject:")) c=a-b m4=int(input("Enter Marks of Fourth Subject:")) print("Subtraction=",c) m5=int(input("Enter Marks of Fifth Subject:")) total=m1+m2+m3+m4+m5 print("Total Marks=",total) per=total/5 print("Percentage=",per)
Notes By: Anand Sir | YouTube Channel: CODEITUP
Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP #No is positive negative or zero a=int(input("Enter Number:")) #No is odd or even if a>0: a=int(input("Enter Number:")) print("Positive") if a%2==0: elif a<0: print("Even Number") print("Negative") else: else: print("Odd Number") print("Zero")
#Max and Min between three numbers
a=int(input("Enter First Number:")) #Max and Min between two numbers b=int(input("Enter Second Number:")) a=int(input("Enter First Number:")) c=int(input("Enter Third Number:")) b=int(input("Enter Second Number:")) if a>b and a>c: if a>b: print("Max=",a) print("Max=",a,"Min=",b) elif b>a and b>c: else: print("Max=",b) print("Max=",b,"Min=",a) else: print("Max=",c)
Notes By: Anand Sir | YouTube Channel: CODEITUP
Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP Notes By: Anand Sir | YouTube Channel: CODEITUP