Skip to content
Snippets Groups Projects
Commit a083f152 authored by pasi kanto's avatar pasi kanto
Browse files

tallenna

parent 69c6e8ed
No related branches found
No related tags found
Loading
import sys
import requests
if len(sys.argv) < 2:
print("Usage"+ sys.argv[0]+"<url>")
sys.exit(1)
req=requests.get("https://"sys.argv[1])
\ No newline at end of file
...@@ -69,10 +69,14 @@ while True: ...@@ -69,10 +69,14 @@ while True:
print("Oikein") print("Oikein")
pisteet+=1 pisteet+=1
if pisteet== 7:
aste+=1
else: else:
print("Väärin") print("Väärin")
print("oikea vastaus oli: "+ str(summa1))
i+=1 i+=1
...@@ -95,10 +99,14 @@ while True: ...@@ -95,10 +99,14 @@ while True:
print("Oikein") print("Oikein")
pisteet+=1 pisteet+=1
if pisteet== 7:
aste+=1
else: else:
print("Väärin") print("Väärin")
print("oikea vastaus oli: "+ str(summa1))
i+=1 i+=1
...@@ -121,10 +129,13 @@ while True: ...@@ -121,10 +129,13 @@ while True:
print("Oikein") print("Oikein")
pisteet+=1 pisteet+=1
if pisteet== 7:
aste+=1
else: else:
print("Väärin") print("Väärin")
print("oikea vastaus oli: "+ str(summa1))
i+=1 i+=1
...@@ -147,10 +158,14 @@ while True: ...@@ -147,10 +158,14 @@ while True:
print("Oikein") print("Oikein")
pisteet+=1 pisteet+=1
if pisteet== 7:
aste+=1
else: else:
print("Väärin") print("Väärin")
print("oikea vastaus oli: "+ str(summa1))
i+=1 i+=1
...@@ -173,10 +188,14 @@ while True: ...@@ -173,10 +188,14 @@ while True:
print("Oikein") print("Oikein")
pisteet+=1 pisteet+=1
if pisteet== 7:
aste+=1
else: else:
print("Väärin") print("Väärin")
print("oikea vastaus oli: "+ str(summa1))
i+=1 i+=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment