-
Notifications
You must be signed in to change notification settings - Fork 30
/
Ayehu GITHUB Community
42 lines (36 loc) · 1.21 KB
/
Ayehu GITHUB Community
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
The following is a Python 3.9.6 verified Activity which accepts input "Python" and returns "Hello to Python's World!!!" via invocation of the Python interpreter.
The user may modify the default value so that the result produced reads as "Hello to <user defined> World!!!".
The activity is called SamplePythonActivity. This submission is in response to Ayehu Academy Dev Ayehu GitHub Community verification of a submission.
SamplePythonActivity.json
{
"innerCode": 200,
"data": {
"name": "Display Value",
"description": "Display a value to the log",
"Timeout": null,
"class": [],
"rootSettings": {
"isCollapse": false,
"activitySettings": [
{
"value": "Python",
"required": true,
"key": "ValueToDisplay",
"label": "Value",
"labelKey": "DISPLAY_VALUE_VALUE",
"baseType": "control",
"controlType": "textbox"
}
],
"index": "1",
"label": "main",
"labelKey": null
}
},
"message": "SUCCESS"
}
SamplePythonActivity.py
Import sys
def execute(ValueToDisplay):
ValueToDisplay="Hello to "+str(ValueToDisplay)+"'s World!!!"
return ValueToDisplay