Skip to content

Instantly share code, notes, and snippets.

View SoumenAtta's full-sized avatar
💭
I may be slow to respond.

Dr. Soumen Atta, PhD SoumenAtta

💭
I may be slow to respond.
View GitHub Profile
from flask import Flask, render_template, request
import nltk
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
Python is a high-level, interpreted programming language that is widely used for web development, data analysis, artificial intelligence, and many other applications. Created by Guido van Rossum in the late 1980s, Python has become one of the most popular programming languages in the world, thanks to its simplicity, versatility, and wide range of libraries and frameworks.
Python is known for its elegant syntax, which emphasizes readability and reduces the cost of program maintenance. Unlike other programming languages that use curly braces and semicolons to denote code blocks and statements, Python uses whitespace and indentation. This makes Python code more concise and easier to read, especially for beginners who are just learning how to program.
In addition to its simplicity and readability, Python is also praised for its powerful and flexible features. Python supports object-oriented programming, functional programming, and procedural programming paradigms, making it a versatile tool for different kinds
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1 in line 1.
ham Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
ham Ok lar... Joking wif u oni...
spam Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
ham U dun say so early hor... U c already then say...
ham Nah I don't think he goes to usf, he lives around here though
spam FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv
ham Even my brother is not like to speak with me. They treat me like aids patent.
ham As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune
spam WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only.
spam Had your mobile 11 months
name age gender city income
Alice 25 Female London 50000
Bob 32 Male Paris 75000
Charlie 47 Male Berlin 90000
David 29 Male New York 60000
Eve 38 Female Sydney 80000
Frank 22 Male Moscow 40000
Gina 34 Female Melbourne 70000
Henry 41 Male Shanghai 85000
Ivy 27 Female Hong Kong 55000
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.5.1/dist/leaflet.js"></script>
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
time,latitude,longitude,depth,mag,magType,nst,gap,dmin,rms,net,id,updated,place,type,horizontalError,depthError,magError,magNst,status,locationSource,magSource
2023-04-09T07:12:17.680Z,33.5805,-116.8063333,8.79,0.13,ml,12,111,0.05957,0.17,ci,ci40438680,2023-04-09T07:15:55.524Z,"13km WNW of Anza, CA",earthquake,0.51,0.6,0.186,3,automatic,ci,ci
2023-04-09T07:10:24.140Z,35.1618333,-118.2023333,15.06,1.11,ml,11,92,0.2055,0.27,ci,ci40438672,2023-04-09T07:13:54.803Z,"12km NNW of Mojave, CA",earthquake,0.7,1.36,0.175,13,automatic,ci,ci
2023-04-09T07:04:15.790Z,38.8073349,-122.8255005,1.56,0.92,md,10,119,0.003256,0.02,nc,nc73869640,2023-04-09T07:15:11.281Z,"7km WNW of The Geysers, CA",earthquake,0.32,0.9,0.18,10,automatic,nc,nc
2023-04-09T07:02:18.045Z,63.069,-150.3173,93.2,1.5,ml,,,,0.28,ak,ak0234juduy4,2023-04-09T07:04:20.527Z,"67 km NNE of Petersville, Alaska",earthquake,,0.7,,,automatic,ak,ak
2023-04-09T06:50:54.360Z,58.1822,-155.2612,0,0.8,ml,,,,0.31,ak,ak0234ju2sik,2023-04-09T06:51:47.058Z,"83 km NW of Karluk,
30 10 5
5 6 9 10 1 3 8 6 3 5
3 2 10 9 8 6 7 5 1 4
7 4 2 6 7 10 1 4 9 3
8 3 4 6 10 5 7 2 1 9
1 6 5 2 7 9 8 4 10 3
2 7 4 1 10 6 8 9 3 5
9 10 2 1 7 8 4 6 3 5
4 2 7 10 8 3 9 6 5 1
3 1 9 10 7 6 2 8 4 5
sex age sibsp parch fare embarked class who alone survived
male 22 1 0 7.25 S Third man FALSE 0
female 38 1 0 71.2833 C First woman FALSE 1
female 26 0 0 7.925 S Third woman TRUE 1
female 35 1 0 53.1 S First woman FALSE 1
male 35 0 0 8.05 S Third man TRUE 0
male 0 0 8.4583 Q Third man TRUE 0
male 54 0 0 51.8625 S First man TRUE 0
male 2 3 1 21.075 S Third child FALSE 0
female 27 0 2 11.1333 S Third woman FALSE 1
pH Conductivity Temperature TDS
7.767819208003973 551 20 194
7.8645210147478615 107 29 194
6.099181539145336 722 26 158
6.142619395764986 349 24 191
6.142202391531596 396 26 180
7.479636020771014 206 30 174
7.05056221520493 250 30 175
6.29513536858212 863 27 130
7.69328504585969 788 24 142