This file contains hidden or 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.filedialog import askopenfile | |
from pygame import mixer | |
file_name = "" | |
window=Tk() | |
window.title("Music Player") | |
window.geometry("650x400") |
This file contains hidden or 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
# Create a program that asks the user to enter their name and their age. | |
# Print out a message addressed to them that tells them the year that they will turn 100 years old. | |
name , age = input("Enter Your Name -> ") , int(input("Enter Your Age -> ")) | |
print(2020 + (100-age)) |
This file contains hidden or 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
# We have seen how to search for a particular file extension and also how to get files modified within a | |
# date range. For assignment, you need to combine both. User should | |
# be able to search for python files modified in a date range | |
import os | |
import datetime | |
def file_extension_finder(pat,start_date,end_date): | |
file_extension = input("Enter The File Extension's -> ") | |
for (root,directory,files) in os.walk(pat.strip()): |
This file contains hidden or 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
# Importing Python MongoDB Connector | |
# Can Be Installed By -> "pip install pymongo" | |
import pymongo | |
# For Working With Date And Time | |
import datetime | |
# This Is The Connector With The URL From MongoDB Atlas | |
client = pymongo.MongoClient('...') # Enter Your URL From MongoDB Atlas |
This file contains hidden or 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
import PySimpleGUI as sg | |
from utlis import get_meaning, get_antonyms, get_synonyms | |
greeting = "Hi. I am word bot. I can help you with words.\n\n" | |
layout = [ | |
[sg.Multiline(greeting, font=("Arial", 14), size=(70, 15), key='output')], | |
[sg.InputText("", font=("Arial", 14), size=(50, 1), key='input', enable_events=True)], | |
[sg.Button("Meaning", font=("Arial", 14), bind_return_key=True, key="meaning"), | |
sg.Button("Synonyms", font=("Arial", 14), key='synonyms'), |
This file contains hidden or 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
import math | |
n1 = int(input("Number1 ->")) | |
n2 = int(input("Number2 ->")) | |
print (math.gcd(n1,n2)) | |
# or | |
def gcd(n1,n2): | |
if(n2==0): | |
return n1 |
This file contains hidden or 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
num1 = int(input("Enter the first number - ")) | |
num2 = int(input("Enter the second number - ")) | |
sum = num1+num2 | |
sub = num1-num2 | |
prod = num1*num2 | |
div = num1/num2 | |
print("Sum of ",num1 , "and ",num2 ,"is ", sum) | |
print("Sub of ",num1 , "and ",num2 ,"is ", sub) |
This file contains hidden or 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
/* Single Linked List */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <process.h> | |
#include <string.h> | |
struct node | |
{ |
This file contains hidden or 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
import React from 'react'; | |
import { View, Text, Dimensions, StyleSheet } from 'react-native'; | |
const Dev_Height = Dimensions.get('window').height; | |
const Dev_Width = Dimensions.get('window').width; | |
class App extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> |
This file contains hidden or 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
/* eslint-disable react-native/no-inline-styles */ | |
import React from 'react'; | |
import { | |
View, | |
Text, | |
StyleSheet, | |
SafeAreaView, | |
FlatList, | |
TouchableOpacity, | |
Modal, |
OlderNewer