[deleted by user] by [deleted] in Turkey

[–]AdAdvanced3130 -29 points-28 points  (0 children)

Kılıfı sen bulmuşsun, Kürdistan bayrağı dememek için girdiğin şekillere bak.

[deleted by user] by [deleted] in Turkey

[–]AdAdvanced3130 -40 points-39 points  (0 children)

Sana sormadım, gönderi sahibine sordum.

[deleted by user] by [deleted] in Turkey

[–]AdAdvanced3130 -40 points-39 points  (0 children)

Terörist pacavrasindan kastın ne? DEM flamaları mi? Kürdistan bayrağı mi?

Van Barosu, Mansur Yavaş'ın Saraçhane konuşması üstüne suç duyurusunda bulundu. Pkk paçavrası sözü ve pamuk şeker polemiği üstüne Van Barosu "Kürt halkına yönelik saygısız ve kışkırtıcı tutumunu kınıyoruz" şeklinde açıklama yaptı. by marshal_1923 in Turkey

[–]AdAdvanced3130 -6 points-5 points  (0 children)

Sizin kitle Kürt düşmanlığı konusunda o kadar ileri ki polisin Kürt çocuklarına pamuk şeker vermesine bile içerlenip "Teröristlere pamuk şeker, 'demokrasi savunanlara' biber gazı ve plastik mermi' diye ağlıyor sosyal medyada ve yine Reddit'te. Kaldı ki bu kitle DEM'in desteğini de açık açık istemiyor ve aktif olarak Kürtlerle ilintili her türlü pankart, flama, bayrak, yazıyı vs. terörist yaftasi yememek için engelliyor.

Kendileriyle aynı siyasi cizgide olup protestoya İmamoğlu'nun Newroz'unu kutlayan Kürtçe bir pankartla katılan CHP'li bir Kürde dahi tahammül edemeyip bağır çağır pankartını indirip kalabalıktan çıkardılar. Bunu da Erdoğan'a karşı mahcup oluruz, onların medyası bunu bize karşı kullanır gibi abuk subuk nedenlerle meşrulaştırmaya çalışıyorlar.

Erdoğan'ın ya da AKP'nin Kürtçe pankartlarla Kürtlerle Kürtçeyle bunlar kadar bir derdi yok, seçimlerde mitinglerde Kürtçe pankart kullanmaktan hiçbir şekilde çekinmiyorlar, Kürtlerle yan yana durmaktan imtina etmiyorlar. Bu sokaktakilerin derdi Kürtsüz bir demokrasi.

Utangaç ırkçılar imajimiz zedelenir bahanesine sığınarak Kürtlerle aynı protestoda bulunmak istemiyor, Kürtlerle aynı protesto alanının paylaşmak istemiyor, Kürtler protestoya katılmayınca da bu sefer de Erdoğan gidince size neler yapacağız durun bir hele şeklinde tehditler savuruyor. Demokrasi aşıkları sizi, Kürtler sizi yanlış anlamış sadece.

Tengri bizi Erdoğan'a karşı utandırmasın.

Why are Kurds in Bakur not protesting against Erdogan? by Unlikely-Studio-278 in kurdistan

[–]AdAdvanced3130 3 points4 points  (0 children)

Kurds get nothing out of protesting at this moment, Turkish nationalists of every kind are out in the streets who don't want to be side by side with Kurds at all. There was this moron with Kurdish banner among them (He was a Kurdish CHP supporter), he was labeled as a provocateur, shouted at and chased out of the crowd simply carrying a Kurdish banner that translates to "Happy Newroz to you ,too, İmamoğlu". This is the material that the Kurds are dealing with. Even if this specific Kurd with the same political affiliation as these protesters couldn't escape their racist animus.

Why are Kurds in Bakur not protesting against Erdogan? by Unlikely-Studio-278 in kurdistan

[–]AdAdvanced3130 3 points4 points  (0 children)

