Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5295 > unrolled thread

Re: [Python-de] Gehoertraining mit geringen Python-Kenntnissen

Started byChristopher Arndt <chris@chrisarndt.de>
First post2018-10-20 16:05 +0200
Last post2018-10-20 16:05 +0200
Articles 1 — 1 participant

Back to article view | Back to de.comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [Python-de] Gehoertraining mit geringen Python-Kenntnissen Christopher Arndt <chris@chrisarndt.de> - 2018-10-20 16:05 +0200

#5295 — Re: [Python-de] Gehoertraining mit geringen Python-Kenntnissen

FromChristopher Arndt <chris@chrisarndt.de>
Date2018-10-20 16:05 +0200
SubjectRe: [Python-de] Gehoertraining mit geringen Python-Kenntnissen
Message-ID<mailman.253.1540044381.2799.python-de@python.org>
Am 20.10.18 um 14:46 schrieb Stefan Ram:
> eingabe = input( "War dies eine Quinte (q) oder eine grosse Terz (t)? " )
> print( 'Es war', intervall * 'eine Quinte.' +( 1 - intervall )* 'eine Terz.' )
> richtige_antwort = intervall * 'q' +( 1 - intervall )* 't'
> bewertung = isclose( 0, ord( eingabe )- ord( richtige_antwort ))
> print\
> ( 'Ihre Antwort war', bewertung * 'richtig.' +( 1 - bewertung )* 'falsch.' )

Danke für die Erheiterung des Tages!

    interval = bewertung = 1
    print('Es war', interval * 'eine Finte.' +
          (1 - interval) * 'ein Scherz.')
    print('Ihr Beispiel war', bewertung * 'richtig' +
          (1 * bewertung) * ' krank.')

Chris

[toc] | [standalone]


Back to top | Article view | de.comp.lang.python


csiph-web