We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cdb0ef commit 620625bCopy full SHA for 620625b
python_exercises.py
@@ -33,6 +33,23 @@ def q4_listtuple_s():
33
print(l)
34
print(t)
35
36
+################# question 5 ###################
37
+class q5_string:
38
+ def __init__(self):
39
+ self.get_string=""
40
+ def getString(self):
41
+ self.get_string=input()
42
+ def printString(self):
43
+ print(self.get_string.upper())
44
+
45
+#test5 = q5_string()
46
+#test5.getString()
47
+#test5.printString()
48
49
+################# question 6 ###################
50
51
52
if __name__ == "__main__":
- q4_listtuple_s()
53
+ test5 = q5_string()
54
+ test5.getString()
55
+ test5.printString()
0 commit comments