Software Development and Programming Careers (Official Discussion Thread)

levitate

I love you, you know.
Joined
Sep 3, 2015
Messages
38,885
Reputation
5,692
Daps
147,483
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,083
Reputation
14,687
Daps
272,823
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
11,503
Reputation
6,186
Daps
49,378
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,519
Reputation
2,324
Daps
34,389
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,083
Reputation
14,687
Daps
272,823

kevm3

follower of Jesus
Supporter
Joined
May 2, 2012
Messages
16,291
Reputation
5,551
Daps
83,482
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,419
Reputation
1,985
Daps
16,285
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
38,885
Reputation
5,692
Daps
147,483
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