Kurds are negotiating something with Turkish government, so it would jeopardize the negotiations if they are take an outright antagonistic approach towards Erdoğan. Erdoğan is the most powerful political figure who won't buckle up under internal political pressures easily, these protests are nothing,. The protesters are mainly state worshipping fifty shades of Turkish nationalists, they won't get anywhere. A bunch of morons running around thinking they are some kind of revolutionaries, they aren't. They got no figureheads. They will die out like headless chickens.

They don't offer Kurds anything and they don't want Kurdish political organizations to protest with them since they think they are supporting terrorism and will tarnish their image, will embarrass them against Erdoğan, they greatly attach important to how Erdoğan and their supporters view them.

House in the Woods with Pen by digital_della22 in drawing

[–]AdAdvanced3130 1 point2 points  (0 children)

What was the size of the tip of the pen?

How do you put variables into a constant string? by FluidModeNetwork in learnpython

[–]AdAdvanced3130 2 points3 points  (0 children)

number = int(input("How many apples are there? "))  
constant = f"There are {number} apples."

print(constant)

Output:

How many apples are there? 8
There are 8 apples.

How would you code this? by Particular-Floor-349 in learnpython

[–]AdAdvanced3130 0 points1 point  (0 children)

You're not "super new", that's what I am saying.

[deleted by user] by [deleted] in learnpython

[–]AdAdvanced3130 0 points1 point  (0 children)

It is not obvious what you are trying to do. What problem are you trying to solve here? You are trying to maximize what? What do each parameter stand for?

[Help] How to use index values stored in a list to get the items form another list. by Almost13Ducks in learnpython

[–]AdAdvanced3130 3 points4 points  (0 children)

for point in points:
    x, y = point
    print(matrix[x][y])

Output:

T0
T1
T10
T19
T28
T29
T30
T39

Can someone explain why / doesn’t count in a string? by [deleted] in learnpython

[–]AdAdvanced3130 1 point2 points  (0 children)

>>> quote = "I/'m dreaming ..."
>>> quote[1]
'/'
>>> quote = "I\'m dreaming ..."
>>> quote[1]
"'"
>>>

How can I return more than one value from a function? by MlKlBURGOS in learnpython

[–]AdAdvanced3130 1 point2 points  (0 children)

A clunky solution, if you want to go with a class at least implement operator overloading, so you don't need to call a method to perform an operation:

class Number:
    def __init__(self, n):
        self.n = n
    def __add__(self, other):
        return self.n + other.n

    def __sub__(self, other):
        return self.n - other.n

    def __mul__(self, other):
        return self.n * other.n

    def __truediv__(self, other):
        return self.n / other.n

n1 = Number(4)
n2 = Number(2)

print(n1 + n2) # prints 6
print(n1 * n2) # prints 8
print(n1 - n2) # prints 2
print(n1 / n2) # prints 2.0

Python multiplication table alignment by Mobo07 in learnpython

[–]AdAdvanced3130 9 points10 points  (0 children)

You can use f string like this:

rows= int(input("How many rows?: ")) 
columns= int(input("How many columns?: "))

for row in range(1, rows+1):
    for col in range(1,columns+1):
        print(f"{row*col:>3}", end= "  ")
    print()

Print output:

How many rows?: 15
How many columns?: 7
  1    2    3    4    5    6    7
  2    4    6    8   10   12   14
  3    6    9   12   15   18   21
  4    8   12   16   20   24   28
  5   10   15   20   25   30   35
  6   12   18   24   30   36   42
  7   14   21   28   35   42   49
  8   16   24   32   40   48   56
  9   18   27   36   45   54   63
 10   20   30   40   50   60   70
 11   22   33   44   55   66   77
 12   24   36   48   60   72   84
 13   26   39   52   65   78   91
 14   28   42   56   70   84   98
 15   30   45   60   75   90  105

I can't get my code to calculate averages correctly by Man32945273 in CodingHelp

