coding in python ,c and c++.