Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Website ranking
Post: RE: Website ranking
I had a similar issue with my hobby blog about DIY woodworking. In the beginning, it was like I was writing for myself because hardly anyone visited my site. The game changer for me was when I started... |
|
AlluminumFoil |
Bar |
6 |
1,916 |
Dec-19-2023, 03:44 PM |
|
|
Thread: Using a Proxy Server
Post: RE: Using a Proxy Server
The issue might be with the proxy server you're using. I've had a similar experience where my script wasn't connecting through a proxy, and it turned out that the proxy server itself was the problem. ... |
|
AlluminumFoil |
Web Scraping & Web Development |
12 |
24,926 |
Dec-04-2023, 06:35 PM |
|
|
Thread: CLI modules
Post: RE: CLI modules
(Mar-09-2020, 07:00 PM)buran Wrote: (Mar-09-2020, 06:57 PM)ndc85430 Wrote: I'm guessing that last requirement (use on repl.it) limits you to what's in the standard library? I'm not sure those webs... |
|
AlluminumFoil |
News and Discussions |
6 |
3,867 |
Mar-10-2020, 04:49 PM |
|
|
Thread: CLI modules
Post: CLI modules.
So I've tried using curses. I want to create a game inside the console, but, I want a nice gui.. I can't find any good modules to do what I want, I can't find any tutorials that can help with this. So... |
|
AlluminumFoil |
News and Discussions |
6 |
3,867 |
Mar-09-2020, 05:49 PM |
|
|
Thread: Hi, looking for "dunder" tutorials.
Post: Hi, looking for "dunder" tutorials.
So I've used OOP a few times with classes and stuff, and I've used the __str__ and __repr__ dunders in the game I'm creating. I noticed there are more than one of these "dunders", and I don't actually... |
|
AlluminumFoil |
General Coding Help |
3 |
2,047 |
Mar-02-2020, 06:27 PM |
|
|
Thread: CLI modules
Post: CLI modules
I'm looking into making cool terminal-based GUI, and terminal-based games. But I can't find any good information or tutorials that will teach me from the start, how to use curses. I found a guy on you... |
|
AlluminumFoil |
News and Discussions |
6 |
3,867 |
Feb-26-2020, 06:27 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
Thanks a lot! I'll definitely look into that :) |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-15-2020, 07:32 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
Thank you guys! you've helped me a lot! sorry if I was annoying, I am still attempting to learn Python because I'd like to do it as a job eventually :) |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-15-2020, 07:05 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
Hello again, unfortunately, I'm still having problems with this, I don't know what I'm doing wrong at this point, but would you or anyone be able to look over my code and see what I'm doing wrong?
L... |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-14-2020, 09:58 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
and how would I call out the __str__? like I put that in my class,
def __str__(self):
return f"self.item"like when I want to append sword to the inventory list, and then print out what's above |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-13-2020, 10:14 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
Ok so the problem with that is that I have more than one one thing inside. for example, I don't have only 'item' inside the __init__, It looks more like this:
def __init__(self, item, attack, sell_pr... |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-13-2020, 09:22 PM |
|
|
Thread: Help with lists and class objects
Post: RE: Help with lists and class objects
Sorry but I don't understand what __repr__() is, would you mind explaining? and how would I add that to my code? |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-13-2020, 07:21 PM |
|
|
Thread: Help with lists and class objects
Post: Help with lists and class objects
So, I want to make an inventory system, if the user has an item, it puts it into a list called inventory. The item is an object inside a class, and if I put the object from the class into the inventor... |
|
AlluminumFoil |
General Coding Help |
15 |
5,556 |
Jan-13-2020, 06:45 PM |
|
|
Thread: Some help with Classes and the random module please? :)
Post: RE: Some help with Classes and the random module p...
Thank you! you're awesome! |
|
AlluminumFoil |
General Coding Help |
2 |
2,196 |
Jan-08-2020, 11:03 PM |
|
|
Thread: Some help with Classes and the random module please? :)
Post: Some help with Classes and the random module pleas...
So, I want to create a class, that has a few items inside. (sorry if I don't use the correct terms I'm new to Python)
class Basic():
def __init__(self, item, attack, sell_price, buy_price):
... |
|
AlluminumFoil |
General Coding Help |
2 |
2,196 |
Jan-08-2020, 10:44 PM |
|
|
Thread: I'm getting an error, please help! thanks
Post: RE: I'm getting an error, please help! thanks
|
AlluminumFoil |
General Coding Help |
4 |
1,994 |
Jan-08-2020, 09:36 PM |
|
|
Thread: I'm getting an error, please help! thanks
Post: RE: I'm getting an error, please help! thanks
Thanks for the reply, I added starting_crate_num to def start() and now it gives me another error.
Error:
Traceback (most recent call last):
File "main.py", line 103, in <module>
welcome(... |
|
AlluminumFoil |
General Coding Help |
4 |
1,994 |
Jan-08-2020, 09:13 PM |
|
|
Thread: I'm getting an error, please help! thanks
Post: I'm getting an error, please help! thanks
The problem is that I want to set a default value to the crate_num's and if they receive a crate, it adds one to the default value. In def start() you can see how I'm attempting to add a value to the ... |
|
AlluminumFoil |
General Coding Help |
4 |
1,994 |
Jan-08-2020, 08:44 PM |
|
|
Thread: Can someone please help me with my code? (sorry to ask for so much help)
Post: RE: Can someone please help me with my code? (sorr...
thank you very much! **smile** |
|
AlluminumFoil |
General Coding Help |
2 |
1,828 |
Dec-06-2019, 10:35 PM |
|
|
Thread: Can someone please help me with my code? (sorry to ask for so much help)
Post: Can someone please help me with my code? (sorry to...
So, I'm trying to make a code to dodge the monsters attack, I want to pick a random value from dodge, and then depending on the value that is picked, I want it to print whether or not you managed to d... |
|
AlluminumFoil |
General Coding Help |
2 |
1,828 |
Dec-06-2019, 09:31 PM |