2_Setup of Python
2_Setup of Python
Learning objective
• Getting Python
• Installation of Python
• Getting started with the first Python program
• Running the first Python Program
• Introduction to Jupyter Notebook
• Introduction to PyCharm Community Edition
Getting Python
• The most up-to-date and current source code, binaries,
documentation, news, etc., is available on the official website of
Python:
https://www.python.org/
int main() {
printf("Hello");
printf("Press any key to exit...");
getch();
}
Program to display welcome message
#include <iostream>
using namespace std;
int main() {
cout << "Hello" << endl;
return 0;
}
Program to display welcome message
public class Hello {
public static void main(String[] args)
{
System.out.println("Hello");
}
}
Program to display welcome message
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello");
}
}
Program to display welcome message
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello');
END;
/
Getting started with 1 Python program
st
• Open IDLE
• Write Python code (you can copy the code below for now) and
save (Shortcut: Ctrl+S) with .py file extension like: hello.py or
yourfirstprogram.py
Running the 1 Python program
st
• Before running the python program, you can save it using Ctrl + S,
OR go to File > Save.
• Now you can run the program. Go to Run > Run module (Shortcut:
F5) and you can see the output.
• It provides core features for Python development but lacks some advanced
features available in the Professional Edition.
• Provides code analysis and highlights warnings or errors directly in the editor.
You have learnt:
• Getting Python
• Installation of Python
• Getting started with the first Python program
• Running the first Python Program
• Introduction to Jupyter Notebook
• Introduction to PyCharm Community Edition