Intro to Python TryHackme

Shamsher khan
2 min readMay 22, 2021

By Shamsher khna This is a Writeup of Tryhackme room “Intro to Python”

Task 3. Mathematical Operators

Question 1. What is the name of >

Answer: greater than

Question 2. What is the name of !=

Answer: not equal to

Question 3. 1 != 0 will this return true or false (T or F)

Answer: T

Question 4. What is the name of <=

Answer: less than or equal to

Question 5. Will this sample code return truee or false

Answer: truee

Task 5. Variables and Data Types

Question 1. What data type is 13

Answer: integer

Question 2. What data type is “65”

Answer: string

Question 3. What data type is 62.193

Answer: float

Task 12. Challenge Time!

Question 1. Enter the decoded flag to complete the room!

The script decoded the string which is in the file encodedflag.txt to get the final flag. This one has been base64’d 5 times, based32’d 5 times and base16’d 5 times.

import base64file = open("encodedflag.txt","r")flag = = ""for i in range(0,5):
code = base64.b16decode(flag)
flag = code
for i in range(0,5):
code = base64.b32decode(flag)
flag = code
for i in range(0,5):
code = base64.b64decode(code)
flag = code

Please Follow on LinkedIn Twitter

Written by Shamsher khan

For more walkthroughs stay tuned…
Before you go…

Visit my other walkthrough’s:-

and thank you for taking the time to read my walkthrough.
If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share
it to help others with similar interests! + Feedback is always welcome!



Shamsher khan

Web Application Pen-tester || CTF Player || Security Analyst || Freelance Cyber Security Trainer