Python Questions
5.34K subscribers
1 photo
7 links
Tasks for Beginners, Interview Questions, Regular expressions, simple coding problems, Quiz etc.

Useful Resources — »»» @python_resources_iGnani
Projects for Practice — »»» @python_projects_repository
Discussion Forum — »»» @python_programmers_club
Download Telegram
print('iGnani'.translate({'i': '1', 'G': '2', 'n': '3', 'a': '4', 'i': '5'}))

#What is the output. Explain translate()
Anonymous Quiz
39%
123435
20%
12345
16%
iGnani
9%
Error
5%
None of the above
12%
Show me the answer
print('pyypyypypyppy'.replace('py', 'iG', 3))

#What is the output?
Anonymous Quiz
8%
pyypyypypyppy
25%
iGyiGyiGiGpiG
35%
iGyiGyiGpyppy
11%
Error
9%
None of the above
12%
Show me the answer