Skip to content

Liez's Python Exercise - #183

Merged
horx merged 32 commits into
Show-Me-the-Code:masterfrom
llapuras:master
May 3, 2016
Merged

horx merged 32 commits into
Show-Me-the-Code:masterfrom
llapuras:master

Conversation

@llapuras

Copy link
Copy Markdown
Contributor

Liez is a beginner on Python.(<ゝω・)☆

@llapuras

Copy link
Copy Markdown
Contributor Author

@amenazainab12

Copy link
Copy Markdown

S = "Sand"or "sand" or "S" or "s"
G = "Gravel" or "gravel" or "G" or "g"
C = "Cement" or "cement" or "C" or "c"
sgmax=50.1
cmax=25.1
sgmin=49.0
cmin=25.1

Scontent = input("Does the sack contain Sand(S),Cement(C),Gravel(G): ")
def sackcontents(Scontent):
if Scontent == C:
Cweight = int(input(" The weight of Cement sack is?"))
if Cweight <= cmin :
print("underweight")
elif Cweight >= cmax:
print("overweight")
else:
print(Cweight,Scontent)
elif Scontent == G or S:
if GSweight <= gsmin :
print("underweight")
elif GSweight >= gsmax :
print("overweight")
else:
print(GSweight,Scontent)
else:
print("SACK REJECTED")

can anyone fix this it isnt working :(

@horx
horx merged commit 90b4373 into Show-Me-the-Code:master May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants