Departement Informatik
Digital Medicine I
Lists, strings, loops
Hans-Joachim Böckenhauer Dennis Komm
Autumn 2020 – October 15, 2020
Digital Medicine I Lists, strings, loops Hans-Joachim Bckenhauer - - PowerPoint PPT Presentation
Departement Informatik Digital Medicine I Lists, strings, loops Hans-Joachim Bckenhauer Dennis Komm Autumn 2020 October 15, 2020 Strings Repetition Strings Strings are lists of characters (there are differences) Characters
Departement Informatik
Hans-Joachim Böckenhauer Dennis Komm
Autumn 2020 – October 15, 2020
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 1 / 40
daten = [1, 4, 6] daten2 = daten + [5] satz = "Guten Tag" satz2 = satz + ", Urs" satz3 = satz2 + "."
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 2 / 40
daten = [1, 4, 6] daten2 = daten + [5] satz = "Guten Tag" satz2 = satz + ", Urs" satz3 = satz2 + "."
daten = [2, 3] * 5 satz = "HA" * 3
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 2 / 40
0–18 19–37 38–56 57–75 76–94 95–113 114–127 Dec. Char. Dec. Char. Dec. Char. Dec. Char. Dec. Char. Dec. Char. Dec. Char. NUL 19 DC3 38 & 57 9 76 L 95 _ 114 r 1 SOH 20 DC4 39 ’ 58 : 77 M 96 ‘ 115 s 2 STX 21 NAK 40 ( 59 ; 78 N 97 a 116 t 3 ETX 22 SYN 41 ) 60 < 79 O 98 b 117 u 4 EOT 23 ETB 42 * 61 = 80 P 99 c 118 v 5 ENQ 24 CAN 43 + 62 > 81 Q 100 d 119 w 6 ACK 25 EM 44 , 63 ? 82 R 101 e 120 x 7 BEL 26 SUB 45
@ 83 S 102 f 121 y 8 BS 27 ESC 46 . 65 A 84 T 103 g 122 z 9 HT 28 FS 47 / 66 B 85 U 104 h 123 { 10 LF 29 GS 48 67 C 86 V 105 i 124 | 11 VT 30 RS 49 1 68 D 87 W 106 j 125 } 12 FF 31 US 50 2 69 E 88 X 107 k 126 ~ 13 CR 32 SP 51 3 70 F 89 Y 108 l 127 DEL 14 SO 33 ! 52 4 71 G 90 Z 109 m . . . 15 SI 34 "’ 53 5 72 H 91 [ 110 n 16 DLE 35 # 54 6 73 I 92 \ 111
DC1 36 $ 55 7 74 J 93 ] 112 p 18 DC2 37 % 56 8 75 K 94 ˆ 113 q Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 3 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 4 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 5 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 6 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 7 / 40
Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam, qui ipsorum lingua Celtae, nostra Galli appellantur. Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 7 / 40
Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam, qui ipsorum lingua Celtae, nostra Galli appellantur. Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 7 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 7 / 40
plaintext Encryption ciphertext Communication medium
(messenger, internet, . . . )
ciphertext Decryption plaintext
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 8 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 9 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 10 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 10 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 10 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 11 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 11 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 11 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 11 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 12 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 12 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 12 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 13 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 14 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 15 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 15 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 15 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 16 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 16 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 16 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 16 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 17 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 17 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 17 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 18 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 18 / 40
George Boole [Wikimedia] Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 18 / 40
George Boole [Wikimedia]
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 18 / 40
George Boole [Wikimedia]
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 18 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 19 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 20 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 21 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 22 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 22 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 22 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 23 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 23 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 24 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 24 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 24 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 25 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 26 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 26 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 26 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 27 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 28 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 28 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 28 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 28 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 28 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 29 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 29 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 29 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 30 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 31 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 31 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 32 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 33 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 33 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 33 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 33 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 34 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 34 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 34 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 34 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 35 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 35 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 36 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 36 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 37 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 38 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 39 / 40
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 40 / 40
s = 0 while True: x = int(input("Enter a positive number, abort with 0: ")) if x == 0: break s += x print(s)
Digital Medicine I – Lists, strings, loops Autumn 2020 Böckenhauer, Komm 40 / 40