Python is an ethical hacker's greatest weapon because it is fast, easy to learn, and incredibly powerful.
It allows us to write custom tools in minutes that can scan networks, find hidden weaknesses, and automate complex tasks that would take hours by hand. With a massive library of ready-made code at your fingertips, you can build anything from a simple script to a sophisticated cyber kill chain.
It's why I'll be posting more python challenges.
=====
YOUR TASK:
1. Create 4 variables, using EXACTLY these names:
name -> a string
enrolled -> a boolean
age -> an integer
exam_score -> a float (must be a decimal)
2. Prints each variable next to its data type, using type().
Hint: You must call type() on all 4 variables.
3. Uses isinstance() to confirm exam_score is a float, and prints the result (True/False).
Hint: must have 2 arguments.
=====
To successfully complete this challenge look for this on line 28:
---- WRITE YOUR CODE BELOW THIS LINE ----
Input your code here,
DO NOT touch the code outside this two lines.
---- WRITE YOUR CODE ABOVE THIS LINE ----
Once your done running your code. The console underneath will tell you if you've Passed or Failed the challenge.
Goodluck
~ From: ascriptkiddie