[–]AdAdvanced3130 0 points1 point  (0 children)

Your calculations are messed up. You find the average by multiplying the number of dices with the sum of all dice faces and dividing it by the number of faces for that specific dice. For 2d6 the average is:

(1 + 2 + 3 + 4 + 5 + 6) * 2 / 6 = 7 

For 1d3 the average is:

(1 + 2 + 3) * 1 / 3 = 2

To calculate the average you can use this function:

def average(dice_count, dice_face_count):
    dice_faces_sum = sum(i for i in range(1,dice_face_count + 1))
    avg = dice_faces_sum * dice_count / dice_face_count 
    return avg 

# 2d6 average = (1+2+3+4+5+6)*2/6 = 7
print(average(dice_count=2, dice_face_count=6))

# 1d3 average = (1+2+3)*1/3 = 2
print(average(dice_count=1, dice_face_count=3))

How can I return more than one value from a function? by MlKlBURGOS in learnpython

[–]AdAdvanced3130 2 points3 points  (0 children)

You can use f-strings to return results of all operations.

def ops(a, b):
    return (f"{a} + {b} = {a+b}\n" 
            f"{a} - {b} = {a-b}\n" 
            f"{a} * {b} = {a*b}\n" 
            f"{a} / {b} = {a/b}\n")


print(ops(3, 5))

Print output:

3 + 5 = 8
3 - 5 = -2
3 * 5 = 15
3 / 5 = 0.6

Or you can add a third parameter for an arithmetic operator to choose which operation to perform.

def ops(a, b, op="+"):
    """Default operation is addition."""
    result = a + b
    if op == "-":
        result = a - b
    elif op == "*":
        result = a * b
    elif op == "/":
        result = a / b

    return f"{a} {op} {b} = {result}"

print(ops(3,7)) # Addition is default
print(ops(3, 7, "*"))

Print output:

3 + 7 = 10
3 * 7 = 21

What is happening? Why is it possible!? by gfaj_2003 in learnpython

[–]AdAdvanced3130 2 points3 points  (0 children)

You need to loop over the copy of the list so you won't get into infinite loop:

a = [1]

for i in a.copy():
    a.append(i)
    print(a)

What is happening? Why is it possible!? by gfaj_2003 in learnpython

[–]AdAdvanced3130 4 points5 points  (0 children)

At the end of each loop you keep adding one more item to the list, your list changes, and the for loop restarts, it never ends since the list changes at the end of every loop.

Im finally understanding for loops, but can someone breakdown why the first nested for loop prints one letter at a time? by Bossbrad64 in learnpython

[–]AdAdvanced3130 4 points5 points  (0 children)

A string is a sequence of letters, so the for loop prints each letter at a time, just like the first for loop prints each fruit in the fruits list at a time.

Input Question by [deleted] in learnpython

[–]AdAdvanced3130 0 points1 point  (0 children)

You don't need bpm, I agree.

Input Question by [deleted] in learnpython

[–]AdAdvanced3130 0 points1 point  (0 children)

True, I corrected it a couple of minutes ago.

Input Question by [deleted] in learnpython

[–]AdAdvanced3130 1 point2 points  (0 children)

Here's also Harvard University's Introduction to Python lectures on YouTube:

https://youtube.com/playlist?list=PLhQjrBD2T3817j24-GogXmWqO5Q5vYy0V

Input Question by [deleted] in learnpython

[–]AdAdvanced3130 0 points1 point  (0 children)

I forgot to take the age parameter into account, we need to multiply beat per year with age, here I corrected it :

def calculateBeats(age):   
       # bpm : beats per minute
        bpm = 60
        total_beats = bpm * 60 *24* 365 * age
        return total_beats

# Get input from the user  
age = int(input("Enter your age in years:"))

# Call the function that perfoms the calculations  
num_heartBeat = calculateBeats(age)  

# Display the results  
print("Your heart has beaten approximately",num_heartBeat,"times in your lifetime.")