300 Python Programs Class11 12
300 Python Programs Class11 12
with Codes)
Program 1
# Program 1: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 2
# Program 2: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 3
# Program 3: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 4
# Program 4: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 5
# Program 5: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 6
# Program 6: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 7
# Program 7: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 8
# Program 8: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 9
# Program 9: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 10
# Program 10: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 11
# Program 11: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 12
# Program 12: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 13
# Program 13: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 14
# Program 14: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 15
# Program 15: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 16
# Program 16: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 17
# Program 17: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 18
# Program 18: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 19
# Program 19: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 20
# Program 20: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 21
# Program 21: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 22
# Program 22: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 23
# Program 23: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 24
# Program 24: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 25
# Program 25: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 26
# Program 26: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 27
# Program 27: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 28
# Program 28: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 29
# Program 29: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 30
# Program 30: Basic numeric example
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Difference:", a - b)
Program 31
# Program 31: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 32
# Program 32: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 33
# Program 33: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 34
# Program 34: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 35
# Program 35: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 36
# Program 36: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 37
# Program 37: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 38
# Program 38: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 39
# Program 39: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 40
# Program 40: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 41
# Program 41: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 42
# Program 42: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 43
# Program 43: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 44
# Program 44: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 45
# Program 45: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 46
# Program 46: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 47
# Program 47: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 48
# Program 48: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 49
# Program 49: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 50
# Program 50: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 51
# Program 51: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 52
# Program 52: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 53
# Program 53: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 54
# Program 54: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 55
# Program 55: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 56
# Program 56: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 57
# Program 57: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 58
# Program 58: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 59
# Program 59: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 60
# Program 60: Loop example
n = int(input("Enter number: "))
for i in range(1, n+1):
print(i)
Program 61
# Program 61: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 62
# Program 62: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 63
# Program 63: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 64
# Program 64: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 65
# Program 65: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 66
# Program 66: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 67
# Program 67: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 68
# Program 68: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 69
# Program 69: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 70
# Program 70: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 71
# Program 71: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 72
# Program 72: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 73
# Program 73: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 74
# Program 74: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 75
# Program 75: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 76
# Program 76: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 77
# Program 77: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 78
# Program 78: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 79
# Program 79: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 80
# Program 80: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 81
# Program 81: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 82
# Program 82: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 83
# Program 83: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 84
# Program 84: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 85
# Program 85: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 86
# Program 86: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 87
# Program 87: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 88
# Program 88: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 89
# Program 89: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 90
# Program 90: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 91
# Program 91: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 92
# Program 92: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 93
# Program 93: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 94
# Program 94: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 95
# Program 95: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 96
# Program 96: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 97
# Program 97: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 98
# Program 98: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 99
# Program 99: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 100
# Program 100: String example
s = input("Enter a string: ")
print("Length:", len(s))
print("Reverse:", s[::-1])
Program 101
# Program 101: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 102
# Program 102: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 103
# Program 103: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 104
# Program 104: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 105
# Program 105: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 106
# Program 106: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 107
# Program 107: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 108
# Program 108: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 109
# Program 109: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 110
# Program 110: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 111
# Program 111: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 112
# Program 112: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 113
# Program 113: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 114
# Program 114: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 115
# Program 115: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 116
# Program 116: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 117
# Program 117: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 118
# Program 118: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 119
# Program 119: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 120
# Program 120: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 121
# Program 121: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 122
# Program 122: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 123
# Program 123: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 124
# Program 124: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 125
# Program 125: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 126
# Program 126: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 127
# Program 127: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 128
# Program 128: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 129
# Program 129: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 130
# Program 130: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 131
# Program 131: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 132
# Program 132: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 133
# Program 133: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 134
# Program 134: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 135
# Program 135: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 136
# Program 136: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 137
# Program 137: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 138
# Program 138: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 139
# Program 139: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 140
# Program 140: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 141
# Program 141: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 142
# Program 142: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 143
# Program 143: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 144
# Program 144: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 145
# Program 145: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 146
# Program 146: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 147
# Program 147: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 148
# Program 148: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 149
# Program 149: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 150
# Program 150: List example
lst = [int(x) for x in input("Enter numbers separated by space: ").split()]
print("List:", lst)
print("Sum:", sum(lst))
Program 151
# Program 151: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 152
# Program 152: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 153
# Program 153: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 154
# Program 154: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 155
# Program 155: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 156
# Program 156: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 157
# Program 157: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 158
# Program 158: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 159
# Program 159: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 160
# Program 160: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 161
# Program 161: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 162
# Program 162: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 163
# Program 163: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 164
# Program 164: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 165
# Program 165: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 166
# Program 166: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 167
# Program 167: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 168
# Program 168: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 169
# Program 169: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 170
# Program 170: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 171
# Program 171: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 172
# Program 172: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 173
# Program 173: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 174
# Program 174: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 175
# Program 175: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 176
# Program 176: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 177
# Program 177: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 178
# Program 178: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 179
# Program 179: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 180
# Program 180: Tuple example
t = tuple(map(int, input("Enter numbers: ").split()))
print("Tuple:", t)
print("Length:", len(t))
Program 181
# Program 181: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 182
# Program 182: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 183
# Program 183: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 184
# Program 184: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 185
# Program 185: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 186
# Program 186: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 187
# Program 187: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 188
# Program 188: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 189
# Program 189: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 190
# Program 190: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 191
# Program 191: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 192
# Program 192: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 193
# Program 193: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 194
# Program 194: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 195
# Program 195: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 196
# Program 196: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 197
# Program 197: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 198
# Program 198: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 199
# Program 199: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 200
# Program 200: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 201
# Program 201: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 202
# Program 202: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 203
# Program 203: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 204
# Program 204: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 205
# Program 205: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 206
# Program 206: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 207
# Program 207: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 208
# Program 208: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 209
# Program 209: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 210
# Program 210: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 211
# Program 211: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 212
# Program 212: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 213
# Program 213: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 214
# Program 214: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 215
# Program 215: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 216
# Program 216: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 217
# Program 217: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 218
# Program 218: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 219
# Program 219: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 220
# Program 220: Dictionary example
d = {"a":1,"b":2,"c":3}
for k,v in [Link]():
print(k, v)
Program 221
# Program 221: Function example
def square(x):
return x*x
Program 222
# Program 222: Function example
def square(x):
return x*x
Program 223
# Program 223: Function example
def square(x):
return x*x
Program 224
# Program 224: Function example
def square(x):
return x*x
Program 225
# Program 225: Function example
def square(x):
return x*x
Program 226
# Program 226: Function example
def square(x):
return x*x
Program 227
# Program 227: Function example
def square(x):
return x*x
Program 228
# Program 228: Function example
def square(x):
return x*x
Program 229
# Program 229: Function example
def square(x):
return x*x
Program 230
# Program 230: Function example
def square(x):
return x*x
Program 231
# Program 231: Function example
def square(x):
return x*x
Program 232
# Program 232: Function example
def square(x):
return x*x
Program 233
# Program 233: Function example
def square(x):
return x*x
Program 234
# Program 234: Function example
def square(x):
return x*x
Program 235
# Program 235: Function example
def square(x):
return x*x
Program 236
# Program 236: Function example
def square(x):
return x*x
Program 237
# Program 237: Function example
def square(x):
return x*x
Program 238
# Program 238: Function example
def square(x):
return x*x
Program 239
# Program 239: Function example
def square(x):
return x*x
Program 240
# Program 240: Function example
def square(x):
return x*x
Program 241
# Program 241: Function example
def square(x):
return x*x
Program 242
# Program 242: Function example
def square(x):
return x*x
n = int(input("Enter number: "))
print("Square:", square(n))
Program 243
# Program 243: Function example
def square(x):
return x*x
Program 244
# Program 244: Function example
def square(x):
return x*x
Program 245
# Program 245: Function example
def square(x):
return x*x
Program 246
# Program 246: Function example
def square(x):
return x*x
Program 247
# Program 247: Function example
def square(x):
return x*x
Program 248
# Program 248: Function example
def square(x):
return x*x
Program 249
# Program 249: Function example
def square(x):
return x*x
Program 251
# Program 251: Function example
def square(x):
return x*x
Program 252
# Program 252: Function example
def square(x):
return x*x
Program 253
# Program 253: Function example
def square(x):
return x*x
Program 254
# Program 254: Function example
def square(x):
return x*x
Program 255
# Program 255: Function example
def square(x):
return x*x
Program 256
# Program 256: Function example
def square(x):
return x*x
Program 257
# Program 257: Function example
def square(x):
return x*x
Program 258
# Program 258: Function example
def square(x):
return x*x
Program 259
# Program 259: Function example
def square(x):
return x*x
Program 260
# Program 260: Function example
def square(x):
return x*x
Program 261
# Program 261: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 262
# Program 262: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 263
# Program 263: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 264
# Program 264: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 265
# Program 265: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 266
# Program 266: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 267
# Program 267: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 268
# Program 268: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 269
# Program 269: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 270
# Program 270: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 271
# Program 271: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 272
# Program 272: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 273
# Program 273: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 274
# Program 274: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 275
# Program 275: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 276
# Program 276: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 277
# Program 277: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 278
# Program 278: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 279
# Program 279: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 280
# Program 280: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 281
# Program 281: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 282
# Program 282: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 283
# Program 283: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 284
# Program 284: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 285
# Program 285: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 286
# Program 286: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 287
# Program 287: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 288
# Program 288: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 289
# Program 289: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 290
# Program 290: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 291
# Program 291: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 292
# Program 292: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 293
# Program 293: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 294
# Program 294: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 295
# Program 295: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 296
# Program 296: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 297
# Program 297: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 298
# Program 298: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 299
# Program 299: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())
Program 300
# Program 300: File handling example
with open("[Link]","a") as f:
[Link]("Hello Python\n")
with open("[Link]","r") as f:
print([Link]())