- Download and install python
- Click Python idle (you can simply search it from search bar)
- Open the Python IDLE to start coding
- There is a feature in Python, that is if you need to test your codes you can simply type your codes and run on the shell
- And if you are typing lots of codes go to file and click on new file
1st way (on shell)
- I will code the hello world program in two ways i mentioned
simply type these codes on the shell and press enter
print("Hello world")
after pressing enter it will display Hello world, in the code print means the output. We have to type what ever we need to display within (" ") this statement.
2nd way (by creating a new file)
Go to file and click on new file
simply type this code on the file
print("Hello world")
after that click on run and run module or simply press f5 button
save the python file
check the output
No comments:
Post a Comment