-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplefunction.py
More file actions
63 lines (55 loc) · 1.42 KB
/
simplefunction.py
File metadata and controls
63 lines (55 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#Importing All Libraries
import os
import time
from time import sleep
import readline
import math
#Sample Text List
Sample1 = ['Hello World', 'Goodbye', 'Made by MCSlasher']
#Clear System
def clear():
os.system('clear')
#Simple Delay System
def delay(seconds):
time.sleep(seconds)
#Speech in Lists
def list_speech(text_list_data):
global counting_no
counting_no = 0
string_count = len(text_list_data)
counting_str = text_list_data[counting_no]
length_str = len(counting_str)
for i in range(string_count):
for i in range(length_str):
print(counting_str[i], sep='', end='', flush=True); sleep(0.075)
time.sleep(1)
clear()
counting_no = counting_no + 1
if (counting_no != string_count):
counting_str = text_list_data[counting_no]
length_str = len(counting_str)
else:
counting_no = 0
#Pre-filled input
def prefill(prefill=''):
readline.set_startup_hook(lambda: readline.insert_text(prefill))
try:
return input()
finally:
readline.set_startup_hook()
#Speech in Strs
def say(word_data):
letter_count = len(word_data)
for i in range(letter_count):
print(word_data[i], sep='', end='', flush=True); sleep(0.075)
time.sleep(1)
clear()
#Learn About Modules
def learn(module):
print(dir(module))
#say('Hello World')
#list_speech(Sample1)
#say('balalamasala')
#delay(10)
#clear()'''
learn(math)