-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchallenges.json
More file actions
44 lines (44 loc) · 2.25 KB
/
Copy pathchallenges.json
File metadata and controls
44 lines (44 loc) · 2.25 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
[
{
"title": "free flag",
"category": "free",
"points": 100,
"description": "This is a free flag for you to use.\n\n**NOTE:**\nFlag Format is `ShulkwiSEC{free_flag}`",
"flag": "ShulkwiSEC{free_flag}"
},
{
"title": "DEBUG ME 1",
"category": "Problem Solving",
"points": 100,
"description": "Can you try to fix my code?\n\n```python\ndef gunc():\n return 0\n```\n\n###### NOTE\n**Flag Format is `ShulkwiSEC{buglinenumber_errorName}`**",
"flag": "ShulkwiSEC{2_IndentationError}"
},
{
"title": "DEBUG ME 2",
"category": "Problem Solving",
"points": 100,
"description": "Can you fix this simple logic bug?\n\n```python\ndef is_even(n):\n if n % 2 = 0:\n return True\n else:\n return False\n```\n\n**NOTE:**\nFlag Format is `ShulkwiSEC{buglinenumber_errorName}`",
"flag": "ShulkwiSEC{2_SyntaxError}"
},
{
"title": "DEBUG ME 3",
"category": "Problem Solving",
"points": 150,
"description": "The function is supposed to reverse a string… but something went wrong.\n\n```python\ndef reverse_string(s):\n for i in range(len(s)):\n s[i] = s[len(s)-i-1]\n return s\n```\n\n**NOTE:**\nFlag Format is `ShulkwiSEC{buglinenumber_errorName}`",
"flag": "ShulkwiSEC{3_TypeError}"
},
{
"title": "DEBUG ME 4",
"category": "Problem Solving",
"points": 200,
"description": "My code works… unless the input is `0`. Can you fix the logic?\n\n```python\ndef check_positive(n):\n if n:\n return \"Positive\"\n else:\n return \"Negative\"\n```\n\n**NOTE:**\nFlag Format is `ShulkwiSEC{buglinenumber_errorName}`",
"flag": "ShulkwiSEC{2_LogicError}"
},
{
"title": "DEBUG ME 5",
"category": "Problem Solving",
"points": 250,
"description": "We're trying to calculate the average… but it's giving the wrong result!\n\n```python\ndef get_average(numbers):\n total = 0\n for i in range(1, len(numbers)):\n total += numbers[i]\n return total / len(numbers)\n```\n\n**NOTE:**\nFlag Format is `ShulkwiSEC{buglinenumber_errorName}`",
"flag": "ShulkwiSEC{3_LogicError}"
}
]