Writing Our First Python Program

So, today we will be writing our first program in Python Language. I know you were waiting to do this for long.

Let's get to business and start writing our first python program. Follow the below steps:

  1. Simple Open Pycharm and create a new file in it.
  2. Keep in mind the file name should not match any module name.
  3. After creating a new file simply type print(“Hello World”)
  4. And then run your program.
  5. You will get the output as “Hello World”.

So, this is our first python program and in this program, we just used a print function. In this function whatever we pass in parenthesis () in a double quote or single quote, gets printed as is on the screen.

Make sure you have written and executed the below code to get a feel of what it looks like!

print("Hello world! I am learning Python from CodeWithHarry YouTube channel")

So, that's all in this tutorial. See you in the next one where we will see how to use python as a calculator! 

Comments(2)

Vivek-Mishra 3 weeks, 4 days ago
Full Notes and Source Code: https://github.com/Optimized-World/Complete-Python-Tutorial-and-Notes
Vivek-Mishra 3 weeks, 4 days ago
Remaining Codes will be updated Soon. Thanks, Harry Bhai for Awesome Tutorials

Resources

  1. File - Download here

Course Announcements

Any Course related announcements will be posted here

Course Content