Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: February 10, 2025, 5:31 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Project Euler
#15
RE: Project Euler
Wait, you can declare variables in Python without initializing them.

Code:
def main():
    a = 5
    print(a)

main()

In other languages you'll at least have to declare the variable type, whereas Python will determine the variable type automatically. At least the packaged compiler/shell (IDLE) will.
"There remain four irreducible objections to religious faith: that it wholly misrepresents the origins of man and the cosmos, that because of this original error it manages to combine the maximum servility with the maximum of solipsism, that it is both the result and the cause of dangerous sexual repression, and that it is ultimately grounded on wish-thinking." ~Christopher Hitchens, god is not Great

PM me your email address to join the Slack chat! I'll give you a taco(or five) if you join! --->There's an app and everything!<---
Reply



Messages In This Thread
Project Euler - by Grandizer - June 26, 2016 at 12:41 am
RE: Project Euler - by SteelCurtain - June 26, 2016 at 4:35 am
RE: Project Euler - by Grandizer - June 26, 2016 at 4:39 am
RE: Project Euler - by SteelCurtain - June 26, 2016 at 4:40 am
RE: Project Euler - by Grandizer - June 26, 2016 at 9:02 am
RE: Project Euler - by SteelCurtain - June 28, 2016 at 4:58 am
RE: Project Euler - by Grandizer - June 28, 2016 at 11:50 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 1:52 am
RE: Project Euler - by Grandizer - July 3, 2016 at 2:46 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 6:20 am
RE: Project Euler - by Grandizer - July 3, 2016 at 6:27 am
RE: Project Euler - by Grandizer - July 3, 2016 at 6:32 am
RE: Project Euler - by A Handmaid - July 3, 2016 at 6:37 am
RE: Project Euler - by Grandizer - July 3, 2016 at 7:37 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 7:44 am
RE: Project Euler - by Grandizer - July 3, 2016 at 7:57 am
RE: Project Euler - by A Handmaid - July 3, 2016 at 8:02 am
RE: Project Euler - by Grandizer - July 3, 2016 at 8:06 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 8:02 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 8:16 am
RE: Project Euler - by Grandizer - July 3, 2016 at 8:58 am
RE: Project Euler - by SteelCurtain - July 3, 2016 at 10:24 pm
RE: Project Euler - by Grandizer - July 4, 2016 at 2:05 am
RE: Project Euler - by SteelCurtain - July 4, 2016 at 2:15 am
RE: Project Euler - by SteelCurtain - July 4, 2016 at 4:47 am
RE: Project Euler - by Grandizer - July 4, 2016 at 5:24 am
RE: Project Euler - by SteelCurtain - July 4, 2016 at 5:31 am
RE: Project Euler - by Grandizer - July 4, 2016 at 5:36 am
RE: Project Euler - by Grandizer - July 5, 2016 at 5:36 pm

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Euler] Need clarification shadowdancer 11 4154 November 22, 2011 at 2:17 am
Last Post: shadowdancer



Users browsing this thread: 3 Guest(s)