Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
talit:python_basics [2020-02-09 21:40] scatalit:python_basics [2020-02-09 21:42] (aktuell) sca
Zeile 93: Zeile 93:
  
 1. Can you use numbers or special characters like `?,!,.,\%,-` or `_` in variable names? Give it a try! 1. Can you use numbers or special characters like `?,!,.,\%,-` or `_` in variable names? Give it a try!
-<!-- You can even use numbers in variable names, as long as they are not in the beginning, e.g., `mystring13 = "Hello World"` 
-But you can NOT use special characters in variable names 
---> 
 2. How can you add a line break to a string? 2. How can you add a line break to a string?
-<!-- % mystring = "Hello\nWorld" --> 
 3. Is Python case-sensitive? 3. Is Python case-sensitive?
 4. Given a (long enough) string `s`, what do the commands 4. Given a (long enough) string `s`, what do the commands
Zeile 106: Zeile 102:
  
 ## Integers & floats ## Integers & floats
-\label{sec integers and floats} 
  
 Next, let's have a look at numbers, in particular integers and floats. Next, let's have a look at numbers, in particular integers and floats.
Zeile 295: Zeile 290:
  
  
-# Conditions \& Booleans+# Conditions & Booleans
  
 We can check if one or multiple conditions are satisfied. We can check if one or multiple conditions are satisfied.
Zeile 463: Zeile 458:
  
 # Elapsed time # Elapsed time
-\label{sec elapsed time} 
  
 If you want to test the efficiency of your code, it is useful to measure the time needed for the calculation: If you want to test the efficiency of your code, it is useful to measure the time needed for the calculation:
  • talit/python_basics.1581284400.txt.gz
  • Zuletzt geändert: 2020-02-09 21:40
  • von sca