mirror of
https://github.com/codeninjasuk/python-camp-24.git
synced 2024-11-22 07:18:03 -05:00
Create main.py
This commit is contained in:
parent
c8379bda0b
commit
34e6e65794
1 changed files with 12 additions and 0 deletions
12
main.py
Normal file
12
main.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import importlib
|
||||
|
||||
taskname = input("Type the Activity Number\n:")
|
||||
|
||||
print("Running Activity " + taskname.strip())
|
||||
|
||||
try:
|
||||
importlib.import_module('activity' + taskname.strip())
|
||||
except Exception as e:
|
||||
print("Error: ", e)
|
||||
|
||||
print("Execution Ends Here")
|
Loading…
Reference in a new issue