Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,374 members, 7,815,796 topics. Date: Thursday, 02 May 2024 at 06:31 PM

Watch: What Is Deodorant Used For?, See Funny Replies - Jokes Etc - Nairaland

Nairaland Forum / Entertainment / Jokes Etc / Watch: What Is Deodorant Used For?, See Funny Replies (1682 Views)

What Is The Difference Between Spirit And Ghost? See Funny Replies / See The Question A Girl Asked On Facebook. See Funny Replies / Wisidom Or $40 Billion Dollars? See Funny Replies To This Question (2) (3) (4)

(1) (Reply) (Go Down)

Watch: What Is Deodorant Used For?, See Funny Replies by PrinceNews: 2:08pm On Jul 27, 2020

https://www.youtube.com/watch?v=uJq-cZiLixA

Watch: What is Deodorant used for?, See funny replies

Re: Watch: What Is Deodorant Used For?, See Funny Replies by Cutecharlz(m): 2:12pm On Jul 27, 2020
That guy is really a clown....stability ur head there...

1 Like

Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 2:36pm On Jul 27, 2020
#1. What is the length of the string variable verse?
#2. What is the index of the first occurrence of the word 'and' in verse?
#3. What is the index of the last occurrence of the word 'you' in verse?
#4. What is the count of occurrences of the word 'you' in the verse?


verse = "If you can keep your head when all about you\n Are losing theirs and blaming it on you,\nIf you can trust yourself when all men doubt you,\n But make allowance for their doubting too;\nIf you can wait and not be tired by waiting,\n Or being lied about, don’t deal in lies,\nOr being hated, don’t give way to hating,\n And yet don’t look too good, nor talk too wise:"
print(verse)

# Use the appropriate functions and methods to answer the questions above
# Bonus: practice using .format() to output your answers in descriptive messages!
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:01pm On Jul 27, 2020
#Quiz: Calculate
#In this quiz you're going to do some calculations for a tiler. Two parts of a floor need tiling. One part is 9 tiles wide by 7 tiles long, the other is 5 tiles wide by 7 tiles long. Tiles come in packages of 6.

#1. How many tiles are needed?
#2. You buy 17 packages of tiles containing 6 tiles each. How many tiles will be left over?




# Fill this in with an expression that calculates how many tiles are needed.
print()

# Fill this in with an expression that calculates how many tiles will be left over.
print()
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:08pm On Jul 27, 2020
#Note that this code uses scientific notation to define large numbers. 4.445e8 is equal to 4.445 * 10 ** 8 which is equal to 444500000.0.

# The current volume of a water reservoir (in cubic metres)
reservoir_volume = 4.445e8
# The amount of rainfall from a storm (in cubic metres)
rainfall = 5e6

# decrease the rainfall variable by 10% to account for runoff




# add the rainfall variable to the reservoir_volume variable




# increase reservoir_volume by 5% to account for stormwater that flows into the reservoir in the days following the storm




# decrease reservoir_volume by 5% to account for evaporation




# subtract 2.5e5 cubic metres from reservoir_volume to account for water that's piped to arid regions.





# print the new value of the reservoir_volume variable
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:24pm On Jul 27, 2020
#Quiz: Assign and Modify Variables
#Now it's your turn to work with variables. The comments in this quiz (the lines that begin with #) have instructions for creating and modifying variables. After each comment write a line of code that implements the instruction.

#Note that this code uses scientific notation to define large numbers. 4.445e8 is equal to 4.445 * 10 ** 8 which is equal to 444500000.0.

# Write your function here. Make sure to use "population_density" as the name of the fucntion. so, the test below works.



# test cases for your function Dont change anything below this comment.

test1 = population_density(10, 1)
expected_result1 = 10
print("expected result: {}, actual result: {}".format(expected_result1, test1))

test2 = population_density(864816, 121.4)
expected_result2 = 7123.6902801
print("expected result: {}, actual result: {}".format(expected_result2, test2))
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 10:07pm On Jul 28, 2020
#Quiz: List Indexing
#Use list indexing to determine how many days are in a particular month based on the integer variable month, and store that value in the integer variable num_days. For example, if month is 8, num_days should be set to 31, since the eighth month, August, has 31 days.

#Remember to account for zero-based indexing!



month = 8
days_in_month = [31,28,31,30,31,30,31,31,30,31,30,31]

# use list indexing to determine the number of days in month


print(num_days)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:43pm On Jul 28, 2020
#Quiz: Slicing Lists
#Select the three most recent dates from this list using list slicing notation. Hint: negative indexes work in slices!

eclipse_dates = ['June 21, 2001', 'December 4, 2002', 'November 23, 2003',
'March 29, 2006', 'August 1, 2008', 'July 22, 2009',
'July 11, 2010', 'November 13, 2012', 'March 20, 2015',
'March 9, 2016']


# TODO: Modify this line so it prints the last three elements of the list
print(eclipse_dates)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:44pm On Jul 28, 2020
# Use this playground to experiment with list methods, using Test Run
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:44pm On Jul 28, 2020
# Define a Dictionary, population,
# that provides information
# on the world's largest cities.
# The key is the name of a city
# (a string), and the associated
# value is its population in
# millions of people.

# Key | Value
# Shanghai | 17.8
# Istanbul | 13.3
# Karachi | 13.0
# Mumbai | 12.5
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:45pm On Jul 28, 2020
elements = {'hydrogen': {'number': 1, 'weight': 1.00794, 'symbol': 'H'},
'helium': {'number': 2, 'weight': 4.002602, 'symbol': 'He'}}

# todo: Add an 'is_noble_gas' entry to the hydrogen and helium dictionaries
# hint: helium is a noble gas, hydrogen isn't
#hint: After inserting the new entries you should be able to perform these lookups:

#>>>print(elements['hydrogen']['is_noble_gas'])
#<<< False
#>>> print(elements['helium']['is_noble_gas'])
#<<< True
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:45pm On Jul 28, 2020
#COUNT UNIQUE WORDS

#Your task for this quiz is to find the number of unique words in the text. In the code editor below, complete these three steps to get your answer.
#1. Split verse into a list of words. Hint: You can use a string method you learned in the previous lesson.
#2. Convert the list into a data structure that would keep only the unique elements from the list.
#3. Print the length of the container.

verse = "if you can keep your head when all about you are losing theirs and blaming it on you if you can trust yourself when all men doubt you but make allowance for their doubting too if you can wait and not be tired by waiting or being lied about don’t deal in lies or being hated don’t give way to hating and yet don’t look too good nor talk too wise"
print(verse, '\n')

# split verse into list of words
verse_list =
print(verse_list, '\n')

# convert list to a data structure that stores unique elements
verse_set =
print(verse_set, '\n')

# print the number of unique words
num_unique =
print(num_unique, '\n')
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 11:45pm On Jul 28, 2020
verse_dict = {'if': 3, 'you': 6, 'can': 3, 'keep': 1, 'your': 1, 'head': 1, 'when': 2, 'all': 2, 'about': 2, 'are': 1, 'losing': 1, 'theirs': 1, 'and': 3, 'blaming': 1, 'it': 1, 'on': 1, 'trust': 1, 'yourself': 1, 'men': 1, 'doubt': 1, 'but': 1, 'make': 1, 'allowance': 1, 'for': 1, 'their': 1, 'doubting': 1, 'too': 3, 'wait': 1, 'not': 1, 'be': 1, 'tired': 1, 'by': 1, 'waiting': 1, 'or': 2, 'being': 2, 'lied': 1, 'don\'t': 3, 'deal': 1, 'in': 1, 'lies': 1, 'hated': 1, 'give': 1, 'way': 1, 'to': 1, 'hating': 1, 'yet': 1, 'look': 1, 'good': 1, 'nor': 1, 'talk': 1, 'wise': 1}
print(verse_dict, '\n')

# find number of unique keys in the dictionary
num_keys =
print(num_keys)

# find whether 'breathe' is a key in the dictionary
contains_breathe =
print(contains_breathe)

# create and sort a list of the dictionary's keys
sorted_keys =

# get the first element in the sorted list of keys
print()

# find the element with the highest value in the list of keys
print()

bonus_question_what_is_the_first_key_in_verse_dict =
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 6:48pm On Aug 02, 2020
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 6:52pm On Aug 03, 2020
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 2:14pm On Aug 05, 2020
#Zip Lists to a Dictionary
#Use zip to create a dictionary cast that uses names as keys and heights as values.

cast_names = ["Barney", "Robin", "Ted", "Lily", "Marshall"]
cast_heights = [72, 68, 72, 66, 76]

cast = # replace with your code
print(cast)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 2:24pm On Aug 05, 2020
#Zip Coordinates
#Use zip to write a for loop that creates a string specifying the label and coordinates of each point and appends it to the list points. Each string should be formatted as label: x, y, z. For example, the string for the first coordinate should be F: 23, 677, 4.


x_coord = [23, 53, 2, -12, 95, 103, 14, -5]
y_coord = [677, 233, 405, 433, 905, 376, 432, 445]
z_coord = [4, 16, -6, -42, 3, -6, 23, -1]
labels = ["F", "J", "A", "Q", "Y", "B", "W", "X"]

points = []
# write your for loop here


for point in points:
print(point)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 2:49pm On Aug 05, 2020
#Tag Counter
#Write a for loop that iterates over a list of strings, tokens, and counts how many of them are XML tags. XML is a data language similar to HTML. You can tell if a string is an XML tag if it begins with a left angle bracket "<" and ends with a right angle bracket ">". Keep track of the number of tags using the variable count.

#You can assume that the list of strings will not contain empty strings.


tokens = ['<greeting>', 'Hello World!', '</greeting>']
count = 0

# write your for loop here


print(count)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:03pm On Aug 05, 2020
#Count By Check
#Suppose you want to count from some number start_num by another number count_by until you hit a final number end_num, and calculate break_num the way you did in the last quiz.

#Now in addition, address what would happen if someone gives a start_num that is greater than end_num. If this is the case, set result to "Oops! Looks like your start value is greater than the end value. Please try again." Otherwise, set result to the value of break_num.


start_num = #provide some start number
end_num = #provide some end number that you stop when you hit
count_by = #provide some number to count by

# write a condition to check that end_num is larger than start_num before looping
# write a while loop that uses break_num as the ongoing number to
# check against end_num


print(result)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:07pm On Aug 05, 2020
#Count By
#Suppose you want to count from some number start_num by another number count_by until you hit a final number end_num. Use break_num as the variable that you'll change each time through the loop. For simplicity, assume that end_num is always larger than start_num and count_by is always positive.

#Before the loop, what do you want to set break_num equal to? How do you want to change break_num each time through the loop? What condition will you use to see when it's time to stop looping?

#After the loop is done, print out break_num, showing the value that indicated it was time to stop looping. It is the case that break_num should be a number that is the first number larger than end_num.




start_num = #provide some start number
end_num = #provide some end number that you stop when you hit
count_by = #provide some number to count by

# write a while loop that uses break_num as the ongoing number to
# check against end_num


print(break_num)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:08pm On Aug 05, 2020
#Practice: Which Prize
#Write an if statement that lets a competitor know which of these prizes they won based on the number of points they scored, which is stored in the integer variable points.

#Points Prize
#1 - 50 wooden rabbit
#51 - 150 no prize
#151 - 180 wafer-thin mint
#181 - 200 penguin
#All of the lower and upper bounds here are inclusive, and points can only take on positive integer values up to 200.

#In your if statement, assign the result variable to a string holding the appropriate message based on the value of points. If they've won a prize, the message should state "Congratulations! You won a [prize name]!" with the prize name. If there's no prize, the message should state "Oh dear, no prize this time."

#Note: Feel free to test run your code with other inputs, but when you submit your answer, only use the original input of points = 174. You can hide your other inputs by commenting them out.


points = 174 # use this input to make your submission

# write your if statement here


print(result)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 3:39pm On Aug 05, 2020
#Write a for loop that iterates over the names list to create a usernames list. To create a username for each name, make everything lowercase and replace spaces with underscores. Running your for loop over the list:

#names = ["Joey Tribbiani", "Monica Geller", "Chandler Bing", "Phoebe Buffay"]

