|
| 09 May 2017 03:28 PM |
thing = str(input("hello enter teh thing: ")) if thing == "trisrockrocks": print("ur cool") elif thing == "kram": print("you are also very cool!!") else: print("get out")
|
|
|
| Report Abuse |
|
|
| |
|
Kramer777
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 14696 |
|
|
| 09 May 2017 03:35 PM |
This is lua but yeah
Using the power of gnarlyness, we shall run this script and see which the math.random gods choose local gnarlyness = math.random(1,2) if gnarlyness == 1 then print("trisrock rocks") if gnarlyness == 2 then print("Kram is gnarly") end end
I'm on my phone rn, and I don't have any lua apps to run it |
|
|
| Report Abuse |
|
|
IVIeal
|
  |
| Joined: 09 Apr 2013 |
| Total Posts: 123456 |
|
| |
|
|
| 09 May 2017 03:39 PM |
I'll run it for you.
Result: trisrocks rocks
well i guess the gods have spoken |
|
|
| Report Abuse |
|
|
Kramer777
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 14696 |
|
| |
|
|
| 09 May 2017 03:43 PM |
Yeah it was rigged, because your script is bad.
You nested the second if statement in your first one. It will never say that you're gnarly |
|
|
| Report Abuse |
|
|
Kramer777
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 14696 |
|
|
| 09 May 2017 03:45 PM |
| I typed that or on my phone at a library lol that's my excuse |
|
|
| Report Abuse |
|
|
| |
|
IVIeal
|
  |
| Joined: 09 Apr 2013 |
| Total Posts: 123456 |
|
| |
|