From 6fef5edd51d940d24019eeeb73d38965b1c38bf1 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 26 Nov 2019 17:30:52 +0100 Subject: [PATCH] Initial commit --- .gitignore | 227 ++++++++++++++++++++++++++++++++++++++++++++++++++ cheatsheet.py | 14 ++++ exo1.py | 6 ++ exo2.py | 6 ++ exo3.py | 6 ++ exo4.py | 6 ++ exo5.py | 6 ++ exo6.py | 6 ++ 8 files changed, 277 insertions(+) create mode 100644 .gitignore create mode 100644 cheatsheet.py create mode 100644 exo1.py create mode 100644 exo2.py create mode 100644 exo3.py create mode 100644 exo4.py create mode 100644 exo5.py create mode 100644 exo6.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d40b422 --- /dev/null +++ b/.gitignore @@ -0,0 +1,227 @@ + +# Created by https://www.gitignore.io/api/osx,pycharm,python +# Edit at https://www.gitignore.io/?templates=osx,pycharm,python + +### OSX ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### PyCharm ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### PyCharm Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +.idea/**/sonarlint/ + +# SonarQube Plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator/ + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# End of https://www.gitignore.io/api/osx,pycharm,python +.idea diff --git a/cheatsheet.py b/cheatsheet.py new file mode 100644 index 0000000..9ef116c --- /dev/null +++ b/cheatsheet.py @@ -0,0 +1,14 @@ +def get_line(): + variable = input() + + +def get_line_as_list(): + variable = input().split(" ") + + +def get_line_as_int(): + variable = int(input()) + + +def get_line_as_ints(): + variable = map(int, input().split(" ")) diff --git a/exo1.py b/exo1.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo1.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/exo2.py b/exo2.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo2.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/exo3.py b/exo3.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo3.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/exo4.py b/exo4.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo4.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/exo5.py b/exo5.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo5.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/exo6.py b/exo6.py new file mode 100644 index 0000000..cd9ac48 --- /dev/null +++ b/exo6.py @@ -0,0 +1,6 @@ +def main(): + pass + + +if __name__ == "__main__": + main()