python Flashcards

1
Q

value

A

ارزش
مقدار

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

string

A

رشته
ریسمان

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

integer

A

عدد صحیح

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

float

A

شناور

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

variable

A

متغیر

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

statement

A

گزاره
whatever we can run.
for example :
x = 1
print(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

operator

A

عمگر
for example: + - / *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

+

A

jam

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

-

A

tafrigh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

/

A

taghsim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

//

A

taghsim bedoone ashar rond mikone be payin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

%

A

baghimandash bad az taghsim be oon adad chi mishe ?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

expression

A

عبارت

har takibi az value ha (2) variable ha (x) va operator ha (+) ra migim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

*

A

zarb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

**

A

tavan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

input

A

ورودی

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Boolean

A

harchi ke javabesh True ya false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

>

A

bozorgtar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

<

A

kuchiktar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

> =

A

bozorgtar mosavi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

<=

A

kuchiktar mosavi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

==

A

mosavi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

!=

A

na mosavi

24
Q

not

A

hamechio barax mikone

25
Q

and

A
26
Q

or

A
27
Q

if _______:
___________
elif _______:
___________
else:
___________

A
28
Q

len()

A

tool ro andaze migire

29
Q

Function

A

تابع

30
Q

def name of function():
________________
________________

name of functio() => ta sedash konim

A
31
Q

return

A

agar bekham functionam yek kari ro anjam bede va yek chizi ro be man bargardoone azash estefade mikonam

32
Q

iteration

A

تکرار

33
Q

iterate

A

تکرار کردن

34
Q

a=’salam’
a[0]. => ‘s’

A
35
Q

a= ‘salam’
a[2:4] => ‘lam’

A
36
Q

a= ‘salam’
a[:4] => shoroo ta 4

A
37
Q

a= ‘salam’
a[2:] => 2 ta payan

A
38
Q

‘a’ in ‘jadi’ => serch mikone a ro dar jadi va be soorat true ya false javab mide.

A
39
Q

‘jadi’.upper() => ‘JADI’

A
40
Q

dir(‘jadi’)

A

neshoon mide ke che method hayi dare

41
Q

‘salam jadi’.count(a)

A

chanta a dare

42
Q

a.lower()

A
43
Q

a= ‘salam’
a.find(l)
=> 2
neshoon mide l harfe chandome

A
44
Q

’ salam ‘.strip()

A

space haye dotaraf ro hazf mikone

45
Q

‘hello’.startwith(‘h’) => True

A

aya ba h shoroo mishe ?

46
Q

a.split()

A

string ro tabdil be list mikone

47
Q

’‘.join(a)

A

baraye inke azaye yek list ra bardarim va tabdil be yek string konim

48
Q

set()

A

baraye pak kardan duplicate ha, vali tartib randomi darad

49
Q

a.append()

A
50
Q

a.extend()

A
51
Q

a.sort()

A
52
Q

del l1[2]

A

ozv dovom l1 ro pak mikone

53
Q

a.pop()

A

baraxe appende, az akhar ye onsoro mikeshe biroon bad mitoonim ye kari roosh konim

54
Q

a.remove(2)

A

avalin 2yi ke too a didi pak kon

55
Q

a.split(e)

A

string o tabdil be list mikone va harja e hast miboradesh. yani az aval ta e mishe ye string too listemoon va az e be bad ye string dge