This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//programme of counting number of words in a string | |
char* remove_extra_spaces(char *s); | |
int count_words(char *S); | |
main() | |
{ | |
char str[100]; | |
int no_of_words; | |
printf("Enter a string\n"); | |
gets(str); | |
printf(" \nString length with extra spaces is:%d",strlen(str)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import* | |
def iCalc(source,side): | |
storeObj=Frame(source, borderwidth=4, bd=4,bg="#00F5FF") | |
storeObj.pack(side=side,expand=YES,fill=BOTH) | |
return storeObj | |
def button(source,side,text,command=None): | |
storeObj = Button(source, text=text, command=command) | |
storeObj.pack(side=side, expand=YES, fill=BOTH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter import filedialog | |
from tkinter.filedialog import askopenfilename,asksaveasfile | |
from PyPDF2 import PdfFileReader | |
#=================open file method====================== | |
def openFile(): | |
file = askopenfilename(defaultextension=".pdf", | |
filetypes=[("Pdf files","*.pdf")]) | |
if file == "": |