Skip to content
Snippets Groups Projects
Commit 86bccbd4 authored by Børge Haugset's avatar Børge Haugset
Browse files

glemte noen detaljer

parent bf3712ac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -13,5 +13,5 @@ print(random.randrange(100,200,10)) # Akkurat som range
# Tilfeldig blant en mengde:
print(random.choice('abcdefgh'))
print(random.choice('abcdefghi'))
print(random.choice([1,2,'tre']))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment