[Hindi]NLP 03# Text Formatting |NLP|Python 3|Natural Language Processing|2019
Code:
# -*- coding: utf-8 -*-
"""NLP_Ex2.ipynb
Automatically generated by Colaboratory.
"""
print("Knowledge Shelf")
name = "Knowledge Shelf"
print("My YouTube Channel name is {}".format(name))
print(f"My YouTube Channel name is {name}")
spam = ['a','b','c','d']
print(f"Value of sapm {spam[2]}")
dict = {'var1':20,'var2':45}
print(f"Value of dict {dict['var2']}")
college=[('Name','Branch','Year'),
('Ankit','Electronics & Communication','2'),
('Mayank','CSE','3'),
('Raj','IT','1')]
for data in college:
print(f"Student name is {data[0]}")
for name,branch,year in college:
print(f"{name:{10}} {branch:{40}} {year:{10}}")
from datetime import datetime
present = datetime(year=2019,month=10,day=25)
print(f"{present}")
present
print(f"{present:%c}")
"""NLP_Ex2.ipynb
Automatically generated by Colaboratory.
"""
print("Knowledge Shelf")
name = "Knowledge Shelf"
print("My YouTube Channel name is {}".format(name))
print(f"My YouTube Channel name is {name}")
spam = ['a','b','c','d']
print(f"Value of sapm {spam[2]}")
dict = {'var1':20,'var2':45}
print(f"Value of dict {dict['var2']}")
college=[('Name','Branch','Year'),
('Ankit','Electronics & Communication','2'),
('Mayank','CSE','3'),
('Raj','IT','1')]
for data in college:
print(f"Student name is {data[0]}")
for name,branch,year in college:
print(f"{name:{10}} {branch:{40}} {year:{10}}")
from datetime import datetime
present = datetime(year=2019,month=10,day=25)
print(f"{present}")
present
print(f"{present:%c}")
YouTube :
Recommended Book:
Click Me |
0 Comments