Ayushparikh-code / Ayushparikh-code/python-random-quote

Run your first Python program

Aberta
#2 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
1
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Now you're ready to start coding. Let's get familiar with the files in our repo:

- `README.md`: a markdown introduction to this project
- `get-quote.py`: the file where we'll write our Python code
- `quotes.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.py`
- `python3 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:

1. Add the file(s) with changes: `git add get-quote.py`
2. Commit the changes: `git commit -m "Hello World"`
3. Push the changes: `git push`

Once you've completed these steps, we'll write some more Python.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Abra get-quote.py e inspecione a linha 2; em seguida, execute-o com Python 3 usando o comando mostrado na issue. Confirme que a citação codificada diretamente aparece no terminal, verifique git status e siga as etapas documentadas de add, commit e push para que a alteração no arquivo seja registrada.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
git, python
Domínio
documentation
Tipo de issue
Documentação
Dificuldade
1/5
Tempo estimado
Menos de uma hora
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
55/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.