Created
October 20, 2020 11:13
-
-
Save DevDotKP/c78db119d6944a3ed932534332b2f95e to your computer and use it in GitHub Desktop.
Self skill level test
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="JavaScriptSettings"> | |
<option name="languageLevel" value="ES6" /> | |
</component> | |
<component name="ProjectInspectionProfilesVisibleTreeState"> | |
<entry key="Project Default"> | |
<profile-state> | |
<expanded-state> | |
<State /> | |
</expanded-state> | |
<selected-state> | |
<State> | |
<id>Angular</id> | |
</State> | |
</selected-state> | |
</profile-state> | |
</entry> | |
</component> | |
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (Python projects)" project-jdk-type="Python SDK" /> | |
</project> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectModuleManager"> | |
<modules> | |
<module fileurl="file://$PROJECT_DIR$/.idea/Python projects.iml" filepath="$PROJECT_DIR$/.idea/Python projects.iml" /> | |
</modules> | |
</component> | |
</project> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="PROJECT_TEST_RUNNER" value="Unittests" /> | |
</component> | |
</module> |
This file contains hidden or 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
import cmath | |
print('Root calculator for all real numbers.') | |
print('Add values in the format \'a + ib\'') | |
cNum = eval(input('Enter your number: ')) | |
root = cmath.sqrt((cNum)) | |
print('The root of {0} is {1} + {2}j'.format(cNum, root.real, root.imag)) |
This file contains hidden or 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
num1 = 1.0; | |
num2 = 2; | |
def add(a, b) : | |
x = a + b | |
print ( 'The sume is %.3f' %x ) | |
print ( 'Values added successfully' ) | |
print ( 'Ending with 200 OK' ) | |
num3 = input ( 'First Number: ' ) | |
num4 = input ( 'Second Number: ' ) | |
add ( num1, num2 ) | |
add ( float ( num3 ), float ( num4 ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment