8) Text and Strings Quiz Preview

Quiz: Strings and Text
Reset Quiz

By Martin Breuss

This content is available to subscribers.

Unlock this course

$12/month Core Membership

7-day free trial

Unlock all courses

$29/month Pro Membership

7-day free trial

Question 1 of 1

SAMPLE QUESTION: Based on your current USER ROLE, what will print after this code executes?

if user.hasRole("Member"):
    print("Member. Access granted!")
elif user.hasRole("Bootcamp"):
    print("Bootcamp student. Access granted!")
else:
    print("Non-member. Access denied :(")