Amateur coder here. This example is from another piece of code thats longer but it's the same effect, the IF statement does not change the name being printed. Is there a workaround to this or how can I fix it? Thanks.
import random
person = ('Example 1', 'Example 2')
(random.choice(person))
name = None
if person == 'Example 1':
name = 'Joe'
print(name)
from Recent Questions - Stack Overflow https://ift.tt/3bEog5t
https://ift.tt/eA8V8J
No comments:
Post a Comment