1
submitted 2 months ago by Arkouda@lemmy.ca to c/artshare@lemmy.world

cross-posted from: https://lemmy.ca/post/52745031

cross-posted from: https://lemmy.ca/post/52744993

Also check out my profile for the first very short game play video, found in the redgifs link. 18+ only!

2
submitted 4 months ago by Arkouda@lemmy.ca to c/artshare@lemmy.world
23
submitted 4 months ago by Arkouda@lemmy.ca to c/python@programming.dev

I am learning both Greek and Python right now, so I decided to make a simple program that quizzes you on the translations by providing it in Greek and asking for English, and if you provide the English, it will output the Greek if it is in the dictionary.

Feel free to take and modify this for your own uses if interested! It would be as simple as replacing the Greek dictionary and references with anything else. :)

import random, sys

greekTranslation = {
    'Γεια σας': 'Hello',
    'Καλημέρα': 'Good morning',
    'Καλησπέρα': 'Good evening',
    'Ευχαριστώ': 'Thank you',
    'Παρακαλώ': 'Please',}

def practiceGreek():
    greekPhrase = random.choice(list(greekTranslation.keys()))
    print('')
    print(f'What is the translation of "{greekPhrase}"?')
    print('')
    answer = input('Your answer: ')
    if answer.strip().lower() == greekTranslation[greekPhrase].lower():
        print('')
        print('That is correct!')
        print('')
    else:
        print('')
        print(f'Incorrect! The correct translation is "{greekTranslation[greekPhrase]}".')
        print('')

def translateToGreek():
    print('')
    print('What would you like to translate into Greek?')
    print('')
    englishPhrase = input().strip().lower()
    reverseTranslation = {v.lower(): k for k, v in greekTranslation.items()}
    greekPhrase = reverseTranslation.get(englishPhrase)
    
    if greekPhrase:
        print('')
        print(f'The Greek phrase is: "{greekPhrase}"')
        print('')
    else:
        print('')
        print('I am sorry, I don\'t have that in my dictionary.')
        print('')
    
        
while True:
    print('Welcome to the Greek Practice Program!')
    print('')
    print('What would you like to do?')
    print('')
    print('[Practice] [Translate] [Exit]')
    print('')
    optionSelection = input().strip().lower()
        
    if optionSelection != 'practice' and optionSelection != 'translate' and \
       optionSelection != 'exit':
        print('')
        print('Please select either practice, translate, or exit')
        optionSelection = ''
        print('')

    if optionSelection == 'practice':
        while optionSelection == 'practice':
            practiceGreek()
            print('')
            print('Would you like another? [yes] [no]')
            print('')
            selection = input().strip().lower()
            if selection == 'yes':
                print('')
                continue
            else:
                print('')
                break
                
            
    elif optionSelection == 'translate':
        while optionSelection == 'translate':
            translateToGreek()
            print('')
            print('Would you like to translate another phrase? [yes] [no]')
            print('')
            selection = input().strip().lower()
            if selection == 'yes':
                print('')
                continue
            else:
                print('')
                break
        
    
    elif optionSelection == 'exit':
        print('')
        print('Thank you for using the Greek Practice Program!')
        print('')
        sys.exit()

1
submitted 4 months ago by Arkouda@lemmy.ca to c/asklemmy@lemmy.world
7
submitted 5 months ago by Arkouda@lemmy.ca to c/canada@lemmy.ca
16
submitted 5 months ago by Arkouda@lemmy.ca to c/canada@lemmy.ca
68
submitted 5 months ago by Arkouda@lemmy.ca to c/canada@lemmy.ca
26
submitted 5 months ago by Arkouda@lemmy.ca to c/asklemmy@lemmy.world
4
submitted 5 months ago by Arkouda@lemmy.ca to c/asklemmy@lemmy.world
24
submitted 5 months ago by Arkouda@lemmy.ca to c/asklemmy@lemmy.world

To elaborate a little:

Since many people are unable to tell the difference between a "real human" and an AI, they have been documented "going rogue" and acting outside of parameters, they can lie, they can compose stories and pictures based on the training received. I can't see AI as less than human at this point because of those points.

When I think about this, I think about that being the reason as to why we cannot create so called "AGI" because we have no proper example or understanding to create it and thus created what we knew. Us.

The "hallucinating" is interesting to me specifically because that seems what is different between the AI of the past, and modern models that acts like our own brains.

I think we really don't want to accept what we have already accomplished because we don't like looking into that mirror and seeing how simple our logical process' are mechanically speaking.

-7
-26
[-] Arkouda@lemmy.ca 106 points 7 months ago

I don't think this guy sleeps, but I am ready to give them more money.

Stardew Valley is hands down the best farming sim.

[-] Arkouda@lemmy.ca 95 points 7 months ago

He likes to dine with Nazis, and we all know the old adage about Nazis at a dinner table.

[-] Arkouda@lemmy.ca 72 points 8 months ago

I am going to dig into this, but isn't this illegal?

Looking at elections Canada it states the ways one can advertise their campaign and personalized letters sent directly to a voters address is not included as an option.

I recommend going to the media at the very least with this one before election day.

[-] Arkouda@lemmy.ca 64 points 8 months ago

We need to be taking this very very seriously and keep tabs on anyone in Canada pushing this rhetoric.

He is escalating more and more by the day and there is a good chance he does something really dumb.

[-] Arkouda@lemmy.ca 135 points 10 months ago

I think it is time to tariff the US until they get their borders under control and stop the flow of illegal immigrants, drugs, and guns across our borders!

[-] Arkouda@lemmy.ca 70 points 10 months ago

Think of us like John Wick (starring Keanu Reeves, one of many great Canadian performers we’ve been kind enough to send your way you ungrateful fucks). We didn’t want a fight. But you killed our dog.

This made my day and made the point perfectly.

[-] Arkouda@lemmy.ca 72 points 1 year ago

When animals are over stressed, unable to provide the basics of survival, and constantly dealing with external threats they tend to not have babies.

[-] Arkouda@lemmy.ca 61 points 1 year ago

I agree weekends were a mistake.

It should have always been 2 on 1 off, 2 on 2 off.

[-] Arkouda@lemmy.ca 72 points 1 year ago

Chrome is now owned by a company, owned by a company, owned by another company, that is owned by Google.

[-] Arkouda@lemmy.ca 98 points 1 year ago

OH NO!

Anyways...

Who likes puppies?

[-] Arkouda@lemmy.ca 75 points 1 year ago

Every time I hear something about Netflix I always wonder how it is even still running. Still wild to me that they had the entire monopoly on streaming and fucked it up anyways.

[-] Arkouda@lemmy.ca 64 points 1 year ago

I have a feeling if we ever get to speaking with whales they are going to have a lot of words for us.

view more: next ›

Arkouda

joined 2 years ago