Share your repls and programming experiences

← Back to all posts
shortest program
rafrafraf (130)

Here's an idea boys who can make the shortest and most efficient programs, we will post the program soon winner gets a upvote.

Commentshotnewtop
Highwayman (1305)

Why not just

print( eval( str(input("equ: "))) )
cjkosik (7)

@Highwayman wow you made him look like such a buffoon. Props to you man.
-Batman

rafrafraf (130)

@Highwayman im not doing that because its not a calculator, m program only is functional as a calculator

AllAwesome497 (356)

@cjkosik Try to keep negativity off of this forum. Currently the general forum is positive and kind, lets keep it that way.

AdCharityTester (8)

@samuelitokono we just threw html conventions out the window that's all

LittleNomster (113)

@LittleNomster i was severely depressed yesterday, sorry but um thx the key to success is throw stuff out the window, um ill stay

RogueHalo (404)

Are we talking about the least amount of lines?

rafrafraf (130)

@JacksonCowie yes but one line is the goal

evanzimmerman (41)

Check out this program I made to find complementary DNA strands and RNA strands. It's possible to shorten the program to only one line using lambdas, but I don't know how they work so I just used a normal function.
https://repl.it/@evanzimmerman/DNA-Lab

[deleted]

I made the same thing but in batch.

gibo (0)

print(eval(input("")))

xolyon (333)

For what kind of problem?

ChoppaFan2007 (13)

wow this sure is a cool post! i love it! but i love my choppa more

[deleted]
while true: exec(input())
An1ruth (4)

Done. This is my code

print(eval(input(">>>")))

[deleted]
<script>let a=prompt("equa:"); document.write(eval(a))</script>
Vandesm14 (2217)

I moved your post to Share since the Challenge board is for submitting your code during a challenge.