#🔒 How do I write down the topics I don't know in Python?
42 messages · Page 1 of 1 (latest)
@glossy rivet
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.
hi guys i dont know this how can i understand (dictionaries tuple set functions)
and lists
Are you following any tutorial or resource?
Follow CS50P
I couldnot find a good channel
Its a free course
And actually apply the knowledge by using it as you learn it. You won't learn anything just by watching video after video.
I agree with you
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 ")
Hey @glossy rivet!
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
This is very basic, but we all need to start somewhere.
I want to improve myself but I couldn't find a good Turkish resource.
I use translate
Ya, that's pretty niche
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ş")
we normally don't put a function inside a while loop.
this is calculator
Put the function outside of the while loop and then call the function in the loop
And the function is never called, so this code won't print anything.
Or put the loop inside the function
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:.
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
ok thanks
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.