DblAAssassin's Profile User Rating: -----

Reputation: 34 Craftsman
Group:
Active Members
Active Posts:
262 (0.44 per day)
Joined:
11-May 13
Profile Views:
2,540
Last Active:
User is offline Dec 16 2014 06:42 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   DblAAssassin Working on VB.NET!!

Posts I've Made

  1. In Topic: Opening a program with python

    Posted 26 Oct 2014

    Try chrome.exe at the end of Line 2.

    os.chdir('C:\Users\Flynn\Desktop\chrome.exe')
    
    


    Also should be backslashes (\), not forward slashes (/).
  2. In Topic: Birthday List Creator using docx

    Posted 24 Oct 2014

    Typo on Line 3. Change 'fro' to 'for' :smile2:
  3. In Topic: Max value

    Posted 24 Oct 2014

    View Postandrewsw, on 24 October 2014 - 12:20 PM, said:

    View PostDblAAssassin, on 23 October 2014 - 09:48 PM, said:

    for i in answers:
        if i > maximum:
            maximum = i
            i += 1
        else:
            i += 1
    
    print(maximum)
    
    

    JFYI you shouldn't be changing the value of i (the sentinel) with this loop, and there is no need to change it anyway. You can just do:
    for i in answers:
        if i > maximum:
            maximum = i
    


    Yeah, I've been working a lot with other languges recently, and totally forgot how awesome Python loops are. Thanks for the reminder.
  4. In Topic: Two problems i'v been struggling with =___=

    Posted 23 Oct 2014

    For future reference put you code in [code] tags. Ok, so you have some code good. What from your original goal are you missing? What exactly are you having trouble with?
  5. In Topic: Max value

    Posted 23 Oct 2014

    Glad I could help! :turned:/>

    Just for the record, I was going for something like this.

    women = [158, 166, 150, 158, 152, 160, 172, 159, 158, 162]
    men = [168, 172, 181, 166, 172, 174, 165, 169, 169, 185]
    answers = []
    maximum = 0
    
    for w_height, m_height in zip(women, men):
        difference = w_height - m_height
        a_difference = abs(difference)
        answers.append(a_difference)
        print(w_height, m_height, a_difference)
    
    for i in answers:
        if i > maximum:
            maximum = i
            i += 1
        else:
            i += 1
    
    print(maximum)
    
    

My Information

Member Title:
D.I.C Regular
Age:
15 years old
Birthday:
April 6, 1999
Gender:
Location:
Austin, Texas, USA
Interests:
World Languages, Programming, Web Development, Soccer, Math!
Full Name:
Conner
Years Programming:
1
Programming Languages:
Beginner:
VB.NET, C, XML, XSL, Schema, XML DOM, Scratch

Intermediate:
Python, Javascript, jQuery, HTML, CSS

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

DblAAssassin has no profile comments yet. Why not say hello?