💻Visual📡Time📸
7 subscribers
1.67K photos
199 videos
1.85K files
826 links
Наше от нас не уйдет. То что ушло было не наше...!
Download Telegram
Forwarded from 💻Visual📡Time📸 (Abdulaziz Baxriddinov Rashid o'g'li)
Full Stake
Lab 1
Stiyle.css
/* add your CSS here */
body {
padding: 20px;
}
#container{
border : 2px solid grey;
padding: 20px;
}
img {
width: 300px;
}
.animal-info {
font-style: italic ;
border : 2px solid grey;
padding: 1px;
}
li {
list-style: none;
}
span { font-weight:bold; }
Forwarded from 💻Visual📡Time📸 (Abdulaziz Baxriddinov Rashid o'g'li)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Building the Prototype</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="container">
<h1>Leopard</h1>
<!-- photo credit: wikipedia.org, image taken by Ritik -->
<img src="https://c.wallhere.com/photos/f8/4e/leopard_big_cat_predator-629779.jpg!d" alt="leopard">
<div id="card" class="animal-info">
<p id="interesting-fact">Learn about different types of Tiger, how big they are, how fast they run, how they hunt and more..</p>
<ul id="facts">
<li>
<span>Scientific Name</span>: Average Length
</li>
<li>
<span>Average Length</span>: 60 – 70 cm
</li>
<li>
<span>Average Lifespan</span>: 12 – 17 years
</li>
<li>
<span>Habitat</span>: the savannahs
</li>
</ul>
<p id="summary">The leopard has a long and muscular body, well proportioned, with wide legs. The pectoral muscles are developed to allow it to climb trees. The tail is long, curved upward when walking and serves as a pendulum when moving in trees2. The leopard weighs on average 58 kg for the male and 37 kg for the female3. The largest specimens can reach 90 kg and are mainly found in Central Asia and Iran, in some Indian forests where the tiger is absent, as well as in parts of Africa including South Africa, Kenya's mountain valleys. , West African tropical forests (Congo, Gabon, Cameroon) and formerly Algeria4. The size of the female is about two-thirds that of the male5. The length of the body is 1 to 1.6 meters for males and 0.95 to 1.24 meters for females, with a tail of 52 to 90 cm. The height at the withers ranges from 45 to 78 cm3.
</p>
</div>
</div>
</body>
</html>
Forwarded from 💻Visual📡Time📸 (Abdulaziz Baxriddinov Rashid o'g'li)
<html>
<head>
<title>Pixel Art Maker!</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Monoton">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Lab: Pixel Art Maker</h1>
<h2>Choose Grid Size</h2>
<form id="sizePicker">
Grid Height:
<input type="number" id="inputHeight" name="height" min="1" value="1">
Grid Width:
<input type="number" id="inputWidth" name="width" min="1" value="1">
<input type="submit">
</form>
<h2>Pick A Color</h2>
<input type="color" id="colorPicker">
<h2>Design Canvas</h2>
<table id="pixelCanvas"></table>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="designs.js"></script>
</body>
</html>
Forwarded from 💻Visual📡Time📸 (Abdulaziz Baxriddinov Rashid o'g'li)
body {
text-align: center;
}
h1 {
font-family: Monoton;
font-size: 70px;
margin: 0.2em;
}
h2 {
margin: 1em 0 0.25em;
}
h2:first-of-type {
margin-top: 0.5em;
}
table,
tr,
td {
border: 1px solid black;
}
table {
border-collapse: collapse;
margin: 0 auto;
}
tr {
height: 20px;
}
td {
width: 20px;
height: 20px;
}
input[type=number] {
width: 6em;
}
Forwarded from 💻Visual📡Time📸 (Abdulaziz Baxriddinov Rashid o'g'li)
"use strict";

const $tableElement = $('#pixelCanvas');
const $inputHeight = $('#inputHeight');
const $inputWidth = $('#inputWidth');
const $colorPicker = $('#colorPicker');
$('#sizePicker').submit( event => {
event.preventDefault();
let width = $inputWidth.val();
let height = $inputHeight.val();
$tableElement.html(''); //clear
makeGrid(height, width);
addCellClickListener();
});
function makeGrid(height, width) {
for(let i = 0; i < height; i++) {
$tableElement.append('<tr></tr>');
};
for(let i = 0; i < width; i++) {
$('tr').append('<td></td>');
};
};
function addCellClickListener() {
$('td').click( event => {
let color = $colorPicker.val();
$(event.currentTarget).css("background-color", color)
});
};
namuna.xlsx
41.1 KB
namuna.xlsx
41.1 KB
💻Visual📡Time📸
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Building the Prototype</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div id="container"> <h1>Leopard</h1> <!-- photo credit: wikipedia.org, image taken by Ritik…
ask 1:
You are required to complete the function reverse(x). given a string "x" as an input it is expected to return that same string but reversed.
Example:
input : "again"
output: "niaga"
you can change the string value in the variable text but you are not allowed to change the variable names or edit any other code,
except the function's body, doing so may jeopardize your evaluation
sol1----------------------
text = "this is not a reversed text"

def reverse(x):
#complete this function so that it takes string x as an input
#and returns its reverse
return x[::-1]

print("the reversed text is: "+reverse(text))
--------------------------------------------------------------------------------------------
Task 2:¶
You are required to complete the function average(x). where "x" is a list of numbers, and contains more than 3 numbers. the function is expected to return the average from that list.
Example:
input : [10,20,30,40]
output: 25
you can change the numbers in the list no_list but you are not allowed to change the variable names or edit any other code,
except the function's body, doing so may jeopardize your evaluation
sol2------------------------------------
no_list = [22,68,90,78,90,88]

def average(x):
#complete the function's body to return the average
sum = 0
for e in x:
sum += e
return sum / len(x)

print(average(no_list))
--------------------------------------------------------------------------------
Task 3:¶
You are required to complete the function maximum(x). where "x" is a list of numbers, and contains more than 2 numbers. the function is expected to return the highest number in that list.
Example:
input : [5,20,12,6]
output: 20
you can change the numbers in the list no_list but you are not allowed to change the variable names or
edit any other code, except the function's body, doing so may jeopardize your evaluation*
sol3-------------------------------------------
no_list = [1,2,3,4]

def maximum(no_list):
#complete the function to return the highest number in the list
high = no_list[0]
for e in no_list:
if e > high:
high = e
return high

print(maximum(no_list))
------------------------------------------------------------------------------
Task 4:¶
You are required to complete the function unique_list(l). where "l" is a list of numbers. the function is expected to return the unique numbers in that list.
Example:
input : [1,1,1,2,2,3,3,3,3,4,5,5,6]
output: [1,2,3,4,5,6]
you are not allowed to change the variable names or their values or edit any other code, except the function's body, doing so may jeopardize your evaluation


sol4------------------------
no_list = [22,22,2,1,11,11,2,2,3,3,3,4,5,5,5,55,55,66]

def unique_list(l):
#complete the function's body to return the unique list of numbers
unique = []
for x in l:
if x not in unique:
unique.append(x)
return unique

print(unique_list(no_list))
Forwarded from Azamat Qo'chqarov
Бир миллион дастурчи жавоблари.doc
40.5 KB
Бир миллион дастурчи

Йўналишлар бўйича барчасининг жавоблари 100%
Тихий гимн
DJ SMASH, Karna.val
Forwarded from ️Islom Imomaliyev
This media is not supported in your browser
VIEW IN TELEGRAM
Vacation
Dirty Heads