Created
September 14, 2020 20:33
-
-
Save yazilimfuryasi/f4c534a07b48a3a1b64e41c8b41ffddc to your computer and use it in GitHub Desktop.
Yazı yazma hızı hesapla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
input("Hazır olduğunuzda ENTER 'e basınız. ") | |
print("ENTER 'e basınca sonuç gösterilir") | |
print("Süre başladı") | |
basla = datetime.datetime.now() | |
yazi = input("Yazınız: ") | |
bitir = datetime.datetime.now() | |
hiz = basla - bitir | |
sure = abs(round(hiz.total_seconds(),2)) | |
ortalama = round(len(yazi) / sure,1) | |
print(f"{sure} saniyede yazdın.") | |
print(f"Saniyedeki ortalama {ortalama}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment