William Reams
@y33t3rs0n
I like doing ctfs and writeups for them and I'm learning how to become an ethical hacker
0
InsertTitleHereThis is a simple game made in python3. All in the console! Check out my GitHub repo of it!
24
0
0
Using @InvisibleOne 's tutorial I added on to the project (with the help of replit and stackoverflow)
I remade his game! I tried making a ran
Python
I'm adding on to a tutorials monster-fighting type game and I'm getting two errors, one: Traceback (most recent call last):
File "main.py", line 44,
Python
I'm adding to a python tutorials project and I have an indentation error which I've tried fixing many times but failed could someone help?
Python
Wumi4 It looks like on line 47 to line 56, in the if, elif and else blocks, you use a space for indentation instead of tabs like the rest of the code. Fix that by remove the indentation space and replace it with tabs.2 years ago
I'm in a bit of a predicament, I'm trying to find if a number is greater than 4 while using ".isdigit()" in an "if" syntax?
Python
Coder100 No, you have to first convert it into an int or something first, so here's how:
num = ...
try:
if int(num) > 4:
print('greater than 4')
else:
print('not greater than 4')
except:
print('not a number')
isdigit will tell you if it is a number, but to turn it into a number, you must use int (or float to support decimals).
However, that is inefficient, because if int tries to convert and it is not a number, it will throw an error. So we utilize that.2 years ago
This is a writeup for picoCTf challenge 7 just read the comments in the repl and you'll understand
ik ik this is literally a piece of garbage that took me 15 minutes but I never really made anything on repl.it. I just learned so yeah here PS I was b
I've been trying to learn javascript for a long time but sometimes I just will forget things or not learn important things because of the lesson I'm l
InvisibleOne Sure!
//comments
let bob = 'bill' //variables
function haha() {
alert("HAHAHAHAHAHAHAHA")
}
// ^^ Functions
haha() //calling a function
//if else
let name = prompt("What's ya name!")
if (name == 'bob') {
alert("Oh my living star!")
} else {
alert("Oh... it's you...")
}
//other cool stuff:
alert("Alert is cool!")
let yorn = prompt("Is prompt cool as well?")
if (yorn == 'yes') {
console.log('Then you must thing that console.log is cool as well!') //sorta like print in python
}
So there you2 years ago
RYANTADIPARTHI here are a few tutorials:
https://www.w3schools.com/js/DEFAULT.asp
https://javascript.info/
https://www.javascripttutorial.net/2 years ago