Software Development and Programming Careers (Official Discussion Thread)

levitate

I love you, you know.
Joined
Sep 3, 2015
Messages
40,749
Reputation
6,602
Daps
155,434
Reppin
The Multiverse
what editor are you using?

Notepad++

Seems like the indentation interpretation gets messed up after loading the text into the Python shell. Or (more than likely) I'm just messing it up somewhere.

The book that I'm using spent maybe two sentences on indentation...feels like it should have been closer to a chapter dedicated to the subject.
 

Matt504

YSL as a gang must end
Joined
Sep 7, 2013
Messages
45,379
Reputation
15,012
Daps
275,092
Notepad++

Seems like the indentation interpretation gets messed up after loading the text into the Python shell. Or (more than likely) I'm just messing it up somewhere.

The book that I'm using spent maybe two sentences on indentation...feels like it should have been closer to a chapter dedicated to the subject.

you should check this out, Sublime Text - Download
 

Afro

Student of life
Supporter
Joined
Feb 8, 2016
Messages
12,334
Reputation
6,600
Daps
52,665
Do you guys recommend freecodecamp.com?

I enjoy learning front-end stuff but I'm no coder yet. Taking courses on Udemy and flew through courses on Udacity.

But this place gives you legit projects to work on :ohhh:
 

GollyImGully

Too many wavy women, gotta log outta IG
Joined
May 4, 2012
Messages
10,592
Reputation
2,359
Daps
34,793
Reppin
Brooklyn
you should check this out, Sublime Text - Download
Does input() work with sublime?

Ive been teaching myself python and when i run code with input() it doesnt seem to run the next line of code. For example in the code below after I type something it wont run the print line. Do i need to enable something in sublime?

myName = input("what is your name?: ")
print("oh so your name is " + myName)
 

Matt504

YSL as a gang must end
Joined
Sep 7, 2013
Messages
45,379
Reputation
15,012
Daps
275,092

kevm3

follower of Jesus
Supporter
Joined
May 2, 2012
Messages
16,310
Reputation
5,595
Daps
83,627
Does input() work with sublime?

Ive been teaching myself python and when i run code with input() it doesnt seem to run the next line of code. For example in the code below after I type something it wont run the print line. Do i need to enable something in sublime?

myName = input("what is your name?: ")
print("oh so your name is " + myName)

How are you running the program? In the command line and typing python filename.py?
 

Data-Hawk

I have no strings on me.
Joined
May 6, 2012
Messages
8,422
Reputation
1,995
Daps
16,318
Reppin
Oasis
great-programming-quotes.jpg


LOL. I swear I told almost this exact quote to my lead. I always try to find the best solution for the problem. But it has to be a simple solution or else prepare to work weekends..lol
 

levitate

I love you, you know.
Joined
Sep 3, 2015
Messages
40,749
Reputation
6,602
Daps
155,434
Reppin
The Multiverse
When your code works the way you want it to...
:banderas:

Got a little frustrated with an exercise last night because the book didn't really explain how to sum a particular input.
Came up with the method below wherein I continuously append a table as long as the while loop is true. I'm doing a horrible job of explaining this, just look at the code: :smile:

Code:
print "Greetings! - Welcome to the Receipt Program!"
print""
print""
table = []
while True:
    seat = raw_input("Enter the value for the seat [Or type 'q' to quit]: ")
    if seat == "q":
        break
    seat = int(seat)
    table.append(seat)
print""
print "*" * 5
print "Table Total: ${}".format(sum(table))
 
Top