Run your first Python program
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- git, python
- Área
- documentation
Línea de trabajo
Abre get-quote.py e inspecciona la línea 2; después, ejecútalo con Python 3 usando el comando mostrado en el issue. Confirma que la cita codificada directamente aparece en el terminal, comprueba git status y sigue los pasos documentados de add, commit y push para que el cambio del archivo quede registrado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Now you're ready to start coding. Let's get familiar with the files in our repo:
README.md: a markdown introduction to this projectget-quote.py: the file where we'll write our Python codequotes.txt: a text file with a list of quotes
Open up get-quote.py and comment out line 2 by removing the # from the beginning of the line. It will look like this:
print("Keep it logically awesome.")
The two spaces (or one tab) in front of the line is important. Python uses whitespace to organize code. This print line is part of the main() function. But more on that in the next step. First, let's try running that Python script.
Use the Python 3 command to run the script. From the command line, type one of the following:
python get-quote.pypython3 get-quote.py
You should see our first quote, the one hard-coded into line 2, printed out in your terminal:
Keep it logically awesome.
Push your changes
You've edited your local code, so you have a more recent version than is stored in this repository. You can check that any time by running: git status
It should show one file modified. Every time we want to send our local changes to GitHub, we need to perform three steps:
- Add the file(s) with changes:
git add get-quote.py - Commit the changes:
git commit -m "Hello World" - Push the changes:
git push
Once you've completed these steps, we'll write some more Python.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
canonical/paas-charm#368 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
addition to tracking list Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
StevenBlack/hosts#3256 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
qualcomm/qai-appbuilder#275 ·