Difference: FirstPythonPrograms (2 vs. 3)

Revision 32022-10-15 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="ProgrammingPython"

First Python programs

Introduction

Line: 58 to 57
  # The same holds for increment: a = a + 1 or a += 1

Question: How often will Hello be printed?

Added:
>
>
 
for i in range(5):          # range(x) creates a sequence of numbers starting from 0 and going up to, but not including x
    print("Hello")

I guess, we are ready for some experiments ExerciseSheets#FirstSession

Added:
>
>
After that we will see how to use Python modules, how to control some timing and how to write your own functions in Modules and Timing
 -- Uli Raich - 2022-10-14

Comments

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback