When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
//Angular Material Components | |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | |
import {MatCheckboxModule} from '@angular/material'; | |
import {MatButtonModule} from '@angular/material'; |
function Cricket() { | |
var Maths = Math.random() * 10 ; | |
Maths = Math.floor(Maths); | |
if (Maths ==1 ) { | |
return "One run"; | |
} | |
else if (Maths == 2) { | |
return "Two runs"; | |
} |
'''Take a list, say for example this one: | |
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
and write a program that prints out all the elements of the list that are less than 5.''' | |
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
new_list = [] | |
for i in a: | |
if(i >= 5): |