#should create

#usernames = ["joey_tribbiani", "monica_geller", "chandler_bing", "phoebe_buffay"]


#HINT: Use the .replace() method to replace the spaces with underscores. Check out how to use this method in this:

#https://stackoverflow.com/a/12723785


names = ["Joey Tribbiani", "Monica Geller", "Chandler Bing", "Phoebe Buffay"]
usernames = []

# write your for loop here


print(usernames)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 7:39pm On Aug 05, 2020
#Unzip Tuples
#Unzip the cast tuple into two names and heights tuples.

cast = (("Barney", 72), ("Robin", 68), ("Ted", 72), ("Lily", 66), ("Marshall", 76))

# define names and heights here


print(names)
print(heights)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 9:12pm On Aug 05, 2020
#Filter Names by Scores
#Use a list comprehension to create a list of names passed that only include those that scored at least 65.

scores = {
"Rick Sanchez": 70,
"Morty Smith": 35,
"Summer Smith": 82,
"Jerry Smith": 23,
"Beth Smith": 98
}

passed = # write your list comprehension here
print(passed)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 9:24pm On Aug 05, 2020
# '''
# You decide you want to play a game where you are hiding
# a number from someone. Store this number in a variable
# called 'answer'. Another user provides a number called
# 'guess'. By comparing guess to answer, you inform the user
# if their guess is too high or too low.

# Fill in the conditionals below to inform the user about how
# their guess compares to the answer.
# '''
answer = #provide answer
guess = #provide guess

if #provide conditional
result = "Oops! Your guess was too low."
elif #provide conditional
result = "Oops! Your guess was too high."
elif #provide conditional
result = "Nice! Your guess matched the answer!"

print(result)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 10:03pm On Aug 06, 2020
#Break the String
#Write a loop with a break statement to create a string, news_ticker, that is exactly 140 characters long. You should create the news ticker by adding headlines from the headlines list, inserting a space in between each headline. If necessary, truncate the last headline in the middle so that news_ticker is exactly 140 characters long.

#Remember that break works in both for and while loops. Use whichever loop seems most appropriate. Consider adding print statements to your code to help you resolve bugs.

# HINT: modify the headlines list to verify your loop works with different inputs
headlines = ["Local Bear Eaten by Man",
"Legislature Announces New Laws",
"Peasant Discovers Violence Inherent in System",
"Cat Rescues Fireman Stuck in Tree",
"Brave Knight Runs Away",
"Papperbok Review: Totally Triffic"]

news_ticker = ""
# write your loop here


print(news_ticker)
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 10:40pm On Aug 06, 2020
Using your idea on how to copy files, and read/write to binary file.

Write a program that makes a copy of any named *.jpg* image file in the same folder.

The program first requests for the name (without file extension) of the *jpg* image file to be duplicated. It then opens the named image (as a binary file) (now with *.jpg* extension) in the working directory and makes a copy of it in the same directory.

� _If for example, the user's input is *Myimage*, the program makes a duplicate of *Myimage.jpg* (already existing in the folder), and saves the new file as *Myimage - Copy.jpg*. The same folder now contains two same images with different names._

Additionally, when an attempt is made to open a non-existing file in read mode, a *FileNotFoundError* exception is raised. Prevent your program from 'crashing' when the user enters the name of a non-existing image file in your folder. Your program prints *"File not found!"* on such occurence.

(You may need to create a new folder, and move one of your jpeg pictures into the folder. You then write and save your program in the same new folder. After executing the program, you should have two images (one, a duplicate).
Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 1:59am On Aug 09, 2020
Nice one

Re: Watch: What Is Deodorant Used For?, See Funny Replies by nduprincekc(m): 7:33pm On Aug 10, 2020
Question 9
Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, there would be 26 possibilities. For a 2 letter password, each letter is independent of the other, so there would be 26 times 26 possibilities. Using this information, print the amount of possible passwords that can be formed with 6 letters.

(1) (Reply)

Dear Wife, Girlfriend, Etc - During The World Cup: / The Wedding Dress / PLEASE DON'T READ (only see)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 55
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.