Write An Essay logo
  • Home
  • Dissertation Writing
  • Essay Writing
  • Personal Statement
  • My account
  • Order now
Order Now
Uncategorized

Basic Python

1 min read
Posted on 
March 18th, 2022
Home Uncategorized Basic Python

 

Exercise 3:

write a loop asking the user for a number.

print every number from 1 to the number entered (and including the number entered)

write a second loop printing only the odd numbers in the range given.

Exercise 4:

Create a list called friend by inputting four names in it. a) Use a function to create the items in the list. Do not just enter names. b) Write a function to sort the list, c) then using the sorted list in a for loop, print a personalized message to each of them. Be sure to include their name in the message.

d) Add an if-else statement that says if first friend’s name (that is the first name in your friends list) print “{friend ’s name}, you are my favorite friend.” Else print “{friend’s name}, You are one of my best friends

Order an Essay Now & Get These Features For Free:

Turnitin Report

Formatting

Title Page

Citation

Outline

Place an Order
Share
Tweet
Share
Tweet
Calculate the price
Pages (275 words)
$0.00
Write An Essay
Company
  • Why Choose Us
  • About Us
  • Terms
  • Dissertation Help
  • Personal Statement
  • Research Paper Format
  • Term Papers
Legal
  • Write My Essay
  • Thesis Format
  • Custom Papers
  • Coursework Writing
  • Dissertation Writing
  • Essay Writing
How Our Service is Used:
Write An Essay essays are NOT intended to be forwarded as finalized work as it is only strictly meant to be used for research and study purposes. Write An Essay does not endorse or condone any type of plagiarism.
Subscribe
No Spam
© 2023 Write An Essay. All rights reserved.
Write An Essay will be listed as ‘Write An Essay’ on your bank statement.