Last active
March 17, 2020 05:42
-
-
Save techsharif/521ad64c16e5e0b00b97c2c21a70399d to your computer and use it in GitHub Desktop.
Python Litmus Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Many of us want to learn more advance topics/tech using python as a main tool. ex: django, DS | |
But I think minimum level of expertise on python is required to learn advance topics. | |
This small test can help you to take the decision. Is it ok for you to learn new topics or you need to focus more on python? | |
If you can solve this problem "With just one line of code". You are 60% of to learn more advance topics. | |
If you have any questions. contact: sharif.cse.hstu@gmail.com | |
If you found this helpful don't forget to give a star. | |
techsharif.com | |
""" | |
# the return value of result() will be a string in this format | |
# <line number> <space> <line sum> <new line> | |
""" | |
1 3 | |
2 7 | |
3 11 | |
4 15 | |
""" | |
# Main code here | |
def result(): | |
data = """ | |
1 2 | |
3 4 | |
5 6 | |
7 8 | |
""" | |
return None # complete it With just one line of code | |
if __name__ == "__main__": | |
print(result()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment