Search Header Logo
Data type

Data type

Assessment

Presentation

Computers

KG

Hard

Created by

Romenion Kz

Used 16+ times

FREE Resource

14 Slides • 0 Questions

1

Мәлімет типтері \ Data type

2

int= 1, 2, 10,

float= 1.5, 3.89, 5.159

str= "Hello" , "Hey", "Hi" ​

​list= [1, 5, 9, 10, ]

dict={"Hello":"Привет"}​

tuple=(1, 2, 9, 10)

boolean = True, False​

3

int= 23

float= 22, 25

print(int, float)​

Run

=> 23 22,25

4

​str = "Hello, Python!"

5

str = "Hello, Python!"

print(str[0:14])

print(str[0])

print(str[0:2])

print(str[0:3])

print(str[-1])

print(str[::2])

print(str[::-1])

print(str[7:])

print(str[-1]*8)

print(str + "Let's play together")

str = "Hello, Python!"

Hello, Python!

H

He

Hel

!

Hlo yhn

!nohtyP ,olleH

Python!

!!!!!!!!

Hello, Python!Let's play together

6

7

"+" - (2+2=4)

"-" - (2-2=0)

"*" - (2*2=4)​

"/" - (2/2=1)

"%" - (8/4=0)

"// " - (21//4=5)

"**"​- (2**2=4)

8

"%" - (8%4=0)

"// " - (21//4=5)

"**"​- (2**2=4)

print(8%4)= 0

print(​9%2)= 1

print(13%5)​= 3

print(8//4)= 2

print(​9//2)= 4

print(13//5)​= 2

print(2**3)= 8

print(​9**2)= 81

print(5**2)​= 25

9

10

import math

m=math.pow(2, 3)

print(m)

Run => 8​

11

import math

print(math.sqrt(9))

Run => 3

12

import math

print(math.ceil(4.56))

Run => 5

13

import math

print(math.floor(4.56))

Run => 4

14

Мәлімет типтері \ Data type

Show answer

Auto Play

Slide 1 / 14

SLIDE