Python Laboratory Excersices

L1_2.2 Python Programs
Step 1: Type the Python program using a text editor such as gedit or vi or emacs or Kwrite and save as ($ gedit
Step 3: Modify the above program to display the source code.

# Step 1# ******** ## display Hello Worldprint"Hello world !\n"# Step 3# ******** #print"# display Hello World\n"print"print \"Hello world !\\n\"\n"


Let A and B be two subsets of ℝ
A relation from A to B is a rule which assigns a member of B to each member of A.
Let A and B are two subsets of ℝ
A function from A to B is a rule which assigns a unique member of B of each number of A.

About Padmal's Blog

This is my very first blog. Learning and implementing about blogging and discovering it's trends, basically this blog will help anyone out with Mathematics, Python Programming Fundamentals at the university level.
Mathematics will cover Logic and Set Theory [Propositions, Quantifiers, Techniques of Proof, Sets, Relations, Functions], Real Analysis [Intervals, Supremum and Infemum, Completeness Axiom, Limit of a Function, Differentiability, Rolle’s Theorem, L’ Hospital’s Rule, Sequences, Convergence of Series: Ratio Test, Comparisons Test, Limit Comparison Test, Maclaurine’s Integral Test; Taylor’s Series, Integration of Continuous Functions, Definite and Indefinite Integrals], Complex Numbers, Vectors, and Matrices [Algebra of Complex Numbers, De Moriver’s Theorem, Argand Diagram, Vector Algebra, Scalar Triple Product, Vector Triple Product, Line and Plane, Matrix Algebra, Echelon Forms, Rank, Determinants, Eigen Values, Spectral Radius, Matrix Norms: Maximum Row Sum, Maximum Co…


Let A ≤ R; A is said to be an interval if following condition is satisfied.

If a, b ∈ A with a < b, then
a < x < b ⇒ x ∈ A

Eg: A = {1, 2, 3, 4}
2, 3 ∈ A & 2 < 2.5 < 3 & 2.5 ∉ A

Therefore A is not an interval


ℝ+ = {a | a ∈ ℝ and a is located to the R.H.S. of 0 in the number line}
ℝ- = {a | a ∈ ℝ and a is located to the L.H.S. of 0 in the number line}
{0} = The single point 0
Then, ℝ = ℝ- ∪ {0} ∪ ℝ+

Irrational Numbers

In mathematics, an irrational number is any real number that cannot be expressed as a ratio of integers. Informally, this means that an irrational number cannot be represented as a simple fraction. Irrational numbers are those real numbers that cannot be represented as terminating or repeating decimals. As a consequence of Cantor's proof that the real numbers are uncountable(and the rationals countable) it follows that almost all real numbers are irrational.
Note: ∃ a (There is...)∃ a1, a2, a3 ... (There are...)

Creating Tabs in Blogger

In Blogger, there is no inbuilt option to create tabs. So we're using a tricky way to create tabs. It is actually Labels that are playing the role of tabs here and we're simply displaying those labels in the form of tabs. I think now you get the picture of what's going to happen here. I'll bring it down step by step.