Python beginner programming

@AhmShere

heres a basic thing you can do in python. The code below asks for the user to name their fav animal , sport and car and then it will store the answer in the variable and then print them. you can just copy paste it.

if you wanted to use integers then you just use int(input() to allow the input to be an integer instead of a string.


inputUser1 = input("Favorite Animal: " ‘’)
inputUser2 = input("Favorite Sport: " ‘’)
inputUser3 = input("Favorite Car: " ‘’)

d = inputUser1
e = inputUser2
f = inputUser3

print([d , e , f])

6 Likes

maybe it would be fun to just post whatever we feel like making in here

2 Likes

Will look into it.
Wanted to learn android dev because there was a simple app on google play whose developer had stopped updating it and old version didn’t work on new android releases. I wanted to recreate that app.

2 Likes

Do you know that you can exchange to variables
With this statement:
V1=2, V2=98
V1, V2 = V2, V1

1 Like

Yes I remember reading about that. I don’t know what the use case for it would be though

3 Likes

You lost me at “programming”.

3 Likes

Sweet program:
Python 3.8

this is a program for pandy to do laundry

Cool_chicka = “pandy”
Laundry = “clothes”
UserInput = “”

Def laundry_time():

If userInput == “yoyoyo”
Print(Cool_chicka + “is washing” + Laundry)
Else print(“Pandy is snoozing”)

laundry_time()

3 Likes

Haha!! Love it.

2 Likes

Yes. Can’t say what use case is since I stopped learning python years ago. Getting back into it. So will figure it out.

2 Likes

did a beginner smart contract writing course in solidity. it was the first 6 lessons on cryptozombies. It was basically a guided lessons with practical skill at each section for creating an erc721 decentralized card based game. Now gonna setup a local blockchain for testing contracts out and stuff.

So far its the most interesting thing in programming i’ve gotten into.

2 Likes

oyyy setting up this local test space is kind of tricky. prob will try some more tomorrow. atleast having linux makes it easy to install packages and stuff.

1 Like

oyyy , its been a bit tricky. Got the genesis block initialized though. So now I have 2 test accounts with 100000 eth each. Its too bad it wasnt real eth :sweat_smile: . Ill try and setup the nodes tomorrow or on the weekend. Its a bit time consuming cuz i dont really know what the heck im doing lol but its working slowly

ok so I ended up using hardhat as a test environment instead. got it setup. deployed a token contract, tested it with javascript. it works. friggen stoked :yum:

2 Likes

hey @Nomad are you still programming? i remember you were learning python or java?

1 Like

git cloned the scaffold-eth dapp. I am just modifying the interface now and messing around with the contract. Theres a lot of moving parts to having a working decentralized app.
the scaffold-eth app works so that you can update any changes right away and test it in local host.
So im gonna modify it and fork it for practice.

Sorry for the late reply. I took Java I online from the community college a few years ago and passed. Then I tried Java II and it was way too hard and I dropped out.

I’d like to mess around with Python. Where should I start?

1 Like

I think you should look into programming in solidity (ethereum contracts). Its kind of an exciting space to me. Can learn a lot of practical programming knowledge and the space isn’t going anywhere for a while.

try this websites training course its free. I did the solidity course and the web3.
It shouldn’t be too hard, its just covers basic programming concepts and shows you how to make an NFT game.

1 Like

I was doing python, learning how to connect to api’s and stuff. Made some basic math calculator, some small command line games. Then I wanted to make some business apps but wasn’t too enthusiastic about it. Started working on apps with Flutter (google framework). Then I drifted over to the blockchain stuff and realized I need to learn solidity and Javascript more lol.

Now im hooked on the blockchain development its pretty interesting to me.

1 Like

Cool may check this out

1 Like

Sounds like you’re exploring good luck

1 Like