#🔒 How do I write down the topics I don't know in Python?

42 messages · Page 1 of 1 (latest)

glossy rivet
#

python

graceful mesaBOT
#

@glossy rivet

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

glossy rivet
#

hi guys i dont know this how can i understand (dictionaries tuple set functions)

#

and lists

fickle urchin
glossy rivet
#

I want watch youtube videos

#

but

fickle urchin
glossy rivet
#

I couldnot find a good channel

fickle urchin
#

Its a free course

glossy rivet
#

im from turkey

#

my english level is little

faint furnace
#

And actually apply the knowledge by using it as you learn it. You won't learn anything just by watching video after video.

glossy rivet
#

I wrote a project like this, what level am I at and how

#

print("** Bankaya Hoşgeldiniz **")
bakiye = 1000

while True:
print("lütfen yapmak istediğiniz işlemi seçiniz:")
print("1:Bakire Sorgulama")
print("2:Para Yatırma")
print("3:Para Çekme")
print("4:Çıkış")

secim=input("seçiminiz (1,4): ")

if secim == "1":
    print(f"güncel bakiyeniz=",bakiye,"TL")
elif secim == "2":
    parayatirma=float(input("yatırmak istediğiniz miktarı seçiniz"))
    print("işlem sonu bakiyeniz=",bakiye+parayatirma)
elif secim == "3":
    paracekme=float(input("çekmek istediğiniz miktarı seçiniz"))
    print("işlem sonu bakiyeniz=",bakiye,"çekilen para=",paracekme)
elif secim == "4":
    print("çıkış yapılıyor iyi günler dileriz ")
graceful mesaBOT
#

Hey @glossy rivet!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
faint furnace
#

This is very basic, but we all need to start somewhere.

glossy rivet
#

I want to improve myself but I couldn't find a good Turkish resource.

#

I use translate

fickle urchin
#

Unfortunately I do not know of any Python tutorials in Turkish

#

🤷

faint furnace
#

Ya, that's pretty niche

glossy rivet
#

and I wrote this how is this

#

while True:
def hesap_makinesi():
print("** Hesap Makinesine Hoşgeldiniz **")
print("1:Toplama")
print("2:Çıkarma")
print("3:Çarpma")
print("4:Bölme")
print("5 çıkış")

    secim = input("seçiminiz: (1,4)")
    try:
        sayi1=int(input("işlem yapılacak ilk sayıyı giriniz:"))
        sayi2=int(input("işlem yapılacak ikinci sayıyı giriniz:"))

        if secim == "1":
            print("Toplama işlemini seçtiniz ve işlemin sonucu=",sayi1+sayi2)
        elif secim == "2":
            print("Çıkarma işlemini seçtiniz ve işlemin sonucu=",sayi1-sayi2)
        elif secim == "3":
            print("Çarpma işlemini seçtiniz ve işlemin sonucu=",sayi1*sayi2)
        elif secim == "4":
            print("Bölme işlemini seçtiniz ve işlemin sonucu=",sayi1/sayi2)
        elif secim == "5":
            print("çıkış yapılıyor iyi günler dileriz")
        else:
            print("geçersiz seçim")
    except:
        print("hatalı giriş")
fickle urchin
glossy rivet
#

this is calculator

fickle urchin
#

Put the function outside of the while loop and then call the function in the loop

faint furnace
#

And the function is never called, so this code won't print anything.

fickle urchin
#

Or put the loop inside the function

faint furnace
#

And one other thing to note is you should never do a plain except: . Always state the exact error that you plan to catch. In your case here, I think you intended except ValueError:.

glossy rivet
#

ok thanks

#

Do you have any suggestions for me?

#

@fickle urchin

#

@faint furnace

fickle urchin
#

I just did

#

I prefer putting the function outside of the loop, and then call the function in the loop

#

e.g.

def myFunction():
  # My function logic code here

while True:
  myFunction()
  # Don't forget to break when something happens
glossy rivet
#

ok thanks

graceful mesaBOT
#
Python help channel closed using Discord native close action

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.