-1
votes
0answers
10 views

Iteratively copy wildcard named folder and files [on hold]

I'm new to Python. I'm running version 3.3. I'd like to iteratively copy all wildcard named folders and files from the C drive to a network share. Wildcard named folders are called "Test_1", ...
2
votes
2answers
190 views

Making a nested loop structure more pythonic

I'm looking for a review on my code. I am also looking for ways to transform this function into something more Pythonic. I'm fairly new to Python, so any advice would be appreciated. ...
7
votes
2answers
212 views

Pulling JSON using jQuery and manipulating the Front-end

My JavaScript is fairly new and want to learn new ways to create clean, fast code. Can you have a look at this code and guide me on how to optimise this code to improve my skills? I have provided the ...
8
votes
3answers
2k views

Brute force password-cracker

I am just coding some classic brute force password cracking program, just to improve myself. I've explained how my program works at the start of the code. Check some of those screenshots to ...
6
votes
2answers
4k views

Read an input text file and store the tokens in 2 different arrays

I am very new to Java so please ignore if there are obvious mistakes. If my question seems redundant then please guide me towards the correct link. However, I have surfed enough in order to find the ...
4
votes
3answers
144 views

Cleaning up code and making better loops for soccer shoot-out game

I'll start by saying I've just started with programming, and Ruby is my first language. I've made a little soccer shoot-out game. I'm having problems with the end of the code looping back to where I ...
1
vote
2answers
62 views

Managing while loop in bash

Two difference scenario in bash program, First Here i am breaking loop in function testFunc. ...
3
votes
2answers
101 views

7 for loops, 9 variables, 7 if statements, and one function

I have a large js function to calculate the number of chips, and which denomination of chips to show as the players chip stack. It's done on the base of 10. I have chip denominations worth 1, 10, ...
3
votes
2answers
1k views

Differences between using a do-while vs. while and initializing variables

When I use a do-while loop, I can create a variable userInput, but don't need to initialize it until the ...
4
votes
2answers
652 views

Improving simple C++ program using do-while loops

This is my first program written in C++. I chose to make this public in order to receive suggestions on further improvements and to know if I'm using any "forbidden" code. I'm asking because I ...
0
votes
1answer
70 views

Looping over a list [closed]

I'm new to Python, and I have a small section of code which works fine when outside of a function: ...
3
votes
4answers
254 views

Optimize beginner Python loop

I'm a rank beginner in Python, and I am working my way through various relevant OpenCourseware modules. In response to the prompt Write a procedure that takes a list of numbers, nums, and a ...