import time
String='subscribe to Akpython'
wordcount=len(String.split())
print(String)
while True:
t0=time.time()
inputtext=str(input('Enter the Sentence:'))
t1=time.time()
accuracy=len(set(inputtext.split())&set(String.split()))
accuracy=accuracy/wordcount
timetaken=t1-t0
wpm=wordcount/timetaken
print("WPM",wpm,"Accuracy",accuracy,"Timetaken",timetaken)
String='subscribe to Akpython'
wordcount=len(String.split())
print(String)
while True:
t0=time.time()
inputtext=str(input('Enter the Sentence:'))
t1=time.time()
accuracy=len(set(inputtext.split())&set(String.split()))
accuracy=accuracy/wordcount
timetaken=t1-t0
wpm=wordcount/timetaken
print("WPM",wpm,"Accuracy",accuracy,"Timetaken",timetaken)
Tech news...... 🖥
YouTube going to try hiding the dislike count on videos from public view.
The company says it will run a “small experiment” where it will try out a few different designs where dislike counts are no longer shown, however none will see the “dislike” button itself removed entirely.
Share support ✨
YouTube going to try hiding the dislike count on videos from public view.
The company says it will run a “small experiment” where it will try out a few different designs where dislike counts are no longer shown, however none will see the “dislike” button itself removed entirely.
Share support ✨
import cv2
import numpy as numpy
from matplotlib import pyplot as plt
img=cv2.imread('Cristiano_Ronaldo_2018.jpg',0)
edges=cv2.Canny(img,100,200)
plt.subplot(121),plt.imshow(img,cmap='gray')
plt.title('Original image'),plt.xticks([]),plt.yticks([])
plt.subplot(122),plt.imshow(edges,cmap='gray')
plt.title('Edge Image'),plt.xticks([]),plt.yticks([])
plt.show()
import numpy as numpy
from matplotlib import pyplot as plt
img=cv2.imread('Cristiano_Ronaldo_2018.jpg',0)
edges=cv2.Canny(img,100,200)
plt.subplot(121),plt.imshow(img,cmap='gray')
plt.title('Original image'),plt.xticks([]),plt.yticks([])
plt.subplot(122),plt.imshow(edges,cmap='gray')
plt.title('Edge Image'),plt.xticks([]),plt.yticks([])
plt.show()
AKPython Blogs: Typing speed calculator program in python [ 15 lines ]
https://akpythonblog.blogspot.com/2021/03/hello-python-programmers-this-is-ak-in_30.html?m=1
https://akpythonblog.blogspot.com/2021/03/hello-python-programmers-this-is-ak-in_30.html?m=1
Blogspot
Typing speed calculator program in python [ 15 lines ]