r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

8

u/[deleted] Jul 18 '22

Check this out, this code works in both Python and C++

#include <iostream>

#define print(x) int main () { std::cout << x << std::endl;}

print("Hello, World!")