Commit 86bccbd4 authored by Børge Haugset's avatar Børge Haugset

glemte noen detaljer

parent bf3712ac
......@@ -5,7 +5,7 @@
def finn_streng_og_plass():
while True:
streng = input('Streng: ')
streng = input('Skriv inn en streng: ')
plass = int(input(f'Tall mellom 0 og {len(streng)-1}: '))
if plass > len(streng) -1:
continue
......@@ -21,4 +21,4 @@ def main():
tekst, tall = finn_streng_og_plass()
skriv_bokstav(tekst, tall)
main()
\ No newline at end of file
main()
......@@ -13,5 +13,5 @@ print(random.randrange(100,200,10)) # Akkurat som range
# Tilfeldig blant en mengde:
print(random.choice('abcdefgh'))
print(random.choice([1,2,'tre']))
\ No newline at end of file
print(random.choice('abcdefghi'))
print(random.choice([1,2,'tre']))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment