Every Week, They have two sets of video Lectures with
• Concepts and Examples
• Two Quizes ( each quiz for a set)
• 1 Mini Project
This Course duration is 8 Weeks (Oct -15 to Dec - 10)
Today was my first class.
Here are some Concepts which i learnt:
1. Comments:
Comments are Non-computational parts of the program that describe the behavior of the program to you and others.
Comments begin with
#
, everything after the hash symbol is ignored by Python.# Hello,This is my first program in Python.
2. Print:
To return the values,we use print.
Example 1:
# Hello,This is my first program in Python.
Print "Hello World"
Execute: The Output shows:
Line 3: SyntaxError: bad input on line 3 (''Hello world'')
Due to Case-Sensitiveness, In the statement : 'P' in Print should be in Lower-Case.
Example 2:
# Hello,This is my first program in Python.
print "Hello World"
Execute: The Output shows:
Hello world
3. Strings :
Sequence of characters enclosed by a pair of single or double quotes is called as Strings.
Example 1:
# Hello,This is my first program in Python.
print "Hello World"
Execute: The Output shows: Hello world
In this, "Hello world" / 'Hello World' results to same output.
Strings are one of the data types: They are denoted by 'str'.
----------------------------------------------------
Continued...
Happy Learning..Happy Programming :)
0 comments:
Post a Comment