Skip to content

Commit 1b6563c

Browse files
committed
0.4.0 C6
1 parent c6edbf5 commit 1b6563c

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

Simpl-Py.py

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Variables + Imports
22
import wmi
3-
version = '0.4.0'
4-
updated = '4/21/2022'
5-
varName = []
6-
varVal = []
3+
version, updated = '0.4.0', '4/21/2022'
4+
varName, varVal = [], []
75

86
# Functions
97
def systemInfoDisp():
@@ -18,30 +16,24 @@ def welcomeDisp():
1816

1917
def inputHandler(code):
2018
pH = printHandler(code)
21-
if pH != None:
22-
return pH
19+
if pH != None: return pH
2320
else:
2421
vH = varHandler(code)
25-
if vH != None:
26-
return vH
22+
if vH != None: return vH
2723
else:
2824
txtH = txtHandler(code)
29-
if txtH != None:
30-
return txtH
25+
if txtH != None: return txtH
3126
else:
3227
slashH = slashHandler(code)
33-
if slashH != None:
34-
return slashH
35-
else:
36-
return ''
37-
28+
if slashH != None: return slashH
29+
else: return ''
3830

3931
def printHandler(code):
4032
# Print Functions
4133
if code == 'print':
4234
cPrint = input('Print What? ')
4335
return cPrint
44-
elif code == 'echo.print':
36+
elif code == 'print.echo':
4537
cEcho = input('Echo What? ')
4638
cEchoSpace = int(input('Echo Space? '))
4739
cEcho = cEcho + (' ' * cEchoSpace)
@@ -66,16 +58,16 @@ def printHandler(code):
6658
return (cMathInt1 / cMathInt2)
6759
else:
6860
return 'Invalid operator.'
69-
elif code == 'correct.print':
61+
elif code == 'print.correct':
7062
cCorrect = input('Correct What? ')
7163
return cCorrect.capitalize()
72-
elif code == 'lower.print':
64+
elif code == 'print.lower':
7365
cLower = input('Lower What? ')
7466
return cLower.lower()
75-
elif code == 'upper.print':
67+
elif code == 'print.upper':
7668
cUpper = input('Upper What? ')
7769
return cUpper.upper()
78-
elif code == 'backwards.print':
70+
elif code == 'print.backwards':
7971
cBackwards = input('Backwards What? ')
8072
return (cBackwards [::-1])
8173

0 commit comments

Comments
 (0)