You are on page 1of 32

Republic of the Philippines

TAGUIG CITY UNIVERSITY


Bachelor of Science in Computer Science

Problem: Write a Python program that accepts a word from the user and
reverse it.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program that prints all the numbers from 0 to 6
except 3 and 6.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to get the Fibonacci series between 0


to 50.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program which iterates the integers from 1 to 50. For multiples

of three print "Fizz" instead of the number and for the multiples of five print "Buzz".

For numbers which are multiples of both three and five print "FizzBuzz".
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to find those numbers which are divisible

by 7 and multiple of 5, between 1500 and 2700 (both included).


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

1. https://www.w3resource.com/python-exercises/python-conditional-exercise-6.php

2. https://www.w3resource.com/python-exercises/python-conditional-exercise-5.php

3.https://www.w3resource.com/python-exercises/python-conditional-exercise-9.php

4. https://www.w3resource.com/python-exercises/python-conditional-exercise-10.php

5. https://www.w3resource.com/python-exercises/python-conditional-exercise-20.php

6. https://www.w3resource.com/python-exercises/python-conditional-exercise-11.php

7. https://www.w3resource.com/python-exercises/python-conditional-exercise-44.php

8. https://www.w3resource.com/python-exercises/python-conditional-exercise-27.php

9. https://www.w3resource.com/python-exercises/python-conditional-exercise-30.php

10. https://www.w3resource.com/python-exercises/python-conditional-exercise-29.php

11. https://www.w3resource.com/python-exercises/array/python-array-exercise-13.php

12https://www.w3resource.com/python-exercises/array/python-array-exercise-5.php

13. https://www.w3resource.com/python-exercises/array/python-array-exercise-11.php

14. https://www.w3resource.com/python-exercises/array/python-array-exercise-12.php

15https://www.w3resource.com/python-exercises/array/python-array-exercise-9.php
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program which takes two digits m (row) and n (column) as input
and generates a two-dimensional array. The element value in the i-th row and j-th
column of the array should be i*j.
Note :
i = 0,1.., m-1
j = 0,1, n-1.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to construct the following pattern, using a nested
loop number.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to print alphabet pattern 'T'.


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to print alphabet pattern 'Z'.


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to print alphabet pattern 'U'.


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to convert an array to an ordinary


list with the same items.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to get the current memory address and the
length in elements of the buffer used to hold an array’s contents and also find
the size of the memory buffer in bytes.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to remove a specified item using the index

from an array.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem:Write a Python program to remove the first occurrence of a specified


element from an array.
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

Problem: Write a Python program to append items from a specified list.


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

<!DOCTYPE html>

<html>

<head>

<body background="aa.jpg">

<style>

@-webkit-keyframes example {

from {

top: -100px;

opacity: 0;

}
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

to {

top: 0px;

opacity: 1;

/* Add animation (Standard syntax) */

@keyframes example {

from {

top: -100px;

opacity: 0;

}
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

to {

top: 0px;

opacity: 1;

/* The modal's background */

.modal {

display: none;

position: fixed;

left: 0;

top: 0;
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

width: 100%;

height: 100%;

overflow: auto;

background-color: rgb(0, 0, 0);

background-color: rgba(0, 0, 0, 0.4);

/* Display the modal when targeted */

.modal:target {

display: table;

position: absolute;

}
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

/* The modal box */

.modal-dialog {

display: table-cell;

vertical-align: middle;

/* The modal's content */

.modal-dialog .modal-content {

margin: auto;

background-color: #f3f3f3;

position: relative;
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

padding: 0;

outline: 0;

border: 1px #777 solid;

text-align: justify;

width: 80%;

box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

/* Add animation */

-webkit-animation-name: example;

/* Chrome, Safari, Opera */

-webkit-animation-duration: 0.5s;

/* Chrome, Safari, Opera */

animation-name: example;
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

animation-duration: 0.5s;

/* The button used to close the modal */

.closebtn {

text-decoration: none;

float: right;

font-size: 35px;

font-weight: bold;

color: #fff;

}
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

.closebtn:hover,

.closebtn:focus {

color: #000;

text-decoration: none;

cursor: pointer;

.container {

padding: 2px 16px;

header {
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

background-color: PEACHPUFF;

font-size: 25px;

color: white;

footer {

background-color: PEACHPUFF;

font-size: 20px;

color: white;

</style>

</head>
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

<body contenteditable="false"><table width="500" border="1" align="center">

<tr>

<td><div align="center">

<p><a href="#id01"> <font face="Bradley Hand ITC" color="maroon" size="8"><strong>See


Location</font></strong></a></p>

</div></td>

</tr>

<div id="id01" class="modal">

<div class="modal-dialog">

<div class="modal-content">

<header class="container">

<a href="#" class="closebtn">x</a>

<h2><font color="maroon" size="8" face="Bradley Hand ITC">Location</h2></font>


Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

</header>

<div class="container">

<p><center><img src="leems.png"></center></p>

<p><strong><center><font color="maroon" size="4 face="Bradley Hand ITC">#5 GEN ESPINO ST.


ZONE 6 SOUTH SIGNAL VILL. TAGUIG CITY</strong></center></p>

</font>

</div>

<footer class="container">

<p> <font color="maroon" size="3 face="Bradley Hand ITC">PAGE ID:


303950546748</p></font><br>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-


awesome.min.css">

<body>

<i class="fa fa-arrow-left"></i><a href="vision.html"><font face="Bradley Hand ITC"


color="MAROON" size="6"><strong>Back</font></strong></a>

</footer>

</div>
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

</div>

</div>

</body>

</html>
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science
Republic of the Philippines
TAGUIG CITY UNIVERSITY
Bachelor of Science in Computer Science

You might also like