Get Started. It's Free
or sign up with your email address
python by Mind Map: python

1. види

1.1. цикли

1.1.1. FOR

1.1.1.1. FOR I IN RANGE (1,10)

1.1.2. WHILE

1.1.2.1. A=[] n=10 i=0 while i<n: [0,1,2,3,4,5,6,7,8,9] A=A+[i] i=i+1

1.2. розгалуження

1.2.1. IF

1.2.1.1. x = int(input(' ')) print(' ') if 3 <= old < 6: print('') else: if 6 <= x < 12: print('""') else: if 12 <= old < 16: print('""') else: if 16 <= old: print('""')

1.2.2. ELSE

1.3. введення та виведення даних

1.3.1. x=input()

1.3.2. x=int(input())

1.3.3. x=float(input())

1.4. функції

1.4.1. def якась змінна ()

1.4.1.1. import random def make_shirt(size, text): print("Ваш розмір - ",size, "Ваш надпис - <", text,">") c=random.randint(1,10000) print("Ваш номер замовлення - ", c) t=input("Ваш розмір? ") n=input("Ваш надпис? ") make_shirt(t,n) make_shirt(size="XXL", text="Bape Python!")

1.4.2. import random

1.5. математичні функції

1.5.1. import math

1.5.2. sqrt