Friday, 23 March 2018

First Python Program

My First Python Program

Start your Python Shell.

You will get command prompt like (>>>). Write following simple command to print your first message using Python Programming.

>>> print("Hello World")
Hello World

Congratulations!!! Your first python program is done....

Here, >>> print("Hello World") is the python code we need to write to generate the output Hello World.

* * * * *
#Sample Python Program
print("Hello Students..")
print("Welcome to Python Practicals.......")

Output:
Hello Students..
Welcome to Python Practicals.......


Python Practicals

Welcome to the World of Python Programming


This blog helps you to learn Python programming concepts. You can learn Python programming practicals at your own pace. One can easily learn concepts of Python programming by practicing various programs given on various pages of this blog. Enjoy the power of Self Study.

Click your Topic of Interest to Learn.....


Basics of Python
Looping
Functions
File Management
Classes
Networking
Security



Branching Statements in Python: Python language executes program statements in a sequence. Sometimes we need to alter the flow of sequence of statements. This is possible using Branching statements offered by Python language. They are also known as control statements. Branching Statements of Python are given below:
  • if statement
  • if…else statement
  • nested if statement


Looping statements in Python: In computer programming, a loop is a sequence of commands or statements that are repeated many times. Looping statements in Python language are as under:
  • for statement
  • while statement
  • nested loops

File Management in Python: We create a File for permanent storage of data. Python language provides many functions that help us to perform various file operations. 

Click here to know more about general syntax of File Management, reading content from a file, writing and appending content to a file. 


* * * * *