Welcome to the Anaconda Community

Welcome to the Anaconda Community!

We are excited to announce the addition of a community-focused forum into the Anaconda ecosystem. We welcome Anaconda Users and Data Practitioners of all experience levels and problem domains to ask questions, learn from experts, find events, and—most importantly—connect with other community members.

Categories

In this community, you’ll find a variety of categories:

  • To stay up to date with the latest trends and events, check out Announcements.
  • If you’re a beginner, or just looking to acquire new skills, check out Getting Started.
  • Dive deep into popular industry subjects using the Technical Topics category.
  • Troubleshoot issues and ask about specific products in Product Help.
  • Have feature requests or bugs to report with Anaconda Products? Let us know in the Feedback category.
  • If you have something that doesn’t fit into another category, post in the Everything Else section to get the help you need.

Additional Content

To access more content from Anaconda, visit Anaconda Nucleus and https://www.anaconda.com/. Keep an eye out for upcoming webinars, new blog posts, and other content from Anaconda employees and partners.

Moderation

We want to ensure that each community member has a good experience in these forums, and we need your help. Here’s what you can do:

  • Be kind and helpful to others at all times.
  • Check out our Acceptable Use Policy.
  • Report abusive or offensive behavior using the Flag (flag emoji) feature.

Reach out to usercare@anaconda.com with any other issues or questions.

3 Likes

I have great being a part of this great community and I am really feeling at home with such a professional community. Thanks for the welcome.

4 Likes

Hello,
Dear collega
Thanks/

2 Likes

A big cheers to the Anaconda community!! I love to be a part of this great community.

1 Like

Thanks, O am excited to be here. I like the categories and how they are structured.

1 Like

I’m very happy to be a part of Anaconda Family as I am learning the analysis of data. I think that the portal will help me a lot. People on Avs Series also thinks the same.

Greetings my community members. I am completely new to programming but I have started a course in python programming with my college. This is what I have so far in this week’s assignment but I got stuck because the program will not run.
Please can someone show me where did I go wrong?

import random
import os
import time

def clear():
os.system(“clear”)

Set of instructions for Rock-Paper-Scissors

def rps_instructions():

print()

print("Instructions for Rock-Paper-Scissors : ")
print()
print(“Rock crushes Scissors”)
print(“Scissors cuts Paper”)
print(“Paper covers Rock”)
print()

Set of instructions for Rock-Paper-Scissors-Lizard-Spock

def rpsls_instructions():

print()

print("Instructions for Rock-Paper-Scissors-Lizard-Spock : ")
print()
print(“Scissors cuts Paper”)
print(“Paper covers Rock”)
print(“Rock crushes Lizard”)
print(“Lizard poisons Spock”)
print(“Spock smashes Scissors”)
print(“Scissors decapitates Lizard”)
print(“Lizard eats Paper”)
print(“Paper disproves Spock”)
print(“Spock vaporizes Rock”)
print(“Rock crushes Scissors”)
print()

def rps():

global rps_table

global game_map
global name

Game Loop for each game of Rock-Paper-Scissors

while True:

print("--------------------------------------")

print(“\t\tMenu”)
print(“--------------------------------------”)
print(“Enter "help" for instructions”)
print(“Enter "Rock","Paper","Scissors" to play”)
print(“Enter "exit" to quit”)
print(“--------------------------------------”)

print()

Player Input

inp = input("Enter your move : ")

if inp.lower() == “help”:
clear()
rps_instructions()
continue
elif inp.lower() == “exit”:
clear()
break
elif inp.lower() == “rock”:
player_move = 0
elif inp.lower() == “paper”:
player_move = 1
elif inp.lower() == “scissors”:
player_move = 2
else:
clear()
print(“Wrong Input!!”)
rps_instructions()
continue

print(“Computer making a move…”)

print()
time.sleep(2)

Get the computer move randomly

comp_move = random.randint(0, 2)

Print the computer move

print("Computer chooses ", game_map[comp_move].upper())

Find the winner of the match

winner = rps_table[player_move][comp_move]

Declare the winner

if winner == player_move:
print(name, “WINS!!!”)
elif winner == comp_move:
print(“COMPUTER WINS!!!”)
else:
print(“TIE GAME”)

print()
time.sleep(2)
clear()

def rpsls():

global rpsls_table

global game_map
global name

Game Loop for each game of Rock-Paper-Scissors-Lizard-Spock

while True:
print(“--------------------------------------”)
print(“\t\tMenu”)
print(“--------------------------------------”)
print(“Enter "help" for instructions”)
print(“Enter "Rock","Paper","Scissors","Lizard","Spock" to play”)
print(“Enter "exit" to quit”)
print(“--------------------------------------”)

print()

Player Input

inp = input("Enter your move : ")

if inp.lower() == “help”:
clear()
rpsls_instructions()
continue
elif inp.lower() == “exit”:
clear()
break
elif inp.lower() == “rock”:
player_move = 0
elif inp.lower() == “paper”:
player_move = 1
elif inp.lower() == “scissors”:
player_move = 2
elif inp.lower() == “lizard”:
player_move = 3
elif inp.lower() == “spock”:
player_move = 4
else:
clear()
print(“Wrong Input!!”)
rps_instructions()
continue

print(“Computer making a move…”)

comp_move = random.randint(0, 4)
print()
time.sleep(2)

print("Computer chooses ", game_map[comp_move].upper())

winner = rpsls_table[player_move][comp_move]
print()
if winner == player_move:
print(name, “WINS!!!”)
elif winner == comp_move:
print(“COMPUTER WINS!!!”)
else:
print(“TIE GAME”)
print()
time.sleep(2)
clear()

The main function

if name == ‘main’:

The mapping between moves and numbers

game_map = {0:“rock”, 1:“paper”, 2:“scissors”, 3:“lizard”, 4:“Spock”}

Win-lose matrix for traditional game

rps_table = [[-1, 1, 0], [1, -1, 2], [0, 2, -1]]

Win-lose matrix for new version of the game

rpsls_table = [[-1, 1, 0, 0, 4],[1, -1, 2, 3, 1], [0, 2, -1, 2, 4], [0, 3, 2, -1, 3], [4, 1, 4, 3, -1]]

name = input("Enter your name: ")

The GAME LOOP

while True:

The Game Menu

print()
print(“Let’s Play!!!”)
print(“Which version of Rock-Paper-Scissors?”)
print(“Enter 1 to play Rock-Paper-Scissors”)
print(“Enter 2 to play Rock-Paper-Scissors-Lizard-Spock”)
print(“Enter 3 to quit”)
print()

Try block to handle the player choice

try:
choice = int(input("Enter your choice = "))
except ValueError:
clear()
print(“Wrong Choice”)
continue

Play the traditional version of the game

if choice == 1:
rps()

Play the new version of the game

elif choice == 2:
rpsls()

Quit the GAME LOOP

elif choice == 3:
break

Other wrong input

else:
clear()
print(“Wrong choice. Read instructions carefully.”)

Hi everyone,
I am a beginner in using Anaconda.
I get faced a real problem in downloading Anaconda/Miniconda for Linux on my device.
I turned on the WSL and tried to download it, but it did not work
Please could you help me?

1 Like

As a relatively new Pythoner, I am still overwhelmed. Every site resource is like drinking from a firehose. There is an ocean of information, but it is more than challenging finding the golden nuggets of useful information to me. We are all challenged by this.

I plan to revisit this site, trying to understand more, hoping that I will find that golden nugget eventually.