diff --git a/README.md b/README.md new file mode 100644 index 0000000..8942a95 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Репозиторий изучения python на курсе дпо \ No newline at end of file diff --git a/scripts/funtions..py b/scripts/funtions..py new file mode 100644 index 0000000..f9ba7d2 --- /dev/null +++ b/scripts/funtions..py @@ -0,0 +1,15 @@ + + +person = { + "name":"Jeka", + "sername":"Petrov" +} + +def info(): + print(f"Name:{person['name']}, Sername:{person['sername']}") + +def get_person(): + return person + +info() +print(get_person()) \ No newline at end of file diff --git a/scripts/structures.py b/scripts/structures.py new file mode 100644 index 0000000..015af2c --- /dev/null +++ b/scripts/structures.py @@ -0,0 +1,24 @@ +arr = [1, 3, [0,1,2,3,4,5], "Jidkiy", True] + +print("\nlist") +for val in arr: + print(val) + if val == "Jidkiy": + break +else: + print("END") + +print("\ndict") +d = {"name":"Oleg", "family":"Jidkiy", "age":47,"password":"kapustaDrakon"} +for k,v in d.items(): + print(f"key:{k}, value:{v}") + +print("\nset") +s = {2,5,1,2,4,56,7,83,"Ochko"} +for val in s: + print(val) + +print("\ntuple") +t = (0, 12,"sorokdva") +for v in t: + print(v) \ No newline at end of file