8000 Update 21_Variables.md by angeloturco · Pull Request #13 · pythonitalia/python-abc · GitHub
[go: up one dir, main page]

Skip to content

Update 21_Variables.md #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
2 changes: 1 addition & 1 deletion docs/Pyllole/21_Variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Il doppio carattere uguale `==` è sempre un operatore di uguaglianza, non una a

Il _casting_ in programmazione è la conversione di un dato da un tipo ad un altro.

Potremmo avere una variabile a cui è assegnato il valore `"123", anche se sembra un numero, come già suggeriscono le virgolette, in realtà si tratta di una stringa (magari acquisita tramite [input](Input.md)).
Potremmo avere una variabile a cui è assegnato il valore `"123", anche se sembra un numero, come già suggeriscono le virgolette, in realtà si tratta di una stringa (magari acquisita tramite [input](https://github.com/pythonitalia/python-abc/blob/master/docs/Pyllole/25_Input.md).

Se volessi trattare questo `"123"` come se fosse un numero, e sommargline ad esempio un altro, dovrei prima trasformalo in un intero.
Per convertire in intero una stringa, o un float, si utilizza la funzione `int()`.
Expand Down
0