F

Fatima Al-Rashid

@fatima_dev

Silver
169 Reputation Points

About

Python developer and data scientist

Joined Jan 2026

Q&A Statistics

Questions 9
Answers 5
Articles 3
Total Votes 409

All Answers

Re: How to work with SQLite in Python

import sqlite3 # Connect to database conn = sqlite3.connect('database.db') cursor = conn.cursor() # Create table cursor.execute(''' CREATE TABLE IF NOT …

20 4 weeks, 1 day ago

Re: How to parse XML in Python

import xml.etree.ElementTree as ET # Parse XML file tree = ET.parse('data.xml') root = tree.getroot() # Parse XML string root = …

30 4 weeks, 1 day ago

Re: How to create Django forms

from django import forms from .models import Article # Regular Form class ContactForm(forms.Form): name = forms.CharField(max_length=100) email = forms.EmailField() message …

12 4 weeks, 1 day ago

Re: How to remove duplicates from a list in Python

my_list = [1, 2, 2, 3, 3, 3, 4] # Convert to set (loses order) unique = list(set(my_list)) # Preserve …

29 4 weeks, 1 day ago

Re: CORS errors in Django REST API - complete fix

CORS issues are common in API development. Here's the complete solution: Install django-cors-headers pip install django-cors-headers Configure settings.py INSTALLED_APPS = …

22 4 weeks, 1 day ago