Vassilios 218 Vassilios' Python Help-desk Greetings! I am starting this help-desk for anyone that is currently using Python or is interested in it. I have been using Python for around a year on or so on the daily. I have used countless libraries including Requests, Panda, the Discord API and more. I have also made my own APIs for services. Feel free to ask me any questions whether that involves an error with a library or just your code and I will do my best to assist you with your problems. I am also available in DMs if you do not wish to disclose your problem here. If you could please do use the format down below so your problem is concise and it's easier to read it. If there are long errors then please do attach them below. Also if your code includes API keys, passwords or anything of that sort, censor them. [align=center] [list] [*][b]Situation: [/b] [*][b]Question: [/b] [/list] [/align] Quote Share this post Link to post Share on other sites
thief 0 hey Vassilios. I've got a question, do you know if it's possible to (on unix) use cadaver (webdav interaction from cli) from a python script. this is modern python, 3.7 basically I need to create a loop that opens a connection via cadaver, pushes credentials, uploads a file, and then repeats the task for each item in an array. any ideas if this is possible? hey Vassilios. I've got a question, do you know if it's possible to (on unix) use cadaver (webdav interaction from cli) from a python script. this is modern python, 3.7 basically I need to create a loop that opens a connection via cadaver, pushes credentials, uploads a file, and then repeats the task for each item in an array. any ideas if this is possible? Quote Share this post Link to post Share on other sites
Vassilios 218 hey Vassilios. I've got a question, do you know if it's possible to (on unix) use cadaver (webdav interaction from cli) from a python script. this is modern python, 3.7 basically I need to create a loop that opens a connection via cadaver, pushes credentials, uploads a file, and then repeats the task for each item in an array. any ideas if this is possible? hey Vassilios. I've got a question, do you know if it's possible to (on unix) use cadaver (webdav interaction from cli) from a python script. this is modern python, 3.7 basically I need to create a loop that opens a connection via cadaver, pushes credentials, uploads a file, and then repeats the task for each item in an array. any ideas if this is possible? I haven't used Cadaver but since it uses command line you can look at the subprocess Popen function (https://docs.python.org/2/library/subprocess.html) and make a list with all the commands, then iterate over the list and use Popen to send the commands. Quote Share this post Link to post Share on other sites
FugaziNazi 0 Every time i try and open a damn .py on my rdp it insta closes but the exact same file on my main pc works Quote Share this post Link to post Share on other sites
Vassilios 218 Every time i try and open a damn .py on my rdp it insta closes but the exact same file on my main pc works It happens to me too sometimes. Try opening it from command line, just open it on the .py folder "python filename.py". Quote Share this post Link to post Share on other sites
Vassilios 218 If you need help I am your guy. 1 Quote Share this post Link to post Share on other sites
Deceit 19 Massive vouch for Vassilios. Completed an assignment I've been struggling with perfectly. Very knowledgeable, would highly recommend Quote Share this post Link to post Share on other sites
hellasida 0 import random import string High = "High" Low = "Low" yes = ('yes', 'Yes', 'y') answer = None points = 0 hol = int(input("Make Your Selection:\n1. High\n2. Low\n3. Quit\n")) randomnum = random.randint(1,1000) answer = input("Do you still want to play? Y/N ") def main(): global points global High global Low print("Any number under 500 is low, 501 to 1000 is high") hol print("points: " + str(points)) if randomnum >= 500: print(randomnum) print(High) if hol == 1: points += 1 print(points) else: points -= 1 print(points) elif randomnum <= 501: print(randomnum) print(Low) if hol == 2: points += 1 print(points) else: points -= 1 print(points) else: print(randomnum) print(High) print("points: " + points) def end(): answer = input("Do you want to play again? Y/N ") while yes in answer: if yes in answer: main() answer = input("Do you want to play again? Y/N ") if "n" in answer: break if "n" in answer: exit() main() end() So simple high low game. User picks high or low, it adds 1 or minus 1 point for correct answer. Upon executing my code it goes from the first input straight to the 2nd. And even if I put "n" or "y" in my 2nd input it gives me a name error. I'm still learning. Can you tell me where my mistakes are at? Quote Share this post Link to post Share on other sites
TeeGrizley 20 Vassilios' Python Help-desk Greetings! I am starting this help-desk for anyone that is currently using Python or is interested in it. I have been using Python for around a year on or so on the daily. I have used countless libraries including Requests, Panda, the Discord API and more. I have also made my own APIs for services. Feel free to ask me any questions whether that involves an error with a library or just your code and I will do my best to assist you with your problems. I am also available in DMs if you do not wish to disclose your problem here. If you could please do use the format down below so your problem is concise and it's easier to read it. If there are long errors then please do attach them below. Also if your code includes API keys, passwords or anything of that sort, censor them. [align=center] [list] [*][b]Situation: [/b] [*][b]Question: [/b] [/list] [/align] Any good places where I can learn it fast as fuck ? Quote Share this post Link to post Share on other sites
Vassilios 218 Vassilios' Python Help-desk Greetings! I am starting this help-desk for anyone that is currently using Python or is interested in it. I have been using Python for around a year on or so on the daily. I have used countless libraries including Requests, Panda, the Discord API and more. I have also made my own APIs for services. Feel free to ask me any questions whether that involves an error with a library or just your code and I will do my best to assist you with your problems. I am also available in DMs if you do not wish to disclose your problem here. If you could please do use the format down below so your problem is concise and it's easier to read it. If there are long errors then please do attach them below. Also if your code includes API keys, passwords or anything of that sort, censor them. [align=center] [list] [*][b]Situation: [/b] [*][b]Question: [/b] [/list] [/align] Any good places where I can learn it fast as fuck ? https://automatetheboringstuff.com/chapter0/ Quote Share this post Link to post Share on other sites
S2Q 1 how to use discord embed value in codebox like as < code > sometext < / code > ? this sample code : embed.add_field(name='SOMETEXT', value=ARSG, inline=False) value grabbed from some print function and how to implementation like this ? see screenshot sorry if my question make u confused *screenshot was made with discordbot embed generator thanks advance Quote Share this post Link to post Share on other sites