Hey everyone, as you've probably inferred, I'm taking another integrated programming class. I wanted to ask about some basic information about a python program I am doing for practice (not from the class itself). I want to be told what I am doing wrong without giving away the answer please. Here is my python code:
I get this error and I didn't think it would happen:
Again could someone tell me what I'm doing wrong without explicitly giving me the answer? Thank you.
I also have some other questions about python. I know its a commonly known language in computer security. What are the prerequisites of Black Hat Python? I am doing CCNA and I want to learn networking before I learn any hacking. The next thing I'm probably going to go for is a Linux Essentials cert and I'm wondering if security+ is necessary for reading Black Hat Python. I may do security+ anyways and then right afterwards do OSCP or OSWP cert course next summer. But I may decide after I complete my CCNA and Linux Essentials material to jump into Black Hat Python. I'm probably jumping ahead of myself, but is a CCNA and Linux Essentials a good set of prerequisites for Black Hat Python?
The other question is if I was looking for a wifi hacking course that used python. I found one but it was python programming separate from hacking. I think I may have seen a course here and there but does anyone know where I can find a good wifi hacking course that uses python? I may decide to do that instead of black hat python.
Thanks everyone. I know its a fuckload of topics to answer. If you don't want to answer all of them, you don't have to. I'm not a Nazi so I don't make strict rules like that and I don't have the authority to anyways (but honestly, I'm a nice guy so I don't want to). Thanks everyone.
yours truly,
fogstone
PS
This forum kicks ass!
Code
list = [range(0,100)]
for num in list:
if num == 0:
i = 0
print(str(i) + " ")
elif num == 1:
i = 1
print(str(i) + " ")
else:
i = (list[num - 1] + list[num - 2])
print(str(i) + " ")I get this error and I didn't think it would happen:
Code
PS C:\Users\William Smith\Desktop\New CIT 270\Python> python .\exercise13.py
Traceback (most recent call last):
File ".\exercise13.py", line 10, in <module>
i = (list[num - 1] + list[num - 2])
TypeError: unsupported operand type(s) for -: 'range' and 'int'Again could someone tell me what I'm doing wrong without explicitly giving me the answer? Thank you.
I also have some other questions about python. I know its a commonly known language in computer security. What are the prerequisites of Black Hat Python? I am doing CCNA and I want to learn networking before I learn any hacking. The next thing I'm probably going to go for is a Linux Essentials cert and I'm wondering if security+ is necessary for reading Black Hat Python. I may do security+ anyways and then right afterwards do OSCP or OSWP cert course next summer. But I may decide after I complete my CCNA and Linux Essentials material to jump into Black Hat Python. I'm probably jumping ahead of myself, but is a CCNA and Linux Essentials a good set of prerequisites for Black Hat Python?
The other question is if I was looking for a wifi hacking course that used python. I found one but it was python programming separate from hacking. I think I may have seen a course here and there but does anyone know where I can find a good wifi hacking course that uses python? I may decide to do that instead of black hat python.
Thanks everyone. I know its a fuckload of topics to answer. If you don't want to answer all of them, you don't have to. I'm not a Nazi so I don't make strict rules like that and I don't have the authority to anyways (but honestly, I'm a nice guy so I don't want to). Thanks everyone.
yours truly,
fogstone
PS
This forum kicks ass!



