Created
August 5, 2020 04:54
-
-
Save santbetv/5f1ae77c4387eed1c1f3a42f1970dd1c to your computer and use it in GitHub Desktop.
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
# Default ignored files | |
/shelf/ | |
/workspace.xml | |
# Datasource local storage ignored files | |
/dataSources/ | |
/dataSources.local.xml | |
# Editor-based HTTP Client requests | |
/httpRequests/ |
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
<component name="InspectionProjectProfileManager"> | |
<settings> | |
<option name="USE_PROJECT_PROFILE" value="false" /> | |
<version value="1.0" /> | |
</settings> | |
</component> |
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="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (profundizacion_II)" 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/profundizacion_II.iml" filepath="$PROJECT_DIR$/.idea/profundizacion_II.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> | |
</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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ChangeListManager"> | |
<list default="true" id="2c3e1d35-b04d-435e-86d1-7c01148fdcb6" name="Default Changelist" comment="" /> | |
<option name="SHOW_DIALOG" value="false" /> | |
<option name="HIGHLIGHT_CONFLICTS" value="true" /> | |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | |
<option name="LAST_RESOLUTION" value="IGNORE" /> | |
</component> | |
<component name="JupyterTrust" id="28e42661-c4a6-4d2e-ae84-aa04cda82fd0" /> | |
<component name="ProjectId" id="1ffJBqkbO1qSUgBooNyKPlmDHKJ" /> | |
<component name="ProjectViewState"> | |
<option name="hideEmptyMiddlePackages" value="true" /> | |
<option name="showLibraryContents" value="true" /> | |
</component> | |
<component name="PropertiesComponent"> | |
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" /> | |
<property name="WebServerToolWindowFactoryState" value="false" /> | |
</component> | |
<component name="RunManager" selected="Python.taller_uno_profundizacion_II_error_santiago_betancur"> | |
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true"> | |
<module name="profundizacion_II" /> | |
<option name="INTERPRETER_OPTIONS" value="" /> | |
<option name="PARENT_ENVS" value="true" /> | |
<envs> | |
<env name="PYTHONUNBUFFERED" value="1" /> | |
</envs> | |
<option name="SDK_HOME" value="" /> | |
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | |
<option name="IS_MODULE_SDK" value="true" /> | |
<option name="ADD_CONTENT_ROOTS" value="true" /> | |
<option name="ADD_SOURCE_ROOTS" value="true" /> | |
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | |
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" /> | |
<option name="PARAMETERS" value="" /> | |
<option name="SHOW_COMMAND_LINE" value="false" /> | |
<option name="EMULATE_TERMINAL" value="false" /> | |
<option name="MODULE_MODE" value="false" /> | |
<option name="REDIRECT_INPUT" value="false" /> | |
<option name="INPUT_FILE" value="" /> | |
<method v="2" /> | |
</configuration> | |
<configuration name="taller_uno_profundizacion_II_error_santiago_betancur" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> | |
<module name="profundizacion_II" /> | |
<option name="INTERPRETER_OPTIONS" value="" /> | |
<option name="PARENT_ENVS" value="true" /> | |
<envs> | |
<env name="PYTHONUNBUFFERED" value="1" /> | |
</envs> | |
<option name="SDK_HOME" value="" /> | |
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | |
<option name="IS_MODULE_SDK" value="true" /> | |
<option name="ADD_CONTENT_ROOTS" value="true" /> | |
<option name="ADD_SOURCE_ROOTS" value="true" /> | |
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | |
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/taller_uno_profundizacion_II_error_santiago_betancur.py" /> | |
<option name="PARAMETERS" value="" /> | |
<option name="SHOW_COMMAND_LINE" value="false" /> | |
<option name="EMULATE_TERMINAL" value="false" /> | |
<option name="MODULE_MODE" value="false" /> | |
<option name="REDIRECT_INPUT" value="false" /> | |
<option name="INPUT_FILE" value="" /> | |
<method v="2" /> | |
</configuration> | |
<recent_temporary> | |
<list> | |
<item itemvalue="Python.taller_uno_profundizacion_II_error_santiago_betancur" /> | |
</list> | |
</recent_temporary> | |
</component> | |
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> | |
<component name="TaskManager"> | |
<task active="true" id="Default" summary="Default task"> | |
<changelist id="2c3e1d35-b04d-435e-86d1-7c01148fdcb6" name="Default Changelist" comment="" /> | |
<created>1596603080644</created> | |
<option name="number" value="Default" /> | |
<option name="presentableId" value="Default" /> | |
<updated>1596603080644</updated> | |
<workItem from="1596603088581" duration="32000" /> | |
</task> | |
<servers /> | |
</component> | |
<component name="TypeScriptGeneratedFilesManager"> | |
<option name="version" value="3" /> | |
</component> | |
<component name="WindowStateProjectService"> | |
<state width="1265" height="175" key="GridCell.Tab.0.bottom" timestamp="1596603120098"> | |
<screen x="55" y="27" width="1311" height="741" /> | |
</state> | |
<state width="1265" height="175" key="GridCell.Tab.0.bottom/55.27.1311.741/[email protected]" timestamp="1596603120098" /> | |
<state width="1265" height="175" key="GridCell.Tab.0.center" timestamp="1596603120098"> | |
<screen x="55" y="27" width="1311" height="741" /> | |
</state> | |
<state width="1265" height="175" key="GridCell.Tab.0.center/55.27.1311.741/[email protected]" timestamp="1596603120098" /> | |
<state width="1265" height="175" key="GridCell.Tab.0.left" timestamp="1596603120098"> | |
<screen x="55" y="27" width="1311" height="741" /> | |
</state> | |
<state width="1265" height="175" key="GridCell.Tab.0.left/55.27.1311.741/[email protected]" timestamp="1596603120098" /> | |
<state width="1265" height="175" key="GridCell.Tab.0.right" timestamp="1596603120098"> | |
<screen x="55" y="27" width="1311" height="741" /> | |
</state> | |
<state width="1265" height="175" key="GridCell.Tab.0.right/55.27.1311.741/[email protected]" timestamp="1596603120098" /> | |
</component> | |
<component name="XDebuggerManager"> | |
<breakpoint-manager> | |
<breakpoints> | |
<line-breakpoint enabled="true" suspend="THREAD" type="python-line"> | |
<url>file://$PROJECT_DIR$/main.py</url> | |
<line>8</line> | |
<option name="timeStamp" value="1" /> | |
</line-breakpoint> | |
</breakpoints> | |
</breakpoint-manager> | |
</component> | |
<component name="com.intellij.coverage.CoverageDataManagerImpl"> | |
<SUITE FILE_PATH="coverage/profundizacion_II$main.coverage" NAME="main Coverage Results" MODIFIED="1596603113126" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" /> | |
</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
# This is a sample Python script. | |
# Press Mayús+F10 to execute it or replace it with your code. | |
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. | |
def print_hi(name): | |
# Use a breakpoint in the code line below to debug your script. | |
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint. | |
# Press the green button in the gutter to run the script. | |
if __name__ == '__main__': | |
print_hi('PyCharm') | |
# See PyCharm help at https://www.jetbrains.com/help/pycharm/ |
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
numero_1 = 9 | |
numero_2 = 3 | |
numero_3 = 6 | |
media = (numero_1 + numero_2 + numero_3) / 3 | |
print("La nota media es", media) |
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
manzana=3000 | |
banana=4000 | |
pera=2000 | |
valorTotal=manzana+banana+pera | |
valorIva=valorTotal*0.19 | |
print("Valor total: ",valorTotal) | |
print("Valor iva: ",valorIva) |
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
#crear promedio en python | |
nota_1=2 | |
nota_2=3 | |
nota_3=5 | |
nota_final=((nota_1+nota_2+nota_3)/3) | |
print("Su nota final es: ", nota_final) | |
lista=[nota_1,nota_2,nota_3] | |
print(lista) | |
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
segundos=35000 | |
minutos=3100/60 | |
horas=(segundos*(1/60)*(1/60)) | |
print("El numero de segundos equivalen a ",horas," horas "," y ", minutos, " minutos") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment