Programmeren in Python/Variabelen en gegevens: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
k fout, oude versie bewerkt.
DimiC88 (overleg | bijdragen)
kGeen bewerkingssamenvatting
Regel 15:
| Titel=Variabele
| Code=
<sourcesyntaxhighlight lang="python">
name = 'Ada Lovelace'
print("Tot ziens, " + name + '!')
</syntaxhighlight>
</source>
}}
 
Regel 37:
| Titel=input()
| Code=
<sourcesyntaxhighlight lang="python">
print("Voer uw naam in alstublieft:")
name = input()
print("Hallo " + name + "!")
</syntaxhighlight>
</source>
}}
 
Regel 58:
| Titel=input()
| Code=
<sourcesyntaxhighlight lang="python">
name = input("Voer uw naam in alstublieft: ")
print("Hallo " + name + "!")
</syntaxhighlight>
</source>
}}
 
Regel 81:
| Titel=Getallen
| Code=
<sourcesyntaxhighlight lang="python">
x = 9
y = 5.2
Regel 88:
print(y)
 
</syntaxhighlight>
</source>
}}
 
Regel 129:
| Titel=Getallen
| Code=
<sourcesyntaxhighlight lang="python">
age = 31
 
print("Hallo, ik ben " + str(age) + ".")
 
</syntaxhighlight>
</source>
}}
 
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.