Is "ABC">"abc"?
A. Introduction No, all upper case letters are "less than" lower case letters. Among upper/lower case letters themselves, they are ordered alphabetically ascending. So, A<B<C<...<Z<a<b<c<...<z. But how to compare "!@#$" with "^*&>"?
B. How to compare strings: https://www.journaldev.com/23511/python-string-comparison
C. HW:
1. Create three strings, then sort them alphabetically and print out.
2. Use the image below as an inspiration to print out a dialogue between two characters. (2000 Kahoot! points)
Did I do what was expected? I tend to go easier, since im still trying to remember how to do most of the string multiplacation.
print('!@#$'<'^*&>') print('zzz'>'aaa') print('kbf'<"tqr") print('trr'>'ggg') print('Guy:') print('Hello Mr Robot, hows your day?') print('Robot:') print('Hello, can I assist you?') print('uhh, no thanks *Disables robot*') print('*chuckles* Im in danger') print('FBI TEAM:') print('FBI OPEN UP')
i am having a little trouble doing this
That is complicated
go 2nd pumpkin maker
idk if im doing this right : ]
#Var e uh bowls yes = "yes" dfeae = "you are a joopeoaitepa" cringe = "Awesome" cringe1M = "radical" # *Compares string ***GOOD-LY**** print('abc' > 'abb') print('abb' > 'ABC') print('ABC' < 'abc') print('\nTime for the moment of truth \n\n') print(("!@#$" > "^*&>")) print("\n:(((((((((((((((((((") print(' \n\n\n\n\n') #Conversation print('helo google assistant') print(f"{yes:>200}\n") print("What am i") print(f"{dfeae:>211}\n") print("Can I have ur candy\n") print(f"{cringe:>142}\n") print("you are not fun to talk to\n") print(f"\n{cringe1M:>70}\n")