1. Python Installation
System-independent Installation
To install Python system-independently, please follow these steps:
- Visit the official Python website at https://www.python.org/downloads/.
- Download the latest version of Python for your operating system.
- Run the downloaded installer and follow the installation instructions.
- Verify the installation by running the following command in the Command Prompt (Windows) or Terminal (Mac and Linux):
Make sure to enable the 'Add Python to PATH' option during the installation. This allows you to execute Python commands such as 'python --version' directly from the Windows Command Prompt.
Visual Studio Code (VS Code) Installation
Windows
- Open your web browser and visit the official VS Code website: https://code.visualstudio.com/.
- Click the download button for Windows to download the installer.
- Run the downloaded installer and follow the on-screen instructions. By default, VS Code is installed in the "Programs" folder.
- After completing the installation, you can start Visual Studio Code via the start menu or the desktop shortcut.
macOS
- Open your web browser and visit the official VS Code website: https://code.visualstudio.com/.
- Click the download button for macOS to download the installer.
- Drag the downloaded installer into the "Applications" folder to install Visual Studio Code.
- Open the "Applications" folder and locate Visual Studio Code. Double-click it to start the application.
Introduction to Visual Studio Code
Visual Studio Code (VS Code) is a free, open-source code editor developed by Microsoft and available on Windows, macOS, and Linux. Here are some basic concepts and features:
- Editor: VS Code offers a powerful code editor with syntax highlighting, IntelliSense, and support for many programming languages.
- Extensions: You can customize and extend VS Code with extensions to tailor its functionality for your specific needs.
- Integrated Terminal: VS Code has an integrated terminal that allows you to execute commands directly.
- Version Control: You can use Git directly within VS Code to manage your projects and track changes.
- Debugging: VS Code offers powerful debugging capabilities for various programming languages.
Visual Studio Code is popular among developers due to its ease of use and extensibility, making it well-suited for developing web applications, desktop applications, and much more.
Windows CMD Cheat Sheet
| Command |
Description |
| dir |
Lists files and directories in the current directory. |
| cd directory |
Changes to the specified directory. |
| mkdir directory_name |
Creates a new directory. |
| del filename |
Deletes a file. |
| copy source_file destination |
Copies a file from one location to another. |
| ren old_file new_file |
Renames a file. |
macOS Terminal Cheat Sheet
| Command |
Description |
| ls |
Lists files and directories in the current directory. |
| cd directory |
Changes to the specified directory. |
| mkdir directory_name |
Creates a new directory. |
| rm filename |
Deletes a file. |
| cp source_file destination |
Copies a file from one location to another. |
| mv old_file new_file |
Moves or renames a file. |
Next Exercise Sheet
...