I’m facing many problems.
First of all , i’m willing to copy paste it , until i learn the selenium and mechasomething modules so i can automatically pass the level.
So far i got to this code :
No you aint getting spoilers here
First Problem :
The variables . I found the STRINGNAME.split(‘seperator’) command on a post and couldn’t find the whole explenation of the command.
I want to set a list of variables equal to the lengh of the words after the split . But i cant split until i know the lengh of the words so i can put an according number of variables . Anyone got any idea?
Second Poblem :
After giving as an input to the program a number of words = to the lengh of the list alphabet , cause it wont work otherwise thats what happened:
Input : did, may, our, from, not, your, had, she, got, yet, own, rather, after, while, able, their, was, with, most
Output : [‘able’, ‘after’, ‘did’, ‘from’, ‘got’, ‘had’, ‘may’, ‘most’, ‘not’, ‘our’, ‘own’, ‘rather’, ‘she’, ‘their’, ‘was’, ‘while’, ‘with’, ‘yet’, ‘your’]
Is there a way i can remove the ‘ ’ ‘ ’ from the output ? If i store it as 1 big string , i wont be able to sort it , and if i split the stirng im getting such output . I’m totally lost
The problem:
a, b = [1, 2, 3]
more values than variables.
To print a array I sugest join first:
'<something>'.join(words)
Your post have a piece of solution, maybe it can be a spoiler.
?
To be honest i still dont understand how i’ll do it after i join . Anw want me to put my code as a spoiler or just remove it ?
Cause unless you make python automatically copy and post the words there no way you’re gonna hvve time to copy and paste it in time
```>>> url = [‘hackthis’, ‘co’, ****‘uk’]
print url
[‘hackthis’, ‘co’, ‘uk’]
print ‘.’.join(url)
hackthis.co.****uk```
?
Nevermind i got a way to make the code , all i need still is the speed , i figured out a module in python that will copy the answer directly for me , but cause my internet is too slow i wont be able to make it in the 5 seconds :P
Imma try a few more times if it doesnt work ill try the Selenium module
I dont know javascript and i’m planning on learning python for now soo i really wanna pass this using python :P
My answer is always expiring before like 0.1 second :
So you can try mekr your python script login in hackthis and get the words without human interact.
?
bolofecal i was trying to do it manually first .
My exams are next week soo i’ll probably pass this in 2 weeks using a request module for python
Yeah, better not post code. Even if it doesn’t work, it may contain spoilers for others.
You might want too look at https://docs.python.org/ as it has pretty extensive information on all the standard functionality and libraries. Alternatively, you can just do help(thing) on the interactive prompt (e.g. help(str.split) or help(‘bleh’.split)).
Alright i removed the code .
Anw i rewrote a totally new code that is much better and that instantly copies the answer to clipboard , but still cause of my internet i can’t make it on time .
I’ll later check how to use the Selenium module and pass this level automatically
WaRWolFz crew