diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6acf5d5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.insertSpaces": true +} diff --git a/README.md b/README.md index 530c600..73e423c 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,6 @@ - [ ] Projet 1 array : https://projects.intra.42.fr/projects/python-1-array - [ ] Projet 2 data table : https://projects.intra.42.fr/projects/python-2-datatable - [ ] Projet 3 oop : https://projects.intra.42.fr/projects/python-3-oop - - [ ] Projet 4 dod : https://projects.intra.42.fr/projects/python-4-dod \ No newline at end of file + - [ ] Projet 4 dod : https://projects.intra.42.fr/projects/python-4-dod + +>> It is also a handy desk calculator (https://docs.python.org/3.10/tutorial/appetite.html) \ No newline at end of file diff --git a/d00/ex00/Hello.py b/d00/ex00/Hello.py new file mode 100644 index 0000000..f47a0da --- /dev/null +++ b/d00/ex00/Hello.py @@ -0,0 +1,23 @@ +ft_list = ["Hello", "tata!"] +ft_tuple = ("Hello", "toto!") +ft_set = {"Hello", "tutu!"} +ft_dict = {"Hello" : "titi!"} + +# ft_list +ft_list.append("World" + ft_list[1][-1]) +ft_list.pop(1) + +# ft_tuple +ft_tuple = ft_tuple[0], "France!" + +# ft_set +# ft_set = "{'Hello', 'Paris!'}" # mouhaha +ft_set ^= {"tutu!", "Paris!"} + +# ft_dict +ft_dict["Hello"] = "42Paris!" + +print(ft_list) +print(ft_tuple) +print(ft_set) +print(ft_dict) \ No newline at end of file