<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb" -->

---
title: My First Week Learning Data Science at Dataraflow:...
description: A first-week recap from a full-stack developer starting a data science internship at Dataraflow, covering Python basics like data types, loops, functions, and...
canonical: https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me | daily.dev
og:description: A first-week recap from a full-stack developer starting a data science internship at Dataraflow, covering Python basics like data types, loops, functions, and...
og:url: https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb
og:image: https://api.daily.dev/og/posts/Sf7kpDvPB.png
og:image:alt: My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me

**[Medium](https://daily.dev/sources/medium_js)** · 7 min read · 5 upvotes · 0 comments

## Summary

A first-week recap from a full-stack developer starting a data science internship at Dataraflow, covering Python basics like data types, loops, functions, and map/filter. The author built small programs (multiplication table, shopping cart, guessing game) and worked through take-home assessments including a Fibonacci sequence using tuple unpacking and a palindrome checker. A key lesson was catching a subtle formatting bug in the palindrome checker's output that didn't crash the program but produced sloppy text, reinforcing the importance of reading actual output rather than assuming correctness, and defensively wrapping user input with try/except.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@osazuwamatthewogbebor/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-29cfd886bc42>

## Questions this post answers

### Why does Python throw a TypeError when I try to change a character in a string like string1[1] = 'D'?

Strings in Python are immutable, meaning individual characters cannot be reassigned after creation. Attempting an assignment like string1[1] = "D" raises a TypeError: 'str' object does not support item assignment. Lists, by contrast, are mutable and allow direct index assignment such as my_list[0] = 'NEW', while tuples share the same immutability as strings.

_Developers sorting out mutable versus immutable Python types can find worked examples like this one on daily.dev._

### How do I swap and update Fibonacci sequence variables in Python without a temporary variable?

Use tuple unpacking to update both variables in a single line: first, next = next, first + next. This replaces the traditional approach of introducing a third temporary variable to hold a value during the swap, producing more idiomatic Python code and avoiding the clunkier three-line pattern common in other languages.

_Anyone learning idiomatic Python patterns can browse similar code walkthroughs on daily.dev._

## Similar posts on daily.dev

- [From Data Analytics to Data Science: My First Week at DataraFlow](https://daily.dev/posts/from-data-analytics-to-data-science-my-first-week-at-dataraflow-qlt4qi0uv) · Medium · 0 upvotes · 0 comments
- [My First Week Of Data Science: Learning Python By Doing.](https://daily.dev/posts/my-first-week-of-data-science-learning-python-by-doing--vcmfxis24) · Medium · 1 upvotes · 0 comments
- [My First Week at the DataraFlow Internship: Laying the Python Foundations](https://daily.dev/posts/my-first-week-at-the-dataraflow-internship-laying-the-python-foundations-pntrjqewt) · Medium · 0 upvotes · 0 comments
- [Using Python for Data Analysis Quiz – Real Python](https://daily.dev/posts/using-python-for-data-analysis-quiz-real-python-pepuuusuq) · Real Python · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#data-science](https://daily.dev/tags/data-science)

[View this post on daily.dev](https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me","url":"https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb"},"datePublished":"2026-09-10T15:06:12.664Z","dateModified":"2026-10-15T02:22:56.044Z","description":"A first-week recap from a full-stack developer starting a data science internship at Dataraflow, covering Python basics like data types, loops, functions, and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/515f727e974fb8d0bf8a033fc41eaa3d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/515f727e974fb8d0bf8a033fc41eaa3d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,data-science","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb#faq","mainEntity":[{"@type":"Question","name":"Why does Python throw a TypeError when I try to change a character in a string like string1[1] = 'D'?","acceptedAnswer":{"@type":"Answer","text":"Strings in Python are immutable, meaning individual characters cannot be reassigned after creation. Attempting an assignment like string1[1] = \"D\" raises a TypeError: 'str' object does not support item assignment. Lists, by contrast, are mutable and allow direct index assignment such as my_list[0] = 'NEW', while tuples share the same immutability as strings. Developers sorting out mutable versus immutable Python types can find worked examples like this one on daily.dev."}},{"@type":"Question","name":"How do I swap and update Fibonacci sequence variables in Python without a temporary variable?","acceptedAnswer":{"@type":"Answer","text":"Use tuple unpacking to update both variables in a single line: first, next = next, first + next. This replaces the traditional approach of introducing a third temporary variable to hold a value during the swap, producing more idiomatic Python code and avoiding the clunkier three-line pattern common in other languages. Anyone learning idiomatic Python patterns can browse similar code walkthroughs on daily.dev."}}]}
```

