Hallo, beste python gangers,Ik heb het volgende probleem simplistisch weergegeven in de bijlage.Ik hoop dat het niet te basic is.Als het werkt kan ik dit bij complexere programma’s toepassen.Om delen van programma’s laten herhalen kun je in python met classes werken en omdat je in python (dat afgel
Hi Marc,
here is a simple description of Python class syntax and couple of examples.
https://docs.python.org/2/tutorial/classes.html#a-first-look-at-classes
http://stackoverflow.com/questions/7993089/classes-in-python-for-a-beginner
kind regards,
Perica
2014-10-14 21:03 GMT+02:00 Marc Stevens
On Tue, Oct 14, 2014 at 09:03:56PM +0200, Marc Stevens wrote:
> Hallo, beste python gangers,
>
> Ik heb het volgende probleem simplistisch weergegeven in de bijlage.Ik hoop
> dat het niet te basic is.Als het werkt kan ik dit bij complexere programma’s
> toepassen.
> Om delen van programma’s late
On Tue, Oct 14, 2014 at 09:03:56PM +0200, Marc Stevens wrote:
> Hallo, beste python gangers,
>
> Ik heb het volgende probleem simplistisch weergegeven in de bijlage.Ik
> hoop dat het niet te basic is.Als het werkt kan ik dit bij complexere
> programma?s toepassen.
class proefje:
x=0
while
On Sun, Oct 12, 2014, at 04:14 PM, Patrick Vrijlandt wrote:
Hoi allemaal,
Onze organisatie overweegt een wiki te starten voor intern
gebruik (intranet). Met mijn python-achtergrond zou ik
natuurlijk (?) kiezen voor moin. Kennen jullie moin-gebruikers
in Nederland (aan de server kant bedoel ik)?
Verander "class" in "def" en zet er "()" achter, zodat eerste regel "def
proefje():" wordt. Gefeliciteerd, nu werkt het als method/function. Maar
het is geen class... Weet niet of Python site goede introductie heeft, maar
er zijn gratis boeken te vinden, zelfs in het nederlands; bijvoorbeeld
http:/
I can't undestand over google translate very well what you problem is but:
if a="j" will always be true,
To compare if a equals 'j' you must use ==, change it to :
if a == "j"
Also, looking at documentation for raw_input:
https://docs.python.org/2/library/functions.html#raw_input
Look at the e