No, Python cannot replace JavaScript because:
- (FRONT-END)JavaScript is browser-native and Python is not.
- (BACK-END) neither JavaScript nor Python is web-native. So, they will work in parallel. People comfortable with JavaScript will rather use Node.js, those with Python Django or Flask.
You can watch this video on Python vs JavaScript to understand more: