-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPythonAssignments 2.html
More file actions
1 lines (1 loc) · 4.79 KB
/
PythonAssignments 2.html
File metadata and controls
1 lines (1 loc) · 4.79 KB
1
<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><style type="text/css">ol{margin:0;padding:0}table td,table th{padding:0}.c1{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal}.c2{padding-top:0pt;padding-bottom:0pt;line-height:1.15;orphans:2;widows:2;text-align:left}.c3{background-color:#ffffff;max-width:468pt;padding:72pt 72pt 72pt 72pt}.c0{font-weight:700}.c4{height:11pt}.title{padding-top:0pt;color:#000000;font-size:26pt;padding-bottom:3pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}.subtitle{padding-top:0pt;color:#666666;font-size:15pt;padding-bottom:16pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}li{color:#000000;font-size:11pt;font-family:"Arial"}p{margin:0;color:#000000;font-size:11pt;font-family:"Arial"}h1{padding-top:20pt;color:#000000;font-size:20pt;padding-bottom:6pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h2{padding-top:18pt;color:#000000;font-size:16pt;padding-bottom:6pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h3{padding-top:16pt;color:#434343;font-size:14pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h4{padding-top:14pt;color:#666666;font-size:12pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h5{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h6{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;font-style:italic;orphans:2;widows:2;text-align:left}</style></head><body class="c3"><p class="c2"><span class="c0">Reverse List </span><span class="c1">- Make a list of words and print it in reverse order</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Random Word Print </span><span class="c1">- Ask the user for a number and then collect that many words from the user. Store them in a list. Choose one word at random and print it.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">List Sum</span><span class="c1"> - Collect numbers from the user until they enter 0. Then print the sum of the numbers.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Pangram </span><span class="c1">- A pangram is a sentence that contains every letter of the alphabet. Make a function called isPangram that takes in a string and returns true or false based on whether or not the string is a pangram.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Total Upper Lower </span><span class="c1">- Write a program that accepts a sentence and calculate the number of uppercase and lowercase letters.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Ordered List </span><span class="c1"> - Write a function that takes a list of numbers and returns true if the list is in order and false otherwise.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">List Sorter </span><span class="c1">- Write a function that takes a list of numbers and sorts them. </span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">File Writer </span><span class="c1">- Write a program that takes a string from a user and writes it to a file.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Task List</span><span class="c1"> - Ask the user to enter a list of items and save them in a list. Save the contents of the list to a file.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">File Print</span><span class="c1"> - Pick a file from the computer and write a python file to print the contents of that file.<br></span></p><p class="c2"><span class="c0">File to List</span><span class="c1"> - Write a program that reads from a file and saves every line from the file as an entry in a list.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">File Word Count </span><span class="c1">- Ask the user the enter a filename and a word. Tell the user how many times the word appears in the file.</span></p><p class="c2 c4"><span class="c1"></span></p><p class="c2"><span class="c0">Single Line File</span><span class="c1"> - Take a file and put the contents of it into a new file without any newline characters. The contents of the new file should all be on one line.</span></p></body></html>