« first day (793 days earlier)      last day (1395 days later) » 

06:07
0
Q: Reset User Prompt After Timeout

Mitchell SepaughNew to Python, and StackOverflow (as a poster) but I've found answers here for other issues before. I hope someone can help. I'm working on an issue where I need to execute the following scenario: I will prompt for a user input to the screen (console window). When the prompt is displayed as a b...

 
2 hours later…
07:54
/refresh
08:09
/eval 1 + 1
/eval 2 - 2
/eval 2 * 2
/eval 2 / 2
/welcome vype
/help
Bot
Bot
@LESANG Commands : /awake /suspend /help /hang <letter> /hangman /welcome /cleanup /eval /info
08:35
/flip
/awake
/flip
Bot
Bot
@Shubhank (╯°□°)╯︵ ┻━┻
Bot
Bot
@MZeinstra (╯°□°)╯︵ ┻━┻
14 messages moved from [[iOS][Android][ChaosOverFlow]](chat.stackoverflow.com/rooms/26424/iosandroidchaosoverflow)
/oval
08:45
/middlefinger raju
Bot
Bot
( ︶︿︶)_╭∩╮
/middlefinger Shubbank
Bot
Bot
( ︶︿︶)_╭∩╮
/disapprove
Bot
Bot
¯(º_o)/¯
08:46
/middlefinger bot
Bot
Bot
( ︶︿︶)_╭∩╮
/dance
10 messages moved from [[iOS][Android][ChaosOverFlow]](chat.stackoverflow.com/rooms/26424/iosandroidchaosoverflow)
0
Q: Currency converter in Python 2.7

IvanSpI'm beginner and it is my first project on Python 2.7. My goal is script that I can run with two or three arguments. If run it with two arguments :"$ python currency.py RUB USD", output will be current RUB rate by USD base: .015169 If run with three arguments:"$ python currency.py 1000 RUB USD",...

 
3 hours later…
11:43
-3
Q: Code for Sylvester sequence

user103780I need to code the Sylvester sequence in Python. The formula for the sequence is defined as $$s_n = 1 + \prod_{i=0}^{n-1}s_i$$ Where \$s_0 = 2\$. However, I am having too much trouble writing this code in Python. Does anyone have a suggestion on how to do it? The code I have been trying to u...

 
2 hours later…
13:37
-1
Q: Adding config parser to code that uses global variables

IsaacI have a script where config items are currently stored in global variables. I would like to extract the config part into a config file that gets parsed. My code currently looks like this global_var1 = val1 global_var2 = val2 [... various functions and classes using global vars ...] if __name_...

-1
Q: Where i begain ,python program solving a linear equation Slope–intercept form with a graph?

user225923I'm a newbie programmer, originally a Mechanical Eng,I've certain linear equation Slope–intercept form i want to make a program to solve it and drawing its line any thoughts where to began,libraries ,or a bit of guidance

 
4 hours later…
17:17
-2
Q: Finding Sylvester sequence code

urpiI've written this code to calculate the Sylvester sequence, which is defined as $$s_n = s_{n-1}(s_{n-1}-1)+1$$ where \$s_0=2\$. def sylvester_term(n): """ Returns the maximum number of we will consider in a wps of dimension n >>> sylvester_term(2) 7 >>> sylvester_term(3) 43 ...

 
5 hours later…
21:50
0
Q: Saves Scores of an Arithmetic Quiz

Video AssetsThis code is part of a larger code that generates an Arithmetic Quiz, although the code I have show below just saves the score that the user got on the test and their name. When saving the code it checks if the user has taken the quiz before. If the user has taken the quiz before it saves it as '...

22:14
0
Q: Find number of neighbour pairs in the input tree

jackMy code works with small binary tree but with big binary tree with nodes = 10000 I'm not getting any output for too long For small binary tree I'm always getting correct answer and fast How can i make my program faster for big binary tree (x, y) is a neighbour pair when the depth of x and y is...

 
1 hour later…
23:34
0
Q: Python exception handling class - Getting as much details printed

KerxPhiloI'm trying to write a Exception Handling class in Python so that I can re-use. If you have any ideas on how I can improve this to output more detailed information I would appreciate it: class EHandle: @staticmethod def printit(): exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.pat...


« first day (793 days earlier)      last day (1395 days later) »