Skip to main content

TrumpScript programming language wants to make Python great again

Donald Trump
Gage Skidmore/Flickr
To inspire the youth to deal with mathematics and programming, it’s important to have role models, both good and bad. It seems then that the efforts of two students from Rice University, Chris Brown and Sam Shadwell, provide an excellent example of this. Their recently released TrumpScript is a heavily modified version of the Python programming language, created in 20 hours during a hackathon. And as you probably guessed, it’s based on the Internet’s favorite presidential candidate: Donald Trump.

Small tidbits of Trump’s political views and his character can be found, not necessarily discretely, strewn about in TrumpScript. Numbers with a value lower than 1 million are not allowed to be used in the code … because bigger numbers are better, period. This language also prevents users from using import statements. So there’s no foreign code in these programs, because who’d want to promote digital immigration? In addition, the programming language quite ingeniously forces programmers to use only certain words as variables. Included are the most popular English words and Trump’s favorite words, as well as names of current politicians.

The creators go off on a note regarding dismissing failure towards the end of their GitHub page. “ … 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.”

Incidentally, you won’t even be able to take part in this code if you’re from China or Mexico because, as the creators puts it, the code won’t comply. After all, who knows what crucial technological secrets foreigners might get their hands on?

You might be thinking “I wish I really knew how to program.” An understandable sentiment. But having studied programming for a little less than five months now, I’m already convinced that having a program not tell you when something’s wrong is a critical flaw.

Editors' Recommendations

Dan Isacsson
Being a gamer since the age of three, Dan took an interest in mobile gaming back in 2009. Since then he's been digging ever…
WeChat users file lawsuit against Trump’s unclear order to ban app in U.S.
Trump stylized image

A lawsuit filed in federal court in San Francisco aims to block President Donald Trump's executive order to ban WeChat in the U.S. due to national security concerns.

The lawsuit, filed by Chinese-American lawyers forming the U.S. WeChat Users Alliance, claims that Trump's "vaguely worded" order is unconstitutional and violates rights to free speech, Bloomberg reported.

Read more
Facebook reportedly considering ‘kill switch’ if Trump contests 2020 elections
Trump with Facebook CEO Mark Zuckerberg stylized image

Facebook is reportedly preparing for various scenarios after the 2020 presidential election -- including President Donald Trump using the social network to delegitimize the results.

Among the outcomes for which Facebook employees are planning include the possibility of Trump falsely declaring on the platform that he won the vote for another four-year term, The New York Times reported. The social network is also considering the possibility of Trump trying to invalidate the results by claiming the U.S. Postal Service lost mail-in ballots or that other groups interfered with the election, sources told the news outlet.

Read more
Trump may move against more Chinese companies after TikTok, Huawei
Trump stylized image

President Donald Trump is apparently setting his sights on more Chinese companies, possibly including technology conglomerate Alibaba, after his administration's actions against ByteDance's TikTok and Huawei.

In a news conference, Trump was asked whether he is considering bans against more Chinese companies, including Alibaba. "Well, we’re looking at other things, yes," the president replied, Reuters reported.

Read more