Software Development and Programming Careers (Official Discussion Thread)

levitate

I love you, you know.
Joined
Sep 3, 2015
Messages
40,544
Reputation
6,508
Daps
154,697
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,366
Reputation
14,982
Daps
275,032
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,266
Reputation
6,580
Daps
52,434
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,591
Reputation
2,359
Daps
34,788
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,366
Reputation
14,982
Daps
275,032

kevm3

follower of Jesus
Supporter
Joined
May 2, 2012
Messages
16,301
Reputation
5,585
Daps
83,605
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,544
Reputation
6,508
Daps
154,697
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