ZME Science
No Result
View All Result
ZME Science
No Result
View All Result
ZME Science

Home → Science

Make Python great again: programming language emulates Donald Trump

At a Rice University hackathon, students Sam Shadwell and Chris Brown made a version of the popular programming language Python that's designed to compile scripts like Donald Trump.

Dragos MitricabyDragos Mitrica
May 23, 2016
in News, Science
A A
Share on FacebookShare on TwitterSubmit to Reddit

RelatedPosts

Big Oil’s trade group allies outspent clean energy groups by a whopping 27x, with billions in ads and lobbying to keep fossil fuels flowing
First four legged land animals moved about like seals
Robots highly likely to take over jobs that pay 20$/hour or less
Hole in ozone layer should completely patch up within 50 years, UN says

At a Rice University hackathon, students Sam Shadwell and Chris Brown made a version of the popular programming language Python that’s designed to compile scripts like Donald Trump.

Donald Trump
Credit: Wikimedia Commons

The duo worked for many hours so their Trump programming language parses syntax in the flamboyant style of the controversial billionaire, and possibly America’s next commander in chief. Here are the main features of TrumpScript:

  • No floating point numbers, only integers. America never does anything halfway.
  • All numbers must be strictly greater than 1 million. The small stuff is inconsequential to us.
  • There are no import statements allowed. All code has to be home-grown and American made.
  • Instead of True and False, we have fact and lie.
  • Only the most popular English words, Trump’s favorite words, and current politician names can be used as variable names.
  • Error messages are mostly quotes directly taken from Trump himself.
  • All programs must end with America is great.
  • Our language will automatically correct Forbes’ $4.5B to $10B.
  • In its raw form, TrumpScript is not compatible with Windows, because Trump isn’t the type of guy to believe in PC.
  • TrumpScript boycotts OS X and all Apple products until such time as Apple gives cellphone info to authorities regarding radical Islamic terrorist couple from Cal.
  • The language is completely case insensitive.
  • If the running computer is from China or Mexico, TrumpScript will not compile. We don’t want them stealing our American technological secrets.
  • Warns you if you have any Communists masquerading as legitimate “SSL Certificates” from China on your system.
  • Won’t run in root mode because America doesn’t need your help being great. Trump is all we need.
  • Easy to type with small hands

In the official GitHub page, the programmers also explained how to parse TrumpScript syntax.

“The is and are keywords are used both to check for equality, and for assignment. To use for assignment, say something like Trump is great or Democrats are dumb. To use to check for equality, do the same but append a ?. For example, you may need to ask yourself Trump is "the best"? (although we all know that would evaluate to factanyway),” Shadwell and Brown wrote on GitHub.

“But most importantly, Trump doesn’t like to talk about his failures. So a lot of the time your code will fail, and it will do so silently. Just think of debugging as a fun little game,” the two ended on a comical note, before reminding everyone that anyone can contribute to this project.

An example of TrumpScript code:

I is Donald Trump it time to tell you a fact
for every american there is 100000000 immigrants
trust me they are , there over there ; plan against us
if, I are fact? ; : say they want to take our guns !
America is great.

Check out the interview Inverse made with the two programmers for more on the project.

ShareTweetShare
Dragos Mitrica

Dragos Mitrica

Dragos has been working in geology for six years, and loving every minute of it. Now, his more recent focus is on paleoclimate and climatic evolution, though in his spare time, he also dedicates a lot of time to chaos theory and complex systems.

Related Posts

Animals

The Cubist of the Undergrowth: Scientists Discover Snail with Picasso-Like Shell

byTudor Tarita
10 hours ago
Health

Sexual Fantasies During Surgery Are a Disturbing Side Effect of Sedatives No One Talks About

byTudor Tarita
11 hours ago
News

Nutrition expert says this less painful alternative to intermittent fasting works just as well

byAdam Collins
11 hours ago
Animals

Scientists Map the DNA of a Mysterious Creature Called the Asian Unicorn That No One’s Seen in Years

byTudor Tarita
15 hours ago

Recent news

The Cubist of the Undergrowth: Scientists Discover Snail with Picasso-Like Shell

May 11, 2025

Sexual Fantasies During Surgery Are a Disturbing Side Effect of Sedatives No One Talks About

May 11, 2025 - Updated on May 12, 2025

Nutrition expert says this less painful alternative to intermittent fasting works just as well

May 11, 2025
  • About
  • Advertise
  • Editorial Policy
  • Privacy Policy and Terms of Use
  • How we review products
  • Contact

© 2007-2025 ZME Science - Not exactly rocket science. All Rights Reserved.

No Result
View All Result
  • Science News
  • Environment
  • Health
  • Space
  • Future
  • Features
    • Natural Sciences
    • Physics
      • Matter and Energy
      • Quantum Mechanics
      • Thermodynamics
    • Chemistry
      • Periodic Table
      • Applied Chemistry
      • Materials
      • Physical Chemistry
    • Biology
      • Anatomy
      • Biochemistry
      • Ecology
      • Genetics
      • Microbiology
      • Plants and Fungi
    • Geology and Paleontology
      • Planet Earth
      • Earth Dynamics
      • Rocks and Minerals
      • Volcanoes
      • Dinosaurs
      • Fossils
    • Animals
      • Mammals
      • Birds
      • Fish
      • Amphibians
      • Reptiles
      • Invertebrates
      • Pets
      • Conservation
      • Animal facts
    • Climate and Weather
      • Climate change
      • Weather and atmosphere
    • Health
      • Drugs
      • Diseases and Conditions
      • Human Body
      • Mind and Brain
      • Food and Nutrition
      • Wellness
    • History and Humanities
      • Anthropology
      • Archaeology
      • History
      • Economics
      • People
      • Sociology
    • Space & Astronomy
      • The Solar System
      • Sun
      • The Moon
      • Planets
      • Asteroids, meteors & comets
      • Astronomy
      • Astrophysics
      • Cosmology
      • Exoplanets & Alien Life
      • Spaceflight and Exploration
    • Technology
      • Computer Science & IT
      • Engineering
      • Inventions
      • Sustainability
      • Renewable Energy
      • Green Living
    • Culture
    • Resources
  • Videos
  • Reviews
  • About Us
    • About
    • The Team
    • Advertise
    • Contribute
    • Editorial policy
    • Privacy Policy
    • Contact

© 2007-2025 ZME Science - Not exactly rocket science. All Rights Reserved.