https://github.com/hrmnns/python-hello-world
Dieses Projekt wurde dazu genutzt, eine einfache Hello World-Anwendung in Python zu erstellen und anschließend in ein neues GitHub-Repository zu übertragen.
https://github.com/hrmnns/python-hello-world
github python vscode
Last synced: 3 months ago
JSON representation
Dieses Projekt wurde dazu genutzt, eine einfache Hello World-Anwendung in Python zu erstellen und anschließend in ein neues GitHub-Repository zu übertragen.
- Host: GitHub
- URL: https://github.com/hrmnns/python-hello-world
- Owner: hrmnns
- Created: 2025-11-07T17:29:00.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-12-22T19:35:54.000Z (7 months ago)
- Last Synced: 2025-12-24T08:56:26.703Z (6 months ago)
- Topics: github, python, vscode
- Language: Python
- Homepage: https://hrmnns.github.io/python-hello-world/
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World in Python mit VS Code und GitHub
Mit diesem Projekt wurde der Einstieg in die GitHub-Welt im Zusammenspiel mit Visual Studio Code (VS Code) und Python ausprobiert. Das Python-Skript ist überraschenderweise ein überschaubares **Hello World**-Programm.
## Voraussetzungen
- Installiertes **Python** (https://www.python.org/downloads/)
→ Bei der Installation **"Add Python to PATH"** aktivieren.
- Installiertes **Visual Studio Code** (https://code.visualstudio.com/)
- Installierte **Python-Erweiterung** in Visual Studio Code
- Installiertes **Git** (https://git-scm.com/downloads)
- GitHub-Account (https://github.com)
## Projekt in VS Code erstellen
1. Einen neuen Ordner anlegen, z. B.: ``python-hello-world``
2. Ordner in Visual Studio Code öffnen (`Datei → Ordner öffnen`)
3. Neue Datei `hello.py` anlegen
4. Inhalt einfügen: `print("Hello World")`
## Python-Interpreter in VS Code auswählen
1. `Strg + Shift + P` drücken
2. Python: Select Interpreter wählen
3. Python 3.x auswählen
## Programm ausführen
Entweder aus VS Code oder im Terminal via `python hello.py`
## Repository mit Git initialisieren
Im Terminal von Visual Studio Code ausführen:
```powershell
git init
git add .
git commit -m "Initial commit"
```
## Repository zu GitHub übertragen
Direkt über Visual Studio Code:
1. In VS Code auf Source Control (🔃) klicken
2. Button "Publish to GitHub" / "Zu GitHub veröffentlichen" auswählen
3. Repository-Namen vergeben
4. Privat oder Öffentlich auswählen
→ VS Code legt das Repository automatisch online an.
## Ergebnis
https://github.com/hrmnns/python-hello-world