maateen / python-book-comments

0 stars 0 forks source link

docs/variable-data-type-data-input/ #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

ভেরিয়েবল, ডেটা টাইপ ও ডেটা ইনপুট | সহজ ভাষায় পাইথন ৩

ভেরিয়েবল, ডেটা টাইপ ও ডেটা ইনপুট ভেরিয়েবল চলুন, সবাই মিলে ছেলেবেলায় ফিরে যাই। সেই দিনগুলোর কথা কি মনে আছে, যখন আমরা নতুন নতুন বীজগণিত শিখেছিলাম? না

https://python.maateen.me/docs/variable-data-type-data-input/

jonayeidk commented 3 years ago
  1. type string
  2. jabe na

    . Mone ja aslo bole dilam :)

coderDaiyan commented 3 years ago
  1. String
  2. Not possible
orionshariar commented 3 years ago

a, b = input().split() 10 40 a = int(a) b = int(b) a * b

AnamTowfiq commented 2 years ago

a o b er type string, string diya " - + / * " kore jay na tai aikhaneo kono dhoroner onko kora shomvob na

iqbalmbadhan commented 2 years ago

It will through a TypeError for preventing this we need to convert the data types into string format then we can have the exact answer. n, m = input().split() 888 9099 n=int(n) m=int(m) n*m 7999992

hzaman193 commented 2 years ago

Actually , Its String . String to string calculation is not possible but its could be concatenate . If we use a, b = map(int, input().split()) this conversion we do the calculate values

sayedmonir commented 2 years ago

a, b = input().split() 15 15 a = int(a) b = int(b) type(a) <class 'int'> type(b) <class 'int'> a*b 225

sushen commented 2 years ago

a,b = input().split() 10 15 a=int(a) b=int(b) a*b 150

কমা ব্যাবহার না করে স্পেস ব্যাবহার করুন ।

sushen commented 2 years ago

type(a) <class 'int'> type(b) <class 'int'>

iamsobahan commented 2 years ago

a, b = map(int,input().split())

robaitul1 commented 2 years ago

a, b= map(int, input().splite()) এখানে splite এর আগে ফুলস্টপ কেন দেওয়া হয়েছে।

kawser-git commented 1 year ago

a, b = input().split() 10 40 a '10' b '40' type(a) <class 'str'> type(b) <class 'str'>

zibon45 commented 1 year ago
  1. string
  2. Jabe na
RaniAhmed249 commented 1 year ago

ami pycharm a ai soto program gula try korsi, but aktao output ashse na

Jahira2z commented 1 year ago

Not possible, as the variables contain string type data.

TuhinIT commented 1 year ago

Jabe Na But a,b =str(input()).split() dile hobe

soayeb123 commented 1 year ago

এটি স্ট্রিং টাইপ। স্ট্রিং থেকে স্ট্রিং +, -, *, / হয় না।

rashed-mahbub commented 2 months ago

Any one solve this problem in single line code

Yeasinarafatshuvo commented 1 month ago

a, b = input().split() # input function always return string c = int(a) * int(b) # cast this string to int print(c)