homehome Home chatchat Notifications


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 Mitrica
May 23, 2016 @ 6:16 pm

share Share

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.

share Share

China Now Uses 80% Artificial Sand. Here's Why That's A Bigger Deal Than It Sounds

No need to disturb water bodies for sand. We can manufacture it using rocks or mining waste — China is already doing it.

Over 2,250 Environmental Defenders Have Been Killed or Disappeared in the Last 12 Years

The latest tally from Global Witness is a grim ledger. In 2024, at least 146 people were killed or disappeared while defending land, water and forests. That brings the total to at least 2,253 deaths and disappearances since 2012, a steady toll that turns local acts of stewardship into mortal hazards. The organization’s report reads less like […]

After Charlie Kirk’s Murder, Americans Are Asking If Civil Discourse Is Even Possible Anymore

Trying to change someone’s mind can seem futile. But there are approaches to political discourse that still matter, even if they don’t instantly win someone over.

Climate Change May Have Killed More Than 16,000 People in Europe This Summer

Researchers warn that preventable heat-related deaths will continue to rise with continued fossil fuel emissions.

New research shows how Trump uses "strategic victimhood" to justify his politics

How victimhood rhetoric helped Donald Trump justify a sweeping global trade war

Biggest Modern Excavation in Tower of London Unearths the Stories of the Forgotten Inhabitants

As the dig deeper under the Tower of London they are unearthing as much history as stone.

Millions Of Users Are Turning To AI Jesus For Guidance And Experts Warn It Could Be Dangerous

AI chatbots posing as Jesus raise questions about profit, theology, and manipulation.

Can Giant Airbags Make Plane Crashes Survivable? Two Engineers Think So

Two young inventors designed an AI-powered system to cocoon planes before impact.

First Food to Boost Immunity: Why Blueberries Could Be Your Baby’s Best First Bite

Blueberries have the potential to give a sweet head start to your baby’s gut and immunity.

Ice Age People Used 32 Repeating Symbols in Caves Across the World. They May Reveal the First Steps Toward Writing

These simple dots and zigzags from 40,000 years ago may have been the world’s first symbols.