Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Printing strings.. help..
Post: RE: Printing strings.. help..
My program works, please tell me what you think and if I should change anything?
def reverse(text):
return text[::-1]
def upperCase(text2):
return text2.upper()
def hyphens(text3):
ret... |
|
zepel |
Homework |
3 |
3,444 |
May-17-2017, 04:28 PM |
|
|
Thread: Printing strings.. help..
Post: Printing strings.. help..
My first defined function works, however I can't get my second defined function to work. I need my main function to access the upperCase function and then print everything in all caps. For example the... |
|
zepel |
Homework |
3 |
3,444 |
May-17-2017, 03:00 PM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
The guy teaching my class said not to worry about user errors yet, so I think my program is good to go. I just need to fix the spelling error lol.
Thanks for all the help buran! |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 08:48 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
Good?
def fahrenheit(celcius):
return (celcius * 9 / 5) + 32
def main():
user = int(input("Enter a Number: "))
user1 = int(input("Enter a second number: "))
print()
pri... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 08:41 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
So I need to create a second input?
"Prompt the user for lower and upper Celsius values to display in the table.". This was the part that confused me, I wasn't sure exactly what the teacher was wanti... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 08:34 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
Thanks for all the help.. lol one last favor.. Here are my teachers instructions, I think my program fits the bill but I would greatly appreciate a second opinion, This assignment is worth 5 percent o... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 08:19 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
So in my program, "for t in range(n + 1 (user)):"
def fahrenheit(celcius):
return (celcius * 9 / 5) + 32
def main():
user = int(input("Enter a Number: "))
print("Celcius \t Far... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 08:07 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
Thanks for all your help, I'm still a tad bit confused on how to make it finish at the number I entered. I moved the input into the main function.
My teacher has his TA teach the class and we only m... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 07:56 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
How does this look?
user = int(input("Enter a Number: "))
def fahrenheit(celcius):
return (celcius * 9 / 5) + 32
def main():
print("Celcius \t Farenheit")
for t in range (u... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 07:28 AM |
|
|
Thread: Table of Temperatures... Help
Post: RE: Table of Temperatures... Help
So I need to store the users input as a variable "end = input("Enter a Number: ")) and store it in the "def t in range (start, end, increments)"? |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 06:39 AM |
|
|
Thread: Table of Temperatures... Help
Post: Table of Temperatures... Help
I'm trying to create a table that converts Celsius to Fahrenheit, I have to use the main() function and the counter-controlled loop "for". When I put in 21, the program will run all the way until 30. ... |
|
zepel |
Homework |
18 |
10,770 |
May-07-2017, 06:29 AM |
|
|
Thread: Distance between two points!
Post: RE: Distance between two points!
I tried running my code but the page comes up blank, I'm a second week programming student and my instructor is confusing the hell out of everybody in my class. Gahhhhh!!!
Here are the exact instruct... |
|
zepel |
Homework |
14 |
33,808 |
Apr-28-2017, 02:52 AM |
|
|
Thread: Distance between two points!
Post: RE: Distance between two points!
Yes, latitude and longitude. |
|
zepel |
Homework |
14 |
33,808 |
Apr-28-2017, 02:26 AM |
|
|
Thread: Distance between two points!
Post: Distance between two points!
Help! I'm a total newbie when it comes to programming, I need my program to calculate the distance between two points. I got the first part of my assignment done, I created a function with the distanc... |
|
zepel |
Homework |
14 |
33,808 |
Apr-28-2017, 01:51 AM |
|
|
Thread: Help? Letter Grade assignment..
Post: Help? Letter Grade assignment..
I need an error message to display to the user if they try to enter a score over 100 and I need to use the sys.exit() to exit the program gracefully if any errors are detected. I need to do this in an... |
|
zepel |
Homework |
3 |
4,594 |
Apr-22-2017, 07:01 PM |
|
|
Thread: New to Coding, help please?!
Post: RE: New to Coding, help please?!
Wow, I totally spaced it on the math portion. Thanks for much for your help!
Also, how do you post your python code in the box? |
|
zepel |
Homework |
6 |
5,371 |
Apr-20-2017, 04:15 AM |
|
|
Thread: New to Coding, help please?!
Post: RE: New to Coding, help please?!
age = int(input("Enter your age: "))
if age <= -1:
print ("You are time traveler of age", age)
elif age >= 0 and age <= 1:
print("You are a baby of age",age)
elif age < 3:
pr... |
|
zepel |
Homework |
6 |
5,371 |
Apr-20-2017, 03:29 AM |
|
|
Thread: New to Coding, help please?!
Post: New to Coding, help please?!
Write a python program that prompts the user to enter in their age. Convert the keyboard input into an integer using the int( ) function and store the result into a variable. Don't worry about your pr... |
|
zepel |
Homework |
6 |
5,371 |
Apr-20-2017, 01:20 AM |