Answer:
I think they're all valid but the validility depends on the website your using the usernames on.
Explanation:
Answer:
Written in Python:
num = int(input("Number: "))
strnum = str(num)
if len(strnum) !=5:
print("Length must be 5")
else:
if(strnum[::-1] == strnum):
print("The number is a palindrome.")
else:
print("The number is NOT palindrome.")
Explanation:
This prompts user for input
num = int(input("Number: "))
This converts user input to string
strnum = str(num)
This checks the length of the string
if len(strnum) !=5:
print("Length must be 5") If length is not 5, this prompt is printed
else:If otherwise
if(strnum[::-1] == strnum): The compares the string reversed with the original
print("The number is a palindrome.") If both are the same, this line is executed
else:
print("The number is NOT palindrome.") If otherwise, this line is executed
Answer:
- The problem as they see it has been addressed
- The solution proposed will meet their needs
- The needs of their colleagues are being met
- All issues and constraints have been identified
Explanation:
The stakeholders in a project or business involves every human resource of the business/project that is essential to the successful completion of the business/project at hand.
The factors to be addressed by stakeholders when reviewing a problem statement is very important for the success of the project hence : the problem as seen in the problem statement has to be addressed, the solution been proposed to solve every problem identified should meet the needs of every stakeholder, also every stakeholder in a project has to be carried along hence the need of every stakeholder has to be considered as well.
A string parameter and returns new string with all the letters of the alphabet that are not in the argument string. The letters in the returned string should be in alphabetical order. The implementation should uses a histogram from the histogram function
Explanation:
The below code is written in python :
alphabet = "abcdefghijklmnopqrstuvwxyz"
test_dups = ["zzz","dog","bookkeeper","subdermatoglyphic","subdermatoglyphics"]
test_miss = ["zzz","subdermatoglyphic","the quick brown fox jumps over the lazy dog"]
def histogram(s):
d = dict()
for c in s:
if c not in d:
d[c] = 1
else:
d[c] += 1
return d
def has_duplicates(s):
for v in histogram(s).values():
if v > 1:
return True
return False
def test_dups_loop():
for s in test_dups:
print(s + ':', has_duplicates(s))
def missing_letters(s):
r = list('abcdefghijklmnopqrstuvwxyz')
s = s.lower()
for c in s.lower():
if c in r:
r.remove(c) # the first matching instance
return ''.join(r)
def test_miss_loop():
for s in test_miss:
print(s + ':', missing_letters(s))
def main():
test_dups_loop()
test_miss_loop()
if __name__ == '__main__':
main()