Python Basics
Using a web-based code editor, learn the basics of Python and put your knowledge into practice by eventually coding a short Bitcoin investment project.
Last updated
Using a web-based code editor, learn the basics of Python and put your knowledge into practice by eventually coding a short Bitcoin investment project.
Last updated
Subscription Required
False [Free]
Type
Walkthrough
Difficulty
Info
Tags
Python, Programming, Bitcoin
No answer needed
HINT: In the code editor (right-hand side), replace "Learn security with TryHackMe" with "Hello World" and click the green run code button.
HINT: In the code editor on the right, write the following: print(21 + 43)
HINT: 5 ** 2
No answer needed
No answer needed
No answer needed
shipping.py
" tab and follow the instructions to complete this task.No answer needed
shipping.py
tab, a flag will appear, which is the answer to this question.HINT: Need a hint? On the code editor, to the left of the "Run Code" button, there will be a hint button to help you get started.
shipping.py
, on line 12 (when using the Code Editor's Hint), change the customer_basket_cost
variable to 101 and re-run your code. You will get a flag (if the total cost is correct based on your code); the flag is the answer to this question.script.py
" tab and code a loop that outputs every number from 0 to 50.HINT: You can use a for loop or while loop, but it must print from 0 to 50.
HINT: Make sure your Python function has the name bitcoinToUSD
and uses the parameter names bitcoin_amount
and bitcoin_value_usd
.
bitcoin_to_usd
variable value to 25000 and see if your Python program recognises that your investment is below the $30,000 threshold.No answer needed
No answer needed
THM{PRINT_STATEMENTS}
THM{PRINT_STATEMENTS}
THM{SUBTRCT}
THM{MULTIPLICATION_PYTHON}
THM{EXP0N3NT_POWER}
THM{VARIABL3S}
THM{IF_STATEMENT_SHOPPING}
THM{MY_FIRST_APP}
THM{L00PS_WHILE_FOR}
THM{BITC0IN_INVESTOR}
THM{F1LE_R3AD}