What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-25 04:12:16
What's the difference between a statement and an expression in Python?
#Here’s a general rule of thumb: If you can print it, or assign it to a #variable, it’s an expression. If you can’t, it’s a statement. #Here are some examples of expressions: 2 + 2 3 * 7 1 + 2 + 3 * (8 ** 9) - sqrt(4.0) min(2,... Add solution -
Other 2021-10-17 14:39:09
How make Something like alexa
import os import time import webbrowser from datetime import date import playsound import speech_recognition as sr from gtts import gTTS import wikipedia from datetime import datetime WAKE = 'Sam' def speak111(text): tts = gTTS(text=text, lang=&quo... Add solution -
Python 2021-10-10 06:04:07
create jwt token in django
@api_view(['POST']) @permission_classes([AllowAny, ]) def authenticate_user(request): try: email = request.data['email'] passwor... Add solution -
-
Python 2021-10-05 06:29:04
how to read the csv file using pandas in aws lambda
import json import os import boto3 import csv import sys import pandas as pd from io import BytesIO s3_client = boto3.client('s3') bucket_name ='bucket_name' s3_file_name ='s3_file_name.csv' def lambda_handler(event, context): print(event) try:... Add solution -
-
Python 2021-09-28 20:56:03
ai virtual assistant
import os import time import webbrowser from datetime import date import playsound import speech_recognition as sr from gtts import gTTS import wikipedia from datetime import datetime WAKE = 'Sam' def speak111(text): tts = gTTS(text=text, lang=&quo... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5