Hey guys, i need some help if anyone is readily available.
I am working on a program for a python class in school. I'm trying to write a basic program of shipping weights and how much the cost of each pound is. Now to the direct questions. One, am i able to put multiple if then statements into one line? Such as >6 and <10. If so, how would i do that? I will copy and paste my initial program to see if you guys can give me some help.
Print("CSC 122 Program #3")
Print("By Cody Garner")
Print("Due Sunday Oct. 11th")
W = input(" Enter the weight of the package: ")
if (w == <=2):
print("1.50")
if (w == >=2 and <=6"):
print("3.00")
if (w == >=6 and <=10"):
print("4.00")
if (w == >=10")
print("4.75")
Please help ASAP. Thanks guys.