29
loading...
This website collects cookies to deliver better user experience
#import pywhatkit
import pywhatkit as kit
#Get information about python in 5 lines/paragraphs
kit.info('python', 5)
Python is an interpreted high-level general-purpose programming language. Its design philosophy emphasizes code readability with its use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.Guido van Rossum began working on Python in the late 1980s, as a successor to the ABC programming language, and first released it in 1991 as Python 0.9.0.
import pywhatkit as kit
sourced = kit.info('python', 5)
print('\n'*2)
print(type(sourced))
#import wikipedia
import wikipedia as wk
# #create a function to ask for language, word and sentence lines. Use the inputs to generate basic information
# for the word entered
def find():
while True:
try:
lang = input('Please choose a language: "fr" for france, "es" for spanish and "en" for english:\n')
wk.set_lang(lang)
word, sentence = input('Enter a word, space, followed by the number of lines you want(in figures):\n ').split()
print(f'\nSearching wikipedia for {word}...\n')
sourced = wk.summary(word, int(sentence))
print(sourced)
except:
print('Please make sure you entered a wikipedia compatible valid information with the following format: Programming 5. Separating the inputs with a space only. Also make sure you selected a valid LANGUAGE!')
else:
print('\n......................................................\nResearch done!')
break
#run the function
find()