Python Challenge #1: Build a Simple Student Report Card
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
2
1 comment
Bree Kagwe
3
Python Challenge #1: Build a Simple Student Report Card
powered by
The Black Widow Community
skool.com/bree-1280
We built this community, so you can become an undeniable ethical hacker.
Our Core Values:
Ethics | Curiosity | Collaboration
Build your own community
Bring people together around your passion and get paid.
Powered by