None of your code makes any sense, no computer that respects itself would let this run. Pay more attention in class.
Go learn about: - string formatting - passing around and updating variables - passing variables between functions
this is python3. shame on you if you're using 2. def NameMain(): print("Hello! Welcome to 'The Good Price Hotel' Please enter your name!\n") userName = input("Enter your name: ").upper() print ("Hello {}\n".format(userName)) return userName
spacing and indent is all fucked up, you're gonna have to figure it out
Hunter Reyes
My fucking teacher is garbage. This is my first time ever learning programming and this guy hasn't shown anything that seems of use. They make us use python 2 btw. Fucking community college bullshit.
Carter Martin
dont care bout this shit. Post more kaybear
Jordan Wilson
sucks man. if your teachers garbage and you need to learn python (its really good to know) go do some books in your free time instead of spilling seed to bowsette.
Can you clean all of your customer complaint tickets using regular expressions, classify them using conditional logic and dictionaries, and then build a model that accurately predicts why people hate your roach motel?
if you intend to do network engineering with what you're learning they're automating a lot of it in python. don't get all faggy and try to be fancy. pythons good for getting stuff done, maybe not so good for jerking yourself off in front of other fat guys about how smart you are.
the code i sent runs, you have to have your spaces wrong. 4 spaces before every line that comes after a ":"
[code] def NameMain(): print("Hello! Welcome to 'The Good Price Hotel' Please enter your name!\n") userName = input("Enter your name: ").upper() print ("Hello {}\n".format(userName)) return userName
Python2 isn't really that bad. I still use it just because linux auto-completes python instead of python3 and some vintage programs only work with python. They're pretty much the same, just need to use different libraries that will let you do the same thing. Good luck! Don't worry about people saying python is a bad program to learn first. Most of us oldfags learned bottom->up since only fortran was the most advanced language out there.
Julian Garcia
#Constants
Gratuity = .15 Tax = .11
def NameMain () : print ("Hello! Welcome to 'The Good Price Hotel' Please enter your name!") print ("") userName = input ("Enter your name: ") userName1 = userName.upper() print ("") print ("Hello", userName) print ("") return userName
def dayStayMain () : dayStay = int (input ("Please enter the number of days you will be staying at our hotel!: ")) print ("") print ("We have differnt types of rooms to choose from!") print ("Please select from our list!") print ("") print ("A. Standard room $125.95") print ("B. Deluxe Room $295.95") print ("C. Suite $895.95") print ("") return ()
def roomChooseMain () : roomChoose = input ("Please input Room type! Choose A, B, or C!: ") if roomChoose == "A" or "a" : roomCost = 125.95 roomType = "Standard room" roomType1 = roomType.lower() elif roomChoose == "B" or "b": roomCost = 295.95 roomType = "Deluxe Room" roomType1 = roomType.lower() elif roomChoose == "C" or "c" : roomCost = 895.95 roomType = "Suite" roomType1 = roomType.upper() else : print ("Incorrect room type! Please choose from A, B, or C!") print ("") return ()
Christian Nguyen
def dePositMain () : dePosit = float (input ("Please enter a deposit!: ")) return ()
Here is my full code. I am unable to display my output function. I just get this error.
Traceback (most recent call last): File "E:/School/Final Project/derp try 4..py", line 96, in displayOutput () File "E:/School/Final Project/derp try 4..py", line 75, in displayOutput print ("Customer Name: ", format (userName)) NameError: name 'userName' is not defined
Colton Myers
they learn bottom up cause their bottoms up when they're taking fat cocks.
this guys right. python2 is fine, but everyones going to 3 anyway. theres gonna be some kind of legacy support for a long ass time, but all good things have to end so might as well jump on the python 3 train eventually. once you learn one 80 percent of the time for simple scripting your just changing how you print things.
Aiden Watson
What do you gain out of this growing crystals bullshit?
Jose Price
The rest of the inputs work fine, it is getting the display to show.