#!/usr/bin/env python3
with open('file.txt') as fp:
lines = fp.read().splitlines() # get rid of \n
for k, v in d.items():
print(k, '->', v)
def inc(x):
return x+1
if __name__ == "__main__":
print(inc(argv[0]))
print('text here', end='', flush=True) #flush to be printed immediately
for count, value in enumerate(values):
print(count, value)
import sys
sys.path.insert(0, "/path/to/package")
import package