MCQ test in terminal

Helloooo

I'm building a mcq in Python for my lovingggg friend and wanted to share my logic to see what you ppl think before I start coding it up.

I'm just starting with a simple print statement for the intro to welcome n all.

Then I'm going to make a main dictionary where the key is the actual string containing the full question text along with the 1-4 options, and the value is the correct answer number.

Once the dictionary is made, I'll run a for loop to go through it. Inside that loop, I'll use input so the user sees each question one by one and types in their number choice, I'm going to store all their user inputs into a second separate dictionary.

Then at the very end, I'll make another loop to match the answers from the input dictionary against the original master dictionary. For every match, +1 mark added to their final score

I am honestly coding after months and was just a beginner when I stopped

I am kinda nervous and need help building this simple thingy

Looking for some improvement/tips

And um idk if I can even use most of the tips if it requires some dictionary n all

I did pandas before I quit so maybe I can use it here if I revise properly

reddit.com
u/Justicemirm — 11 days ago

I stopped practicing,how do I start again

I started to learn python over my summer break and when my college started ,I had to stop because my studies (JEE examination,wayy too hard ) had kept me occupied

I want to start with coding again

What do people recommend to get the hang of it again (I regularly coded for 2 months and have stopped for almost 3)

reddit.com
u/Justicemirm — 15 days ago

Starting SQL need help (Android)

All of my problems stem from being on a mobile phone

Before I say what the issue is I would like to give some contextual information

1-I am 15 , starting college (computer science) in a few months

2-Don't have a laptop will have one in a few months,more or less

Learned python with help of a free youtube course made by Data with Baraa

Now when I am trying to watch his sql course I saw him explain how to download sql and stuff in pc

I don't have one , unlike python which just required me to find an app which lets me use python and save the code

Uh sql is like that as well but can't find a good source in mobile to learn

Found few websites but they are meh and I would like an app

Please give me the best find

And please give me anything that could help me ik I will probably need to make some compromise but it's ok

reddit.com
u/Justicemirm — 4 months ago

How do I make an app

​

I have been learning python for 2 months ik the base,

Numpy and pandas

I want to make something useful which I always wanted to that is a functional diaryapp

An app in which I can add any pics below the texts itself

Have the ability to make new colums in which I can add a picture and a text to know which day was it

And the pic for further context

What do I need to learn for this,I need help figuring out the things I need to learn which store the information,make a functional app , images and stuff

That would be beyond helpful thank you

(For my mobile device, android)

reddit.com
u/Justicemirm — 5 months ago

Why is api and request so weird

I am trying to practice my pandas and numpy while using data obtained from online sources

But the information I get is way too weird and for most of them I don't even know the name of the columns to edit/make changes

I know that for that I should get a url from something I know about and use iloc but the information I get is way to hard to read

I tried to use json_normalize() functions to make into something usable and now it's too small

What should I do?

This is my code btw

import requests as rq,pandas as pd,numpy as np

response=rq.get("https://restcountries.com/v3.1/name/india")

information=response.json()

information=pd.json_normalize(information )

print(information)

reddit.com
u/Justicemirm — 5 months ago
▲ 0 r/git

Git for mobile

Totally confused how to use git in any way in mobile

I do know pydroid 3 and termux have the terminal to run it but please help me find a well made tutorial for the sake of my well-being

,tried to use GitHub in mobile but it's not well made and I can't add to my repo

Help

reddit.com
u/Justicemirm — 5 months ago

I kinda messed up

Have been coding for 2 months , yesterday was the 2 month marker

All the code I have prepared is saved but not pushed in github

I never touched it ,was thinking to do it but

I code in mobile so I thought maybe after a few months ,need a laptop first

I have around 30 files which I want to upload

One of them contains all the information and syntax I learned while watching a 13 hr python course

The rest are small projects and stuff I learned

Should I just start uploading them one by one ?

reddit.com
u/Justicemirm — 5 months ago

What are dummy projects?

Everyone says to build dummy projects to test what you have learnt but,how?

At starting stage of python it was easy

I made a few simple games to understand loops and while True stuff

Calculator,password checker but now that I am learning numpy and pandas

What am I supposed to do?

Some contexts which can help are

1- I am 15, learning purely because I wanted to do something in my summer vacation

2-Will buy a laptop a few months later after my 11th grade that is college starts

3-I possibly am pursuing data engineering

4-I feel weird that I can't really practice what I am doing anymore

reddit.com
u/Justicemirm — 5 months ago

What even is speed in python

I have seen some youtubers say that some codes are faster than others

And I understand it , some methods are faster and better than others However

I never understood it when they started to explain it via numbers

Such has n²(2) blah blah

To a degree I understand the numbers in a maths point of view as my maths is good (almost all of it is still above me)

but can't figure out how they understand and apply it in code

That is how they know this code will have a speed like this

Note:I am 15 joining college this year so maybe when I am familiar with college maths I will understand it clearly

reddit.com
u/Justicemirm — 5 months ago

How come this is possible?

​

Wanted to learn numpy

Saw a video video by

Bro Code which is 1 hr long

And another by

Python programmer which is only 13 mins long and claims to explain everything in 5 mins on the thumbnail,but video is 7years old

One person claims to explain it in 5 mins while thr other takes an hr

Should I avoid videos older than 1-2 years ?

What should I look for in a video while learning

reddit.com
u/Justicemirm — 5 months ago
▲ 7 r/github+1 crossposts

How to start with GitHub (mobile)

Learnt python functions and everything with practice projects and stuff

classes ,loops , functions, file handling and stuff

I use an app called solo learn to save my projects and pydroid

recently learnt pandas

I remember someone telling me that GitHub is like a platform to Store ,go back to a certain point in code which helps us make projects and also it acts like a place where we can store our projects for professional purpose

should I focus on it via mobile or can I just get general tips regarding git or what I should learn altogether (want to be a data engineer or go to ai/machine learning)

I am just 15 so please advise accordingly

reddit.com
u/Justicemirm — 5 months ago

What even is pandas(DataFrame)

I learnt pandas today (DataFrame)

realised that it's just a dictionary and the only thing pandas contributes is the ability to concat which can be substituted by append

and the ability to add the index? which can also be used to alter the contents inside (talking about DataFrame

am I right?

this is my code btw

import pandas as pd

student_marks={"Name":["Arpit","Sam","Sameul"],

"Age":[11,12,13]}

def space():

print("\n"*4)

list=pd.DataFrame(student_marks,index=["Student 1","Student 2","Student 3"])

jack=pd.DataFrame([{"Name":"Jack","Age":14}],index=["Student 4"])

list=pd.concat([list,jack])

print(list)

space()

list["Marks"]=[11,12,13,42]

print(list)

space()

print(list.loc["Student 4"])

space()

print(list.iloc[3])

list.loc["Student 4","Name"]="Araragi"

space()

print(list)

reddit.com
u/Justicemirm — 5 months ago

Next step is ?

I know functions,have decent introduction to class. def

can open and make files

learnt json

next step?

ig CSV but what to do with this?

I have made tons of dummy projects so don't worry about that

I just want to know the next step

tried asking chat gpt but that guy is a dumbkoff

any help regarding what I should learn next would be appreciated

reddit.com
u/Justicemirm — 5 months ago

I learnt python from him

I want to learn additional imports like nymphy and what not because I heard that they are important

are there any youtubers with video quality like his?

or can someone help me understand what I should be learning to strengthen my core(I made some dummy projects already)

um any info?

reddit.com
u/Justicemirm — 6 months ago

Started learning python a month ago

I understand most functions and methods and have made several small projects like calculator, password strength checker and some games with extended use of if-else if

I have started to solve some leetcode problems

they are way too hard for me (medium ones)

I understand the questions but can't solve them

are those questions meant to not be solved but to be learnt like it's a new topic itself

when I see the solution I understand what's happening but I know I can't replicate those as they make multiple new sets and use them before you add to the set like in three sum and leetcode 17

please guide me in this ,my head is gonna explode

reddit.com
u/Justicemirm — 6 